so..... this exit gui that i made is not working, here is the script!
1 | function exit() |
2 | wait( 0 ) |
3 | script.Parent.Parent:Destroy() |
4 | end |
5 | script.Parent.MouseButton 1 Down:connect(exit) |
The First parent is the Exit, and the second is the frame, shouldi change it to the Shop Gui Itself? I dont know...... can anyone help? It is in a model, and it apears when trigered, that part works fine, and it does work on studio mode, i can never get it to work :/
Without seeing the GUI itself I cannot tell, but try this (just a rewrite of the code so it looks neater, may fix it, I'm not sure to be honest. You probably have a problem with parents or something):
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | script.Parent:remove() |
3 | end ) |
Hope it works, if not, I can't help you there - sorry!