I made a script on the server that is fired from a localscript, it should change the value of a boolvalue in a folder under each player. I already made a script wich add the folder and the boolvalue and it works because I can see it under each player in the players tab.
Now I just want to change the boolvalue but everytime I try, I get this error: ServerScriptService.changeSettings:3: attempt to index nil with āSaveSettingsā
How do I change the script that it finds the player, in the output from the print(player) I get the right player name
OnServerEvent Already returns the player object, So saying game.Players:FindFirstChild(player) will return nil, hence the error āattempt to index nil with āSaveSettingsāā