Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Shifting a player left using BodyVelocity?

How would I use BodyVelocity to shift a player left? I can't figure out how. Any help is appreciated

1 answer

✓ Accepted answer

This requires a tool. Inside the tool insert a localscript. Paste this inside the local script

script.Parent.Equipped:Connect(function()
print("Paratus")
local plr = game.Players.LocalPlayer
local char = plr.Character.Torso
speed = -100 --make sure this is a negative number
bodyV = Instance.new("BodyVelocity")
bodyV.MaxForce = Vector3.new(90000,90000,90000)
bodyV.Velocity = script.Parent.Parent.Torso.CFrame.RightVector * speed
bodyV.Parent = script.Parent.Parent.Torso
end)

2 comments

0

Doesn't seem to work. The print doesn't even fire.

0

the tool needs a handle

This discussion is preserved as it was. New answers, comments, and votes are closed.