frame = game.StarterGui.ScreenGui.Frame
team = BrickColor.new("Bright red")
team2 = BrickColor.new("Bright blue")
team3 = BrickColor.new("Bright yellow")
function onTouched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then
if game.Players:FindFirstChild(hit.Parent.Name).TeamColor == team2 then
print("gea")
elseif game.Players:FindFirstChild(hit.Parent.Name).TeamColor == team then
game.Players:FindFirstChild(hit.Parent.Name).TeamColor = team3
frame.Visible = true
wait(5)
frame.Visible = false
end
end
end
script.Parent.Touched:connect(onTouched)
Help please! Why doesn't the GUI pop up!

1 comment
Holy!!!!!!!!! Thank you so much!!!!!!!!!!