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

why if me click the "DummyCaptain" the ShopGUI is not see at my screen?

Asked by 3 years ago
Edited 3 years ago

game.Workspace.DummyCaptain.ClickDetector.MouseClick:Connect(function() script.Parent.Parent.Parent.StarterGui.ShopClick.Frame.Visible = true
end)

0
if this? RizkySugihartoYT 36 — 3y

2 answers

Log in to vote
0
Answered by
mroaan 95
3 years ago

its a gui right? we dont need a clickdetector on it because we dont need one frames already have their own events and if the script was a normal script then change it to a local script and write this

game.Workspace.DummyCaptain.MouseClick:Connect(function() 
    script.Parent.Parent.StarterGui.ShopClick.Frame.Visible = not script.Parent.Parent.StarterGui.ShopClick.Frame.Visible
end)
0
oh wait im sorry i've understand this so wrong give me your discord so i can give you the sloution mroaan 95 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

game.Workspace.DummyCaptain.ClickDetector.MouseClick:Connect(function() script.Parent.Parent.Parent.StarterGui.ShopClick.Frame.Visible = false end)

Answer this question