generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GUI gelp!

Previous Thread :: Next Thread 
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
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 is not online. 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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 01:55 PM
hmm


Report Abuse
davisky2 is not online. 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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
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 is not online. 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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 02:17 PM
Alright thanks


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 04:07 PM
Does anyone know why? thanks


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 05:21 PM
b1


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 05:38 PM
b2


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 06:00 PM
b3


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
13 Aug 2016 07:44 PM
do I need to somehow fireallclients?


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
14 Aug 2016 09:52 PM
hm


Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
14 Aug 2016 11:27 PM
Anyone?


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image