I've tried doing
local Click = game.Players.LocalPlayer:GetMouse()) do
game.Workspace.Part.Position = Click
https://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo
https://wiki.roblox.com/index.php?title=API:Class/Humanoid/MoveTo
MoveTo is used for model's PrimaryParts and Humanoid's that make them walk
Well the first thing is thats all been done wrong,
Mouse = game.Players.LocalPlayer:GetMouse() -- getting the mouse
Also to use the mouse's position use
Mouse.Hit.p --the position of the mouse
Next you want to use a Button1Down event
Mouse.Button1Down:connect(function() -- What you want to happen end)
So in this case it would be
Mouse = game.Players.LocalPlayer:GetMouse() Mouse.Button1Down:connect(function() game.Workspace.Part.Position = Mouse.Hit.p end)
Marked as Duplicate by T0XN, Zafirua, Leamir, and theCJarmy7
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?