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 » Game Design
Home Search
 

Re: Gui works fine in Studio but errors in-game?

Previous Thread :: Next Thread 
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 08:23 PM
When I was working on a gui for my game(http://www.roblox.com/games/287847165/MichaelDunn01-Games) it worked perfectly in Roblox Studio, but when I published it and joined the game it gives me a dozen errors(Too many to list). Many errors that were not given when testing in studio. Can someone tell me why I am getting these errors? If you check the game, the errors are in the local logs(F9).
Report Abuse
WildGuest is not online. WildGuest
Joined: 28 Feb 2010
Total Posts: 647
10 Sep 2015 08:25 PM
Post the script
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 08:27 PM
There is more than 10 local scripts.
Report Abuse
WildGuest is not online. WildGuest
Joined: 28 Feb 2010
Total Posts: 647
10 Sep 2015 08:33 PM
I went and saw the errors but I can't tell what's going on without knowing how the script is made. Start with the first error and provide the script.
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
10 Sep 2015 08:33 PM
huh thats probably why
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 08:40 PM
InfoBar is not a valid member of ScreenGui
"...InfoButton.Checker, line 2"
The Script:
while true do
if script.Parent.Parent.InfoBar.Visible == false and script.Parent.Parent.ActionFrame.Visible == true then
script.Parent.Parent.ActionFrame.Visible = false
end
wait(0.01)
end
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 08:45 PM
Most of the errors on the list of errors are nil values(Idk why) with the character and finding the player or other frames. But I know that those items are there. Could it be that it is local scripts?
Report Abuse
WildGuest is not online. WildGuest
Joined: 28 Feb 2010
Total Posts: 647
10 Sep 2015 08:45 PM
InfoBar must not be a child of script.Parent.Parent

Is there a script that adds InfoBar or is it a child of script.Parent.Parent before the game starts?
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 08:48 PM
It is already there with everything else. All in one SurfaceGui. I just have different frames for different things clicked on. InfoBar is a child of the SurfaceGui and so is InfoButton.
Report Abuse
WildGuest is not online. WildGuest
Joined: 28 Feb 2010
Total Posts: 647
10 Sep 2015 08:49 PM
That script is in a local script? Change it to a regular script and see if it makes a difference. I'm not an expert on scripting but I can help solve some problems.
Report Abuse
WildGuest is not online. WildGuest
Joined: 28 Feb 2010
Total Posts: 647
10 Sep 2015 08:56 PM
Is the SurfaceGUI going to be seen by all players or will each player have their own SurfaceGUI?
Report Abuse
ausomefire is not online. ausomefire
Joined: 20 Feb 2010
Total Posts: 373
10 Sep 2015 09:09 PM
I see this all the time, it works because in studio there was no lag but in real world there is lag. for every outside object you reference in your script use the :WaitForChild() function so it doesnt crash because the script loaded before an object.
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 09:11 PM
It works,sort of. I changed most of them to regular scripts and now it will work for some of the scripts, but thanks, a little bit of lag, but it works. Some of the scripts are not working but i'll have to figure them out tomorrow. And to reply to your question each player, it is to show their health and player pic and team and such.
Report Abuse
michaeldunn01 is not online. michaeldunn01
Joined: 01 Aug 2013
Total Posts: 24
10 Sep 2015 09:15 PM
and oh, i didn't know that, ausomefire.(I didn't see your post before I last posted) I'll have to do that tommorow. I changed them to regular scripts when I should have done that. Oh well, I will have to work on it tommorow. Thanks for the help everyone.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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