For some odd reason I am struggling with writing this code. For context, I am playing a rolling animation which remains in one place and doesn’t move. I want to rely on the code to move the player forward. However I cannot figure out how to do this smoothly. I know lookVector is involved but I cannot grasp it…
for i = 1, 10 do
player.Character.HumanoidRootPart.Position = player.Character.HumanoidRootPart.CFrame * player.Character.HumanoidRootPart.CFrame.lookVector + Vector3.new(0,-1,0)
wait()
end
Is what I have so far… but it moves the place glitchy an backwards.
You mean , it’s a roll animation but it move a bit glitchy?
local plr = game.Players.LocalPlayer
local hrp = plr.Character.HumanoidRootPart
local BodyVel = Instance.new("BodyVelocity",hrp)
BodyVel.Velocity = hrp.CFrame.LookVector*10
BodyVel.MaxForce = Vector3.new(10000000,10000000,10000000)
game.Debris:AddItem(BodyVel,0.5)
I just saw that his account got banned , It won’t really help I guess.
2 Likes