Hello! So I recently have been trying to make a character selection system for a new game, and I am trying to make it so only one person can claim a character if an IntValue in workspace is set to 1. However, whenever I click the button while the IntValue is 1, it doesn’t do anything except disable a script that it is supposed to do. I have tried everything and I can’t get it to work.
StarterGui should only be managed with local scripts. Since it’s the UI, which is client-sided and shown locally to each client. If you need to manage a player’s UI from a server script then reference the player’s PlayerGui instance which is parented to them.
Well yeah, you’d need to to define the player instance first, I’m not going to do everything for you. Since it’s a server script you won’t be able to use “game.Players.LocalPlayer”.
reason it didnt work in a server script was because script doesnt support LocalPlayer, only LocalScript does. so usually just do game.Players.PlayerAdded:Connect(function(player) --code-- end)