So I am doing a pokedex feature for my game, this is where the Pokedex is located: game.Players.LocalPlayer.Pokedex
Inside of that Pokedex (ObjectValue), are all the Pokemon's Pokedex numbers, eg: 001, 002, etc.
Those 001, 002, etc. are BoolValues (so false/true)
Now this is the important part (script):
local Player = game.Players.LocalPlayer
local Pokedex = Player.Pokedex
local Number = 0
for i,v in pairs (Pokedex:GetChildren()) do
if v.Value == true then
----How would I add up all the values here if they are true? (ONLY TRUE)
end
end
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |