Advertisement
athaha

Test 2

Dec 14th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. loadstring([[
  2. -- Create Tool
  3. local tool = Instance.new("Tool")
  4. tool.Name = "TeleportTool"
  5. tool.RequiresHandle = true
  6. tool.Parent = game.Players.LocalPlayer.Backpack
  7.  
  8. -- Create Handle
  9. local handle = Instance.new("Part")
  10. handle.Size = Vector3.new(1, 5, 1)
  11. handle.Anchored = true
  12. handle.CanCollide = false
  13. handle.Parent = tool
  14.  
  15. -- Position to teleport to
  16. local teleportPosition = Vector3.new(100, 10, 100) -- Change this to the desired teleport coordinates
  17.  
  18. -- On activation of the tool
  19. tool.Activated:Connect(function()
  20. local player = game.Players.LocalPlayer
  21. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  22. player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPosition)
  23. end
  24. end)
  25. ]])()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement