Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i fix this team capacity script that does not work?

Asked by 3 years ago

This script's purpose it so that the button is only visible if there are no players on the governor team, but once someone joins the team the button disappears.

if game.Teams.Governer.Players == 0 then
    script.Parent.Visible = true

elseif game.Teams.Governor.Players == 1 then
    script.Parent.Visible = false
end
0
I tried using your script in my practice scripting game and I found out that there is no such property called Players inside of your governor team. I am still a beginner and I don't know much about teams but try finding a function that shows how many players are in the team and use the if statement on your code. FilipinoWrld 22 — 3y
0
K, I fixed it Mobzillaz 0 — 3y

Answer this question