This..... just doesn't work. D: The debugger tells me that my 'player' variable is nil. I dunno what to do; can someone help please?
1 | local Player = game.Players.LocalPlayer |
2 |
3 | local Mouse = Player:GetMouse() |
You can't access LocalPlayer from ServerScripts. If the script is inside the StarerGui, or StarterPack, then just
1 | local player = script.Parent.Parent |
This will get the scripts 'Parent' which is the StarterGui, or in this case the PlayerGui, and it again gets the parent of that, which is the player itself.
NinjoOnline