of     1   

XTheFlamingCactusX
#186280110Monday, March 28, 2016 11:50 PM GMT

I'm trying to make a GUI pop up on everyone's screen win someone mikes contact with a object
Kryddan
#186280575Monday, March 28, 2016 11:55 PM GMT

local part = part --change this to whatever part they should touch local gui = gui --change this to whatever gui that will pop up local time = 1 --change this to how long the players will see the gui, in seconds part.Touched:connect(function() gui.Visible = true wait(time) gui.Visible = false end)
DrSaint
#186283074Tuesday, March 29, 2016 12:24 AM GMT

@Kry There's gotta be a better way than that
Kryddan
#186283493Tuesday, March 29, 2016 12:29 AM GMT

well the question was simple so was the answer, if he wants anything more complex than that then tell me.
DrSaint
#186283592Tuesday, March 29, 2016 12:30 AM GMT

@Kry Where are you supposed to put the GUI in order for that to work?
Kryddan
#186284156Tuesday, March 29, 2016 12:38 AM GMT

Sorry my bad I didn't think clear, thanks to @drsaint. local part = part --change this to whatever part they should touch local gui = gui --change this to whatever gui that will pop up local time = 1 --change this to how long the players will see the gui, in seconds part.Touched:connect(function() for _,v in pairs(game.Players:GetChildren()) if v.Character and v.Character:FindFirstChild("Humanoid").Health > 0 then v.PlayerGui.gui.Visible = true wait(time) v.PlayerGui.gui.Visible = false end end end)
DrSaint
#186284286Tuesday, March 29, 2016 12:39 AM GMT

You should have also told him that you need to get the Frame, not just the GUI name.
Kryddan
#186284320Tuesday, March 29, 2016 12:39 AM GMT

oops wrong again, too lazy to use coroutines atm :P local part = part --change this to whatever part they should touch local gui = gui --change this to whatever gui that will pop up local time = 1 --change this to how long the players will see the gui, in seconds part.Touched:connect(function() for _,v in pairs(game.Players:GetChildren()) if v.Character and v.Character:FindFirstChild("Humanoid").Health > 0 then v.PlayerGui.gui.Visible = true end end wait(time) for _,v in pairs(game.Players:GetChildren()) if v.Character and v.Character:FindFirstChild("Humanoid").Health > 0 then v.PlayerGui.gui.Visible = false end end end)
Kryddan
#186284368Tuesday, March 29, 2016 12:40 AM GMT

@DrSaint I just hope for hs own sake that he figures that out by himself
XTheFlamingCactusX
#186284412Tuesday, March 29, 2016 12:41 AM GMT

Thanks...
Kryddan
#186284476Tuesday, March 29, 2016 12:41 AM GMT

@flaming no offence btw

    of     1