So what I mean by this is, There is a gui I have called Amount and theres a textbox in it and what it does for this script is it will give the amount of radios you want depending on the text, but when I actually try to do this like for example if I put 5 in the gui it will only give me like 1 or 2 radios idk, can someone help me?
number = game.Players.LocalPlayer.PlayerGui.Amount.Frame.AmountPlayer.Text Player.Chatted:connect(function(cht) if cht:match("-radios") then for _, child in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do child:Destroy() end wait(0.5) for i=1, #number do workspace.Buy:FireServer(0, "BeatUpBoombox") end end end)

1 comment
Are you making a custom chat?