I have a simple button that has only two functions, to enable the UI if it's already hidden, and to disable it like wise. The UI starts off already visible. The button and the other two it needs to change properties of are all under one screengui under the starter gui. I don't get any errors for it, it just wont work.
Le Script
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.cashButton.Visible==true then
script.Parent.Parent.cashButton.Visible=false
end
if script.Parent.Parent.cashButton.Visible==false then
script.Parent.Parent.cashButton.Visible=true
end
if script.Parent.Parent.menuButton.Visible==true then
script.Parent.Parent.menuButton.Visible=false
end
if script.Parent.Parent.menuButton.Visible==false then
script.Parent.Parent.menuButton.Visible=true
end
wait(1)
end)

3 comments
this is the worst build of a script
this is the worst build of a script
gloveshun im looking for help not your opinion on the "build of the script"