Hello dear roblox dev comunity, Im making an Inventory system but with intvalues for my cooking game and I wanted to know how to get all intvalues inside a player which are not nil and above 0, tysm
1 Like
local Player = game.Players.LocalPlayer
for Values in ipairs(Player:GetChildren()) do
if Values:IsA("IntValue") then
if Values.Value > 0 then
--// code
end
end
end
1 Like
Oh right, i overthinked it a little bit, thanks!
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.