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

The GUI doesn't pop up when the Union is clicked, why?

Asked by 3 years ago

I been trying to make a script where I press a Union and a GUI would come up, the union has a clickdetector and the GUI is in the right places, I have no clue why is this happening I would like some answers to find the solution to this problem. Thanks

local guist = script.Parent.Parent.Parent.Frame

script.Parent.Parent.Parent.Parent.Parent.Workspace.Union1Click.ClickDetector.MouseClick:Connect(function()
guist.Visible = true
    print("works")
end)

The print doesn't even work in the output.

0
script.Parent.Parent.Parent.Parent.Parent.Workspace lmao raid6n 2196 — 3y
0
Donkey, I tried using game.Workspace but that didn't work so I tried this TheEmperorDupled 2 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

you just have to use game.Workspace not script.Parent.Parent.Parent.Parent.Parent.Workspace.

0
It didn't work TheEmperorDupled 2 — 3y
0
oh CrownedFigure 45 — 3y
0
maby try cloning the gui into the players PlayerGui CrownedFigure 45 — 3y
Ad

Answer this question