im trying to code a platform that disappears after a certain number of players in the server is reached, does anyone know how to script somthing that would say “if (certain amount of players) are in the server then-”
You could have a script hold a counter, and when a player joins or leaves increment/decrement it accordingly. After updating it, check if its value == what you’re after then make the part disappear
local playercount = #game:GetService(“Players”):GetPlayers()
if playercount < 10 then
platform:Destroy()
1 Like