can anybody help me with this?
my script:
local multi = 0
local function multi(player)
for i, v in pairs(player:WaitForChild("Pets"):GetChildren()) do
multi = multi + v.Multiplier1.Value
end
return multi
end
can anybody help me with this?
my script:
local multi = 0
local function multi(player)
for i, v in pairs(player:WaitForChild("Pets"):GetChildren()) do
multi = multi + v.Multiplier1.Value
end
return multi
end
Both multi the function and multi the variable have the same name Hope this helps!
A fixed version would be:
local multi = 0
local function getMulti(player)
for i, v in pairs(player:WaitForChild("Pets"):GetChildren()) do
multi = multi + v.Multiplier1.Value
end
return multi
end