hey everyone i need ur help with a script of mine. The whole thing is a script for picking a character with a button. Problems come when i want to close the script i made it so if you click the button it does the stuff and it makes the gui not visible however it just flickers for one sec and comes back with no changes to the gui i set when the button is clicked.
here are some screenshots and the scripts themself:
if you need more info let me know cuz i dont even know what to do im just stuck here for a month