Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadstring([[
- -- Create Tool
- local tool = Instance.new("Tool")
- tool.Name = "TeleportTool"
- tool.RequiresHandle = true
- tool.Parent = game.Players.LocalPlayer.Backpack
- -- Create Handle
- local handle = Instance.new("Part")
- handle.Size = Vector3.new(1, 5, 1)
- handle.Anchored = true
- handle.CanCollide = false
- handle.Parent = tool
- -- Position to teleport to
- local teleportPosition = Vector3.new(100, 10, 100) -- Change this to the desired teleport coordinates
- -- On activation of the tool
- tool.Activated:Connect(function()
- local player = game.Players.LocalPlayer
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character.HumanoidRootPart.CFrame = CFrame.new(teleportPosition)
- end
- end)
- ]])()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement