Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local mouse = plr:GetMouse()
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Click Teleport"
- tool.Activated:Connect(function()
- local root = plr.Character.HumanoidRootPart
- local pos = mouse.Hit.Position+Vector3.new(0,2.5,0)
- local offset = pos-root.Position
- root.CFrame = root.CFrame+offset
- end)
- tool.Parent = plr.Backpack
Add Comment
Please, Sign In to add comment