I'm trying to pass the local player from a local script to a server script in workspace through a remote event, yet it is telling outputting "error: attempt to index local 'player' (a number value)
--serverscript
setDotEvent.OnServerEvent:connect(function(numDots, player)
char = player.Character--Error pointing to this line
--more code
end)
--localscript
game.Workspace.SetupDots:FireServer(NumDots, game.Players.LocalPlayer)

3 comments
ok, i mean the roblox wiki tutorial stored them in workspace, but i get what you are saying, ill fix up my code then accept answer if it works
Figured it out thanks!
No problem!