Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.Button1Down:connect(function()
- if Mouse.Target ~= nil and Mouse.Target.ClassName == "Part" and Mouse.Target.Name == "HumanoidRootPart" then
- game:GetService("Workspace"):WaitForChild(Player.Name):WaitForChild("HumanoidRootPart").CFrame = Mouse.Target.CFrame
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement