Problems making a shop close in a Filtering Enabled game?
Asked by
7 years ago Edited 7 years ago
I have been testing with a shop and successfully created a normal one, in a non-FE place. However, I tried making the shop in Filtering Enabled, and I got as far as the close button before I got stuck. The closing script works fine in play solo, but not in a local server or in an actual game.
This is how I made it,
game > StarterGui > Shop(ScreenGUI) > Frame1(Frame) > Close(TextButton) > LocalScript
The LocalScript's Code
2 | script.Parent.Parent.Parent:Destroy() |
4 | script.Parent.MouseButton 1 Click:connect(onClicked) |
I researched a bit about Filtering Enabled and Remote Events/Functions, yet I still was very confused and making messy scripts so I just went with this simple script.
Also if you want to for any reason, you can see the shop here.