Hello guys, i need some assistance, Im new with working with Velocity and stuff like that, currently. This is whats happening, I have a Ball and when i throw it it freezes mid air, here is a clip
https://gyazo.com/baaed7d32056e47f048a69746cc402c2
Please help here is my code too
ThrowAnimationTrack:GetMarkerReachedSignal("ThrowBall"):Connect(function()
print('{PlayerEventModule, Events.ThrowBall}: Line: '..debug.info(1,'l')..', Reached ThrowBall Keyframe Signal!')
local BallClone = Ball.Handle:Clone()
BallClone.CanCollide = true
BallClone.Parent = workspace
BallClone.CFrame = Ball.Handle.CFrame
BallClone.CFrame = CFrame.new(BallClone.Position, mouseDirection)
BallClone:SetNetworkOwner(nil)
local BodyVelocity = Instance.new('BodyVelocity', BallClone)
BodyVelocity.MaxForce = Vector3.new(BallMaxForce,BallMaxForce,BallMaxForce)
BodyVelocity.Velocity = BallClone.CFrame.lookVector * BallPower
Ball.Handle.Transparency = 1
wait(.1)
BodyVelocity:Destroy()
task.wait(BallThrowWait)
Ball.Handle.Transparency = 0
ThrowedBall = false
Ball.Move1:FireClient(plr)
end)
This runs when a Animation reaches the throw keyframe, Please help me!!!