for i, v in pairs(game.Workspace.Obby.Regular.Push:GetChildren()) do if v.Push then local part = v local value = v.Push.Value spawn(function() while wait() do wait(value) part.Decal.Texture = "rbxassetid://272632642" for i = 1,(part.Size.z / 0.30) do part.CFrame = part.CFrame + (part.CFrame.lookVector * -0.30) wait() end wait(value) part.Decal.Texture = "rbxassetid://334960362" for i = 1,(part.Size.z / 0.30) do part.CFrame = part.CFrame + (part.CFrame.lookVector * 0.30) wait() end end end) end end
Making a script that increases the size of all the parts with a "Push" Value inside of them in a folder but only one part is actually increasing in size but the others aren't
How do I fix the problem?
maybe try:
if v:FindFirstChildOfClass("NumberValue") then
or
if v:FindFirstChild("Push") then
or maybe even this
if v:IsA("Part") and v:FindFirstChild("Push") then
one of these should probably work