redGui = game.StarterGui.ScreenGui.RedUpgradeGui:Clone() game.Players.PlayerAdded:Connect(function(player) if player.Team == "Inferno" then player.PlayerGui.ScreenGui.RedUpgradeGui.Visible = true player.PlayerGui.ScreenGui.RedUpgradeGui.Active = true end
So, the GUI doesn't get visible or active... Is this the way to do it?? Or is there another way??
The fisrt and major thing is that you are using a
string value where an
object value is required.
Player.Team = _object_value_ is what needs to happen. Said object needs to be a team object. Say you have 2 teams:
Team2. The player is on
Team1 and you want them to change to
Team2. Instead of saying
game.Players.LocalPlayer.Team = "Team2", it wants
local T2 = game:getService("Teams"):FindFirstChild("Team2") game.Players.PlayerAdded:Connect(function(plr) plr.Team = T2 end)