NiceBBMBThai

Script TP

Apr 4th, 2021 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. --Use This Script To TP To A Player:
  2.  
  3. local pl = game.Players.LocalPlayer.Character.HumanoidRootPart
  4. local pl2 = "Name Of The Player You Wanna TP To Here"
  5. local humanoid = game.Players.LocalPlayer.Character.Humanoid
  6. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  7. wait(0.1)
  8.  
  9. pl.CFrame = game.Players[pl2].Character.HumanoidRootPart.CFrame
  10.  
  11.  
  12. --Use This Script To Get Your Current CFrame (Will Be Shown In The Dev Console (F9) ):
  13. local pl = game.Players.LocalPlayer.Character.HumanoidRootPart
  14. setclipboard(tostring(pl.CFrame))
  15.  
  16.  
  17. local pl = game.Players.LocalPlayer.Character.HumanoidRootPart
  18. setclipboard(tostring(pl.CFrame))
  19.  
  20.  
  21. --Use This Script To TP To A CFrame Location:
  22. local pl = game.Players.LocalPlayer.Character.HumanoidRootPart
  23. local location = CFrame.new(Put Your CFrame Inside Of Here)
  24. local humanoid = game.Players.LocalPlayer.Character.Humanoid
  25. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  26. wait(0.1)
  27. pl.CFrame = location
  28.  
  29. --Use This Script To TP [TWEEN] To A CFrame Location:
  30. local CFrameEnd = CFrame.new(0, 0, 0)
  31. local Time = 5
  32. local tween = game:GetService("TweenService"):Create(game.Players.LocalPlayer.Character.HumanoidRootPart, TweenInfo.new(Time), {CFrame = CFrameEnd})
  33. tween:Play()
  34. tween.Completed:Wait()
  35.  
  36. --- local info = TweenInfo.new(5 (Put as any number desired)
  37. ---- Lower the number faster the teleport is
  38.  
  39. local plr = game:service"Players".LocalPlayer;
  40. local tween_s = game:service"TweenService";
  41. local info = TweenInfo.new(5,Enum.EasingStyle.Quad);
  42. function tp(...)
  43. local tic_k = tick();
  44. local params = {...};
  45. local cframe = CFrame.new(params[1],params[2],params[3]);
  46. local tween,err = pcall(function()
  47. local tween = tween_s:Create(plr.Character["HumanoidRootPart"],info,{CFrame=cframe});
  48. tween:Play();
  49. end)
  50. if not tween then return err end
  51. end
  52. tp(cords here);
  53.  
  54. --tp to placeid
  55. placeid = 5552815761 --change this to the place id you want
  56. tp = game:GetService('TeleportService')
  57.  
  58. for i,v in pairs (game.Players:GetChildren()) do
  59. tp:Teleport(placeid, v)
  60. end
  61.  
  62. --tp part to me
  63. for _,v next, game.Workspace.Coins:GetDescendants() do
  64. if v.Name == "Coin" then
  65. game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
  66. end
  67. end
  68. --tp to part
  69. local LP = game:GetService("Players").LocalPlayer;
  70.  
  71. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  72.  
  73. if v:IsA("Folder") and string.match(v.Name, "NAME") then
  74.  
  75. for i2,v2 in pairs(v:GetChildren()) do
  76.  
  77. LP.Character.HumanoidRootPart.CFrame = v2.CFrame;
  78.  
  79. wait(0.2);
  80.  
  81. end
  82.  
  83. end
  84. end
  85.  
  86. -- tp random player
  87. local randomPlayer = game.Players:GetPlayers()
  88. [math.random(1,#game.Players:GetPlayers())]
  89.  
  90. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(randomPlayer.Character.Head.Position.X, randomPlayer.Character.Head.Position.Y, randomPlayer.Character.Head.Position.Z))
  91.  
Add Comment
Please, Sign In to add comment