Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make an IntValue Object readable and editable by all the clients in the game?

I have an IntValue object named Que that I want reachable and editable by all clients. If someone joins, it only updates their Que value and the other players don’t see it. The Que is to start the game and if it stays at one, the game won’t start. BTW it's in ReplicatedStorage right now.

3 comments

0

You’d need to use RemoteEvents. For your case though, why don’t just get the amount of players when a player joins through  the PlayerAdded event? If it is more than one then you can fire a BindableEvent (or other methods) to start. If the players start the game manually then you just have to check the number of players in the server through #game:GetService(“Players”):GetPlayers().

0

The Que is how many players have readied up

0

Are ready to play

1 answer

✓ Accepted answer

I'm still trying to figure this stuff out myself, but I think what you might want is a localscript in player's startingscripts that will have a FireServer event and a script somewhere on the server that has a OnServerEvent that actually updates your value. That way, when a player joins it will send the message to the server to update the value.

This discussion is preserved as it was. New answers, comments, and votes are closed.