Need help with script

server

server2

why prints 0 ?

Can u show the script? Cuz rn we hav no info abt the code?

while wait() do
	local PetsFolder = script.Parent.Pets
	for I,Pets in pairs(PetsFolder:GetChildren()) do
		if I >= 1 then
			for Index,Entity in pairs(Pets:GetChildren()) do
				if Entity.Name == "QueuePets" then
					if Entity.Value < I then
						Entity.Value = I
					end
				end
			end
		end
	end
end
  • yess

inside

If you want help you will need to provide more info, it’s difficult to figure out the problem here, like where that number came from and so on!

1 Like

This if statement wouldnt work since I is 1