tyridge77

Untitled

Sep 11th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1.  
  2.         local tp = game.Players.Player1.Character.Torso;
  3.        
  4.  
  5.         local cf = CFrame.new(currentcframe.X,ypos,currentcframe.Z)*(currentcframe-currentcframe.p)
  6.        
  7.         if status == "walking" then
  8.            cf = cf * CFrame.new(turntorsoto.lookVector * ((0.1) * Speed * updateTime))
  9.         end
  10.  
  11.         if turntorsoto ~= last_turn then
  12.           print("Turning!");
  13.           local clamped = CFrame.new(turntorsoto.X,ypos,turntorsoto.Z);
  14.           cf = CFrame.new(cf.p,clamped.p);
  15.         end
  16.         turntorsoto = tp.CFrame;
  17.  
  18.         currentcframe = cf
Advertisement
Add Comment
Please, Sign In to add comment