|
| 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
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 647 |
|
| |
|
|
| 10 Sep 2015 08:27 PM |
| There is more than 10 local scripts. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|