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
if game.Players.LocalPlayer.Team.Name == "Staff" then --you forgot the name 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(BrickColor.new("Industrial white")) -- maybe glitch cuz of color (it happend me a lot of times) end