Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://www.youtube.com/watch?v=WM6vUCx9aWw
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.Button1Down:Connect(function()
- local hit = mouse.Hit
- if hit then
- local targetPosition = hit.p
- local character = player.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- local offset = Vector3.new(0, 5, 0)
- character.HumanoidRootPart.CFrame = CFrame.new(targetPosition + offset)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement