Soooo, Basically I want to try make me a script where if a player is on a certain "Team" then I want a gui to not be disabled for them i may suck at explaining but ill try
if game.Players.LocalPlayer.Team == "Staff" then
game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui").Spawn.TextButton.LocalScript.Disabled = false
game.Players.LocalPlayer.PlayerGui.ScreenGui.Spawn.TextButton.Text = "SPAWN BALL"
game.Players.LocalPlayer.PlayerGui.ScreenGui.Spawn.TextButton.BackgroundColor3 = Color3.new(255,255,255)
end
This is it. A regular player that is on any other team besides "Staff" has the gui disabled if they are on Staff then the gui is not disabled

5 comments
1st line if game.Players.LocalPlayer.Team.Name == "Staff" then
still doesnt work
try adding WaitForChild("PlayerGui") instead of just writing PlayerGui
Is it local script?
Yeah, it's a local script.