Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:06 PM |
if GPService:PlayerHasPass(joinPlayer, superJumpId) then wait(5) joinPlayer.PlayerGui.EnableSuperJump.Enabled = true end
The script says it's not in their PlayerGui.
It's in StarterGui and Archivable is ON.
Why is saying that it doesn't exist?
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:08 PM |
Why is it saying that it doesn't exist?*
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:10 PM |
Because the GUI hasn't been added to PlayerGui yet?
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:11 PM |
So it takes more than 5 seconds for a GUI with a button and a small localscript to load?
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:12 PM |
Try using joinPlayer.PlayerGui:WaitForChild("EnableSuperJump").Enabled = true |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:13 PM |
Almost never. Are you actually yielding for 5 seconds? Regardless, try using the WaitForChild function.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:13 PM |
| And what you can do is test it in studio, then look inside the PlayerGui to see if it actually is in there. |
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:14 PM |
I did WaitForChild, and I yielded for 15 seconds. Still, no GUI.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:16 PM |
The GUI either doesn't actually exist or has a different name. Nothing else is removing the GUI from anywhere or changing the name of it?
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:16 PM |
And it was in PlayerGui when I looked in the Explorer.
|
|
|
| Report Abuse |
|
|
| |
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:17 PM |
Nothing is changing the name of the GUI, nor is anything removing it, nor does it have a different name. I reread the script and the name in the explorer, nothing is different.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:18 PM |
Care to invite me to team create?
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:23 PM |
You've got to be a friend, just unfriend me afterwards.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:31 PM |
Startergui replicates locally meaning that the gui isn't visible from the server.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:33 PM |
I assumed his game wasn't FilteringEnabled and forgot about that. That's most likely it.
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:34 PM |
The game I originally tested it in had FE, I see now.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:39 PM |
serverscriptservice and clone it into the starter gui since its FE also add a wait() to your script (looks like you already have) to allow time to load the guis |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 10:40 PM |
Everything in that reply is bad.
|
|
|
| Report Abuse |
|
|
Juneist
|
  |
| Joined: 04 Mar 2017 |
| Total Posts: 347 |
|
|
| 22 Apr 2017 10:48 PM |
You wouldn't add it to StarterGui, you'd add it to their PlayerGui, and I did it and I didn't have to wait anyways.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 11:00 PM |
"Everything in that reply is bad."
Well guess what, it does the job -- and yours dosn't. |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 11:02 PM |
No, it's extremely overcomplicated and it's one of the dumbest solutions you can possibly use for something like this.
My reply actually does address the issue, but OP can ultimately thank Disillusions because who knows how long it would've taken me to remember to ask OP about FilteringEnabled.
|
|
|
| Report Abuse |
|
|
|
| 22 Apr 2017 11:05 PM |
| Whatever, I'm not here to fight, nor am I saying my was is ideal. |
|
|
| Report Abuse |
|
|