I have a animation system and would like to get the users mouse. Only problem is, I cant make the script a local script. This is what I have so far, but it wont work.
a script inserts a string value in each player with their name in the part. Then I used game.Players:FindFirstChild(''..StringValue.Value) to get the player. Now that I had played defined I did player:GetMouse() and it works in studio, just not online. I get a note online saying this "Workspace.(Player).script: attempt to index global 'mouse' (a nil value) "
name= script.Parent.Value player = game.Players:FindFirstChild(""..namz.Value) mouse = player:GetMouse()
EDIT: The errors on line 315, ill post that chunk.
mouse.KeyDown:connect(function(key) keysDown[key:lower()] = true end) mouse.KeyUp:connect(function(key) keysDown[key:lower()] = false end)