Advertisement
Script_For_Roblox123

Tp Tool

Jan 11th, 2023 (edited)
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. if game.Players.LocalPlayer.Backpack:FindFirstChild("Click To TP") or game.Players.LocalPlayer.Character:FindFirstChild("Click To TP") then
  2.     if game.Players.LocalPlayer.Character:FindFirstChild("Click To TP") then
  3.         game.Players.LocalPlayer.Character:FindFirstChild("Click To TP").Parent = game.Players.LocalPlayer.Backpack
  4.     end
  5.     print("Older Click to Tp it's still here but now it's deleted")
  6.     game.Players.LocalPlayer.Backpack:FindFirstChild("Click To TP").Parent = nil
  7. end
  8. print("Loading Click To Tp")
  9. wait(0.5)
  10.  
  11. local mouse = game.Players.LocalPlayer:GetMouse()
  12. local tool = Instance.new("Tool")
  13. tool.RequiresHandle = false
  14. tool.Name = "Click To TP"
  15. tool.Activated:connect(function()
  16. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  17. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  18. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  19. end)
  20. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement