local afkStatus = game.Players.LocalPlayer:WaitForChild("AFKToggle") local plrInRoundStatus = game.Players.LocalPlayer:WaitForChild("PlayerInRoundStatus")
This is a Server Script in ServerScriptStorage. Basically what is happening is I have two Bool Values being added from a Local Script to the Local Player, and in the server script I am try to find get those for use in that COde. The thing is, the Server Script obviously runs before the Local Script. I've tried PlayerAdded and CharacterAdded countless times but can't get them to work.

7 comments
Local Scripts = Client Sided Only - If you are adding stuff into the client without remotes; The server cannot pick these up.
LocalPlayer cannot be called via ServerScripts only LocalScripts
So what would I do? Make a remote event to grab this stuff? Or make a Remote Event to Create the Instances?
Also, I tried adding the Instances in the Server Script, but yet again the Character wasn't loaded, so the script was giving Errors. If I was going to do it through the Server Script, how would I make it wait for the player to be loaded in?
This shows how to wait for the player as well as documentation for the character: https://developer.roblox.com/en-us/api-reference/event/Players/PlayerAdded
CharacterAdded: https://developer.roblox.com/en-us/api-reference/event/Player/CharacterAdded
IMO - For your system; Place the BoolValues into the Player not the character as the player will only lose the values if they disconnect or if they are removed by another script - Where as character dies each time causing the values to be removed.