Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local teleportDistance = 10
- local function teleport(player)
- local character = player.Character
- if character then
- local rootPart = character:FindFirstChild("HumanoidRootPart")
- if rootPart then
- rootPart.CFrame = rootPart.CFrame + (rootPart.CFrame.lookVector * teleportDistance)
- end
- end
- end
- tool.Activated:Connect(teleport)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement