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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why isn't this working?

Previous Thread :: Next Thread 
Juneist is not online. 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 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
22 Apr 2017 10:10 PM
Because the GUI hasn't been added to PlayerGui yet?


Report Abuse
Juneist is not online. 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
FrogNinjaX is online. FrogNinjaX
Joined: 27 Nov 2010
Total Posts: 79
22 Apr 2017 10:12 PM
Try using
joinPlayer.PlayerGui:WaitForChild("EnableSuperJump").Enabled = true
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
22 Apr 2017 10:13 PM
Almost never. Are you actually yielding for 5 seconds? Regardless, try using the WaitForChild function.


Report Abuse
FrogNinjaX is online. FrogNinjaX
Joined: 27 Nov 2010
Total Posts: 79
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 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
22 Apr 2017 10:16 PM
That makes no sense.


Report Abuse
Juneist is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
22 Apr 2017 10:18 PM
Care to invite me to team create?


Report Abuse
Juneist is not online. 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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
22 Apr 2017 10:31 PM
Startergui replicates locally meaning that the gui isn't visible from the server.


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is not online. 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
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
22 Apr 2017 10:40 PM
Everything in that reply is bad.


Report Abuse
Juneist is not online. 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
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
22 Apr 2017 11:05 PM
Whatever, I'm not here to fight, nor am I saying my was is ideal.
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