Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Team only GUI? [closed]

Asked by 9 years ago

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.

Locked by BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
1
Answered by 9 years ago

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.

Ad
Log in to vote
-5
Answered by 9 years ago
plr = game.Players:GetPlayerFromCharacter(script.Parent)
if plr.TeamColor==BrickColor.Red() then

end
0
thats not screen GUI Opptitronica 0 — 9y