I am making a Simulator game on Roblox. I want to make it so when your backpack maxes out you get a popup GUI saying that your backpack is full. I have made the GUI and everything I Just need help on the script. This is the script I have:
`local SellGUI = script.Parent.Parent
Swings.Changed:Connect(function()
script.Parent.Indicator.Text = Swings.Value.."/"..Backpack1.Value
if Swings.Value >= Backpack1.Value then -- checks if the swing value is more/equal to the backpack value
SellGUI.Enabled = true
end
end)`
It all works, but the local SellGUI isn't set up to the right place. I have tried for hours and I can't properly link it for the life of me. The SellGUI is located in the StarterGUI Inside of a GUI named backpack. It is a Frame. The Script is local script located in the same backpack GUI. But, under another Frame which is Main. **The Parenting doesn't work as they are not parented to each other. I have posted a picture with this post. **
The LocalScript is where the Script is located if that helps at all and the script Open has NOTHING to do with this
https://gyazo.com/cfd796e146c990a17b631ba680baf02b
Thanks in advance!

1 comment
what do you mean by "set up"