Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "TpTool"
- tool.Activated:Connect(function()
- if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
- return
- end
- local targetPosition = mouse.Hit.p + Vector3.new(0, 2.5, 0)
- player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
- end)
- tool.Parent = player.Backpack
Advertisement
Add Comment
Please, Sign In to add comment