i keep getting a error when i try to get the mouse
local player = game.Players.LocalPlayer local mouse = player:GetMouse() -- the error is here
the error message is : 17:45:02.409 - Workspace.Script:2: attempt to index nil with 'GetMouse'
You can't find LocalPlayer in a normal script, thus you can't get :GetMouse(). You can only do it on local scripts. You should also know that local scripts can't run in workspace.