Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Mouse = Player:GetMouse()
  3.  
  4. Mouse.Button1Down:connect(function()
  5.     if Mouse.Target ~= nil and Mouse.Target.ClassName == "Part" and Mouse.Target.Name == "HumanoidRootPart" then
  6.         game:GetService("Workspace"):WaitForChild(Player.Name):WaitForChild("HumanoidRootPart").CFrame = Mouse.Target.CFrame
  7.     end
  8. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement