local plr = game.Players.LocalPlayer
local MyBody = plr.Character
local mouse = plr:GetMouse()
plr:GetMouse().Button1Down:Connect(function(c)
local hit = mouse
MyBody:MoveTo(hit.p)
end)
ik i must use userinputservice but idk how to use it
local plr = game.Players.LocalPlayer
local MyBody = plr.Character
local mouse = plr:GetMouse()
plr:GetMouse().Button1Down:Connect(function(c)
local hit = mouse
MyBody:MoveTo(hit.p)
end)
ik i must use userinputservice but idk how to use it
If you don't know how to use it, there are plenty of documentation on the internet. I can give some pointers.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
didnt you already ask this
I'm not sure, that's why this isn't an answer, but I think you can use Enum.Keycode for that.