Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 comment

0

if this?

2 answers

✓ Accepted answer

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)

1 comment

0

oh wait im sorry i've understand this so wrong give me your discord so i can give you the sloution

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

This discussion is preserved as it was. New answers, comments, and votes are closed.