|
| 18 Jan 2015 03:26 PM |
Here's the ancestry: StarterGui -Game_GUI -Menu --Menu_script --Character_editor ---Clothing ---Hair ---Skin ---Spawn --Main_menu ---Start_game
Here's the start of the Menu_script, a local script: local player = script.Parent.Parent.Parent local game_gui = script.Parent.Parent.Game_GUI local character = player.Character local shared_info = game.Workspace.Shared_info
local main = script.Parent.Main_menu local start = script.Parent.Main_menu.Start_game local editor_c = script.Parent.Character_editor
print("MenuLoaded")
start.MouseButton1Down:connect(function() main.Visible = false editor_c.Visible = true print(character) end)
It works as intended on solo and did work before I disabled filtering, but on server mode, this error shows up: 21:19:55.210 - Character_editor is not a valid member of ScreenGui 21:19:55.210 - Script 'Players.Player1.PlayerGui.Menu.Menu_script', Line 8 21:19:55.210 - Stack End
When I add any type of wait() or use WaitForChild, the Start_game button does not work for a reason I do not know of. There is also absolutely nothing in the output log except the typical network/ connection messages. Does anyone know what may be causing this problem, or possibly how I can fix this? |
|
|
| Report Abuse |
|
|
| |
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 19 Jan 2015 11:29 AM |
I don't know if this'd work, and it probably won't, but maybe you could try to put
local editor_c = script.Parent:FindFirstChild("Character_editor")
Sometimes that fixes my GUI problems. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 11:33 AM |
| I've tried that, but that caused the script to not go past the line as well as not providing any output messages at all. This also happened when I used a wait(). Even if there was an ancestry problem, there would at least be a output error message on the wait() test. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jan 2015 03:09 PM |
| I still haven't been able to find what's causing the problem. |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2015 04:40 PM |
Did you make sure that the object is there? Try checking with Command bar/Dev Console if it's there or not. Whenever I have this issue, so far, the Command bar/Dev Console can't find it, meaning it's not there.
That would cause an error though if it's not there, I would think, but try it to make sure just in case. |
|
|
| Report Abuse |
|
|
Sinblade
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 2782 |
|
| |
|