I've tried to search the web for this issue, but haven't found any help for that... The problem is that my ScreenGui buttons work fine and function in 'Edit Mode's 'Test Mode' But once I go to play the real game, the buttons do not function... I have no idea what I'm supposed to do to fix it so I hope that one of you will help me,please !
game.StarterGui.ScreenGui.Background.MENU.1P.LocalScript
01 | Button = script.Parent |
02 | OneP = script.Parent.Parent.Parent.TAB.OneP |
03 | TwoP = script.Parent.Parent.Parent.TAB.TwoP |
04 | SPECIAL = script.Parent.Parent.Parent.TAB.SPECIAL |
05 | CART = script.Parent.Parent.Parent.STAB.CART |
06 | ART = script.Parent.Parent.Parent.STAB.ART |
07 | SCRIPTERS = script.Parent.Parent.Parent.STAB.SCRIPTERS |
08 | IDEAS = script.Parent.Parent.Parent.STAB.IDEAS |
09 |
10 | Button.MouseButton 1 Click:connect( function () |
11 | OneP.Visible = true |
12 | TwoP.Visible = false |
13 | SPECIAL.Visible = false |
14 | CART.Visible = false |
15 | ART.Visible = false |
16 | SCRIPTERS.Visible = false |
17 | IDEAS.Visible = false |
18 | end ) |
EDIT: You forgot the local ;/ here u go:
01 | local Button = script.Parent |
02 | local OneP = script.Parent.Parent.Parent.TAB.OneP |
03 | local TwoP = script.Parent.Parent.Parent.TAB.TwoP |
04 | local SPECIAL = script.Parent.Parent.Parent.TAB.SPECIAL |
05 | local CART = script.Parent.Parent.Parent.STAB.CART |
06 | local ART = script.Parent.Parent.Parent.STAB.ART |
07 | local SCRIPTERS = script.Parent.Parent.Parent.STAB.SCRIPTERS |
08 | local IDEAS = script.Parent.Parent.Parent.STAB.IDEAS |
09 |
10 | Button.MouseButton 1 Click:connect( function () |
11 | OneP.Visible = true |
12 | TwoP.Visible = false |
13 | SPECIAL.Visible = false |
14 | CART.Visible = false |
15 | ART.Visible = false |
16 | SCRIPTERS.Visible = false |
17 | IDEAS.Visible = false |
18 | end ) |