Note 1: Player Counter in this Game is a Free Model (Please Don’t Hate Me)
Note 2: If you also want to make a game with 700 player count You would have to be in Roblox Beta Program.
Enroll From Here To Beta Program: Enroll in the Roblox Beta Program (Rules and everything are given in the post, You should at least have to be Rank “Member” in DevForum to join)
Just try keeping an eye on that, it might be a while true do loop with a wait() which would be pretty bad for the performance (Especially when there are over 100 players, as I’m pretty sure it starts lagging, then, so try avoiding anything that makes it worse performance-wise)
If you are a scripter, use game:GetService(“Players”).ChildAdded and only then change the count, that would be much better performance-wise, probably.
Well, I would not have a title saying 700 players in same server, cause you would not be having 700 players in that server. Then you must also change the game server settings to fill up servers instead of Roblox doing it for you(if you haven’t)
Means that it will only do everything inside it if a player was added.
game.Players.PlayerAdded:connect(function()
Label = script.Parent.TextLabel -- This line here
Players = game.Players:GetPlayers() -- This line here as well
end)
Means that it’s a variable. The variable is a String Value. And if any code contains the “Label” Variable. It will mean as “script.Parent.TextLabel” Same goes for the Players.
Note: If Variables are in a function. They can’t be defined outside the function.
game.Players.PlayerAdded:connect(function()
Label = script.Parent.TextLabel
Players = game.Players:GetPlayers()
Label.Text = "Player Count: ".. #Players -- This line here
end)
Means that the script.Parent.TextLabel will change the text to the PlayerCount: [How many players there are] The # is actually to check the number of items/arrays in a table.
Learning the basics of scripting is very important. Scripts get easy to read with just a little bit of practice. A game developer should know a bit of every field to be a great dev. Other than that, Great job!