Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Ball is not bouncing on part direction?

Asked by
imKlevi 94
2 years ago

I am using BodyVelocity to make part bounce to PartPos but it's bouncing on the left instead.

local Settings = {Kick_Cooldown = 1, Kick_Force = 35}
local Direction = (Ball.Position - PartPos).Unit

local Velocity = Instance.new("BodyVelocity")
Velocity.Parent = Ball
Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
Velocity.Velocity = (Direction.Unit * Settings.Kick_Force) + Vector3.new(0, Settings.Kick_Force /1.05, 0)
0
local Direction = (PartPos - Ball.Position).Unit imKirda 4491 — 2y
0
still not working imKlevi 94 — 2y

Answer this question