Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tp = game.Players.Player1.Character.Torso;
- local cf = CFrame.new(currentcframe.X,ypos,currentcframe.Z)*(currentcframe-currentcframe.p)
- if status == "walking" then
- cf = cf * CFrame.new(turntorsoto.lookVector * ((0.1) * Speed * updateTime))
- end
- if turntorsoto ~= last_turn then
- print("Turning!");
- local clamped = CFrame.new(turntorsoto.X,ypos,turntorsoto.Z);
- cf = CFrame.new(cf.p,clamped.p);
- end
- turntorsoto = tp.CFrame;
- currentcframe = cf
Advertisement
Add Comment
Please, Sign In to add comment