my script doesn't work and idk why but I'm trying to figure out how to count the amount of a item in workspace excluding other items so
for i,v in pairs(#game.Workspace:GetChildren()) do
if v.Name == "Bubble" then
game.Players.LocalPlayer.PlayerGui.Bubbles.Amount.Text = v
end
end
trying to make it only count "Bubble" but it doesn't work

3 comments
Remove the
#before gamebut that doesnt really count the amount of bubbles would be in the workspace
Or put them all into a folder then just do #workspace.Bubbles:GetChildren()