Basically i got this table which i’m planning to add to but i’m making a function for it to check which strength level you got basically
if you have 100 strength your six pack will get visible and when you reach 1250 strength it’ll change colors and become red
local module = {
["Visible"] = {Strength = 100, Color = nil, Position = -0.4},
["White"] = {Strength = 1250, Color = Color3.fromRGB(255, 255, 255)},
}
This is what i’ve tried so far
function module:CheckData(Strength, Character, Muscles)
if Strength.Value > module.Visible.Strength then
Muscles.Torso.CFrame = Character.UpperTorso.CFrame * CFrame.new(0,0,module.Visible.Position)
else
Muscles.Torso.CFrame = Character.UpperTorso.CFrame
end
for i, v in pairs(module) do
print(v)
if Strength.Value >= 100 then
for l, b in pairs(Muscles.Torso:GetChildren()) do
if b:FindFirstChild("Outline") ~= nil then
if v.Color == nil then
b.Outline.Transparency = 1
else
b.Outline.Transparency = 0
b.Outline.Color = v.Color
end
end
end
end
end
end
return module
Basically i’m trying to loop through the table and finding the one that match my strength