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

Would I change a player's velocity from the client or server?

Asked by 4 years ago

0_0

Player.Character.HumanoidRootPart.Velocity

1 answer

Log in to vote
-1
Answered by 4 years ago
Edited 4 years ago

Use body velocity

local velocity = Instance.new("BodyVelocity",Player.Character.HumanoidRootPart)
velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
velocity.Velocity = (Player.Character.HumanoidRootPart.CFrame.LookVector*50) --we use lookvector just bc it goes in the direction of the humanoidrootpart
0
press view source its messed up on the website IEntity_303I 80 — 4y
0
hmm the lookVector didn't go into effect. it's going off the orientation of the world, not the player TheOfficiaIZai 8 — 4y
0
nevermind, thats just because the number(50) was too low. TheOfficiaIZai 8 — 4y
Ad

Answer this question