BailTaashev

Untitled

Aug 23rd, 2021 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. local Lgame = game
  2. local Lwork = Lgame.Workspace
  3. local Lplayers = Lgame.Players
  4. local Lplayer = Lplayers.LocalPlayer
  5. local LCplayer = Lplayer.Character
  6. local Lbackpack = Lplayer.Backpack
  7. local Lhumanoid = LCplayer.Humanoid
  8. local LHroot = LCplayer.HumanoidRootPart
  9. local LHRcframe = LHroot.CFrame
  10. local LplayerGui = Lplayer.PlayerGui
  11. local LplayerScripts = Lplayer.PlayerScripts
  12. local LSgear = Lplayer.StarterGear
  13. local Rstepped = game:GetService("RunService").RenderStepped:Wait()
  14.  
  15. function TPobject(TPobject)
  16.     if Lplayer.Character then
  17.         Lplayer.Character.HumanoidRootPart.CFrame = TPobject
  18.     end
  19. end
  20.  
  21. function TPP(Splayer)
  22. if game.Players:FindFirstChild(Splayer) then
  23. TPobject(game.Players[Splayer].Character.HumanoidRootPart.CFrame)
  24. else
  25. print'Player didnt find'
  26. end
  27. end
  28.  
  29. function MoveLplayer(SplayerM)
  30. game.Players.LocalPlayer.Character.Humanoid:MoveTo(Vector3.new(SplayerM))
  31. end
Add Comment
Please, Sign In to add comment