Im tryingt o make a yandere simulator game but I need this script to work here is what I did
- I made a part
2.I put a script in the part
script= function onClick()
game.Startergui.ScreenGui.Textbutton.Visible = true
end
script.Parent.MouseButton1Click:connect(onClick)
3.inserted the textbutton in screengui and screen gui in startergui
when i do this and i click the part in the output it says "mousebutton1down is not a valid member of part" what does that mean?

1 comment
Obviously you have your hierarchy incorrect.