Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This Is Working In Studio test but not in the real game why gui problem with mousebutton1click?

Asked by
hokyboy 270 Moderation Voter
5 years ago
script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Parent.Beta.Visible = false
    script.Parent.Parent.Parent.Main.Visible = true
end)

this does work in studio but not in game does this have with filtering enabled

if this is i need to re-script all my gui's

0
Can you post some more information like the hierarchy of your GUI itself, whether this is in a local or server script etc Azuc 112 — 5y
0
That should be working, make sure you're doing the correct script.Parent's and put a print("something") to debug. Also you shouldn't have a script in every single button, there are more simple ways. xEiffel 280 — 5y
0
i do it works in studio but not in the game it self hokyboy 270 — 5y
0
Hoky, is it a server script or local script? xEiffel 280 — 5y
View all comments (5 more)
0
its a normal script in a gui hokyboy 270 — 5y
0
use Connect , connect is deprecated maumaumaumaumaumau 98 — 5y
0
Use a local script, server scripts in player gui do not work with filtering enabled. xEiffel 280 — 5y
0
thanks Xeiffel i changed all scripts to local scripts and now it works hokyboy 270 — 5y
0
No problem. xEiffel 280 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Well, most likely this will work,

script.Parent.MouseButton1Click:Connect(function()
 script.Parent.Parent.Parent:WaitForChild("Beta").Visible = false
 script.Parent.Parent.Parent:WaitForChild("Main").Visible = true end)

Sorry,im typing from phone so... codeblocks are shitty...

0
Lel, didn't saw that it's answered. AswormeDorijan111 531 — 5y
Ad

Answer this question