#ball goes backwards when throwed

1 messages · Page 1 of 1 (latest)

empty edge
#

Its prob line 216

oak sparrow
empty edge
#

The script... duh

oak sparrow
empty edge
#

And how could i know?

oak sparrow
#

do i need show the code?

empty edge
#

Genius crying

oak sparrow
#

sorry

empty edge
#

Do you?

oak sparrow
#

local tool=script.Parent

function fire(v)
local vCharacter=tool.Parent
local vPlayer=game.Players:playerFromCharacter(vCharacter)
local spawnPos=vCharacter.PrimaryPart.Position
spawnPos=spawnPos+(v5)
connection:disconnect()
wait()
tool.Parent=game.Workspace
tool.Handle.Position=spawnPos
tool.Handle.Velocity=(v
(tool.Power.Value)/1.2)+Vector3.new(0,20,0)
end

function onActivated()
local character=tool.Parent;
local humanoid=character.Humanoid
if(humanoid==nil)then
print("No Humanoid?")return
end
local targetPos=humanoid.TargetPoint
local lookAt=(targetPos-character.Head.Position).unit
fire(lookAt)
end
while true do
script.Parent.Activated:wait()
connection=game:service("RunService").Stepped:connect(onActivated)
wait()
end

#

i think its the z axis