Advertisement
athaha

Test 3

Dec 14th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local tool = script.Parent
  2. local teleportDistance = 10
  3.  
  4. local function teleport(player)
  5. local character = player.Character
  6. if character then
  7. local rootPart = character:FindFirstChild("HumanoidRootPart")
  8. if rootPart then
  9. rootPart.CFrame = rootPart.CFrame + (rootPart.CFrame.lookVector * teleportDistance)
  10. end
  11. end
  12. end
  13.  
  14. tool.Activated:Connect(teleport)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement