Hey there, I am making a menu to buy ingame cash for robux, but the menu appears to break when the remote to update it fires. The code:
game.ReplicatedStorage.EventController.OnClientEvent:Connect(function(Method, ETC)
if Method == "UpdateGUI" then
local Data = ETC[1];
made:setLabel("Cash: " .. (Data.Cash or 1))
local percent = (Data.Cash or 0) * .50
made:setDropdown({
GUI.new():setLabel(percent .. ' Cash [5 R$]'),
GUI.new():setLabel("1000 Cash [10 R$]"),
GUI.new():setLabel("2000 Cash [17 R$]"),
GUI.new():setLabel("3000 Cash [24 R$]"),
})
end
end)
I’ve tried to clear it with made:setdropdown({}) first with a delay, still don’t work. It fires about 1 time a second.