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: Help

Previous Thread :: Next Thread 
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
07 Sep 2017 05:57 PM
for i,v in pairs(game.Players:GetChildren()) do
v.PlayerGui:WaitForChild("Main_UI").Book_Page.Visible = true end

"Infinite yield possible on "PlayerGui:WaitForChild("Main_UI").Book_Page""


How do I fix this? The script keeps breaking at this line, it works in studio, but breaks in game.
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
07 Sep 2017 05:59 PM
you use GetPlayers on the Players service, Main_Ui wasn't found in the default time WaitForChild waits
Report Abuse
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
07 Sep 2017 06:33 PM
wait(20) -- Player load in

for i,v in pairs(game.Players:GetPlayers()) do
v["PlayerGui"]["Main_UI"]["Book_Page"].Visible = true end


I don't think it should matter since I gave like 20 seconds to load in and it said, "Main_UI is not a valid member of PlayerGui"
Report Abuse
ColinRocks99 is not online. ColinRocks99
Joined: 04 May 2013
Total Posts: 1533
08 Sep 2017 09:51 PM
Bump
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
08 Sep 2017 09:53 PM
If FilteringEnabled is on, turn it off. Problem solved.

That isn't to say that there aren't any other problems with the code that you posted, though.


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