Skip to content

Instantly share code, notes, and snippets.

@ArianBlack
Last active September 22, 2021 02:53
Show Gist options
  • Save ArianBlack/511c974ee18579dc321740c3b5188b91 to your computer and use it in GitHub Desktop.
Save ArianBlack/511c974ee18579dc321740c3b5188b91 to your computer and use it in GitHub Desktop.
local plr = game.Players.LocalPlayer
local Mouse = plr:GetMouse()
Mouse.Button1Down:Connect(function()
plr.Character:FindFirstChild("HumanoidRootPart").Position = plr.Character:FindFirstChild("MousePos", true).Value
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment