i asked this question already and i got a good answer but i dont think i understood all of it but yeah i really need this for the game i am making please help
Well first :GetMouse()
is a necessity for accessibility of the mouse, and the model. There are certain, specific properties for Vector3, and CFrame, for an easier replacement, Vector3 will be used.
Notice, :GetMouse()
must be accessed by a localscript. Firstly, accessed by LocalPlayer
.
local mouse = game.Players.LocalPlayer:GetMouse() local Model -- model title. mouse.Button1Down:connect(function() Model:MoveTo(Mouse.Hit.p) end)