How can I make it so that once the script is loaded it will pull up a GUI onto the players screen whose on the team Red then it will be removed after a certain amount of seconds.
✓ ANSWER ACCEPTED
Team only GUI?
2 answers
✓ Accepted answer
I'm not sure what you mean by once the script loaded. Here is a script that will bring up a GUI (You will have to do the path and whatnot)
--I am making this a function, so you can simply use GUI() to make it have the GUI appear as long as you have all the code below it. (Put it at the top of your script for better organization)
function GUI()
for k,p in pairs (game.Players:GetPlayers()) do
a=p.PlayerGui.ScreenGui.Frame -- Change that to whatever you need for your game. It is making a variable so it is easier to access it later on in the script
if a then
if p.TeamColor==BrickColor.new("Really red") then
--Lets just say (Hypothetically) there is a TextLabel in the Frame called RedGui
a.RedGui.Visible=true
wait(5)--Time to wait before it disappears
a.RedGui.Visible=false
end
end
end
end
If you find any Errors, Questions, or Concerns, feel free to PM me on ROBLOX, or comment on my answer.
plr = game.Players:GetPlayerFromCharacter(script.Parent)
if plr.TeamColor==BrickColor.Red() then
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
thats not screen GUI