Hi, basically what I want to do is give a player a GUI when they respawn but only when they’re on the ‘Arrested’ team. I tried this script, however it fired and no gui was given
local players = game:GetService("Players")
local gui = script.Arrested
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(Char)
if plr.Team.Name == "Arrested" then
local clone = gui:Clone()
clone.Parent = plr.PlayerGui
end
end)
end)
What am I doing wrong and is there a way you’d do it?