I want this to move an object named "Center" when it is clicked by the mouse. Will it work? I ask because I do not have access to the studio as of right now.
01 | local Player = game.Players.LocalPlayer |
02 | local Mouse = Player:GetMouse() |
03 |
04 | Mouse.Button 1 Down:connect( function () |
05 | Mouse.Move:connect( function () |
06 | if Mouse.Target = = "Center" then |
07 | --code to move the objects model |
08 | end |
09 | end ) |
10 | end ) |