|
| 13 Aug 2016 12:43 PM |
I'm using filtering enabled, and I want a GUI to pop up for everyone. This is what I have. It says player is a nil value.
module.Winner = function(gui,player) gui = player.PlayerGui.GameResults gui:FireAllClients() gui.Frame.Visible = true
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 Aug 2016 12:47 PM |
because youre just putting random stuff that doesnt even work. look in the wiki before asking a question
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=193565057
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 01:48 PM |
@time
hm It says fireclient must by a player object or something, I looked at the wiki and rewrote it. Am I closer?
module.Winner = function(gui, player) remote:FireClient(player,gui) gui = player.PlayerGui.GameResults gui.Frame.Visible = true remote:FireAllClients(gui) gui = player.PlayerGui.GameResults gui.Frame.Visible = true
|
|
|
| Report Abuse |
|
|
| |
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 13 Aug 2016 01:56 PM |
i dont think that you are defining the player
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 01:59 PM |
you need to learn how to use the output
View>Output
you have many obvious errors including undefined variables, missing ends, and you are using filtering enabled very incorrectly
the output will help you with the first two but not the last
you have to learn how to properly use filtering enabled. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 02:06 PM |
I used output
"FireClient: player agrument must be player object" That's the only error. I'm not missing ends, I just didn't show the whole script its about 200 lines.
Can anyone help me fix the variables/whatever needs to be adjusted. thanks
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 Aug 2016 02:13 PM |
If you read the bottom of my thread you would see that i said you can't directly modify a player's playergui
You need to firetheclient, and have the client clone the gui in from replicatedstorage
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Aug 2016 04:02 PM |
Hmm It works but only appears for one player not all of them.
for i,v in next, players:GetPlayers() do local gui = game.ServerStorage.GUIs.GameResults local gui2 = gui:Clone() gui2.Parent = v.PlayerGui
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 04:07 PM |
Does anyone know why? thanks
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 13 Aug 2016 07:44 PM |
do I need to somehow fireallclients?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|