Ok so my script is supposed to make a Frame invisible after the player clicks I'm bad at coding and wanted to know how I would fix this monstrosity of a script
Script.parent.frame.textbutton.onclick.frame.visible false
Sooo yeah please help me fix this
I'm not sure if this is the correct path to your button, but if it is then this should work:
script.parent.frame.textbutton.MouseButton1Click:Connect(function() script.parent.frame.textbutton.frame.visible = false end)
To make the script call when the button is clicked, you need to use MouseButton1Click
. And when setting properties for anything, you need to use =
.