So, when a player is on the "Host" team or becomes a host, I want the player to have a GUI pop up as soon as that happens.
while wait() do
local plr = game.Players:GetPlayerFromCharacter()
if plr.TeamColor == BrickColor.new("Really red") then
local gui = game.ReplicatedStorage.HostUI
gui.Parent = game.Players.LocalPlayer.PlayerGui
wait(1)
gui.HostFrame.Visible = true
local k = game.ReplicatedStorage.kill:Clone()
wait()
k.Parent = plr.Backpack
end
end
Any problems with this script?
