Script is supposed to turn the model into red for 0.2 seconds then return back to it's original colour, but the model just turns black. Any ideas why?
for i, v in pairs(Object:GetChildren()) do -- looping through the object.
if v:IsA("Part") and v.Name ~= "PrimaryPart" then
local ColourTag = Instance.new("Color3Value")
ColourTag.Parent = v
ColourTag.Name = "ColourTag"
ColourTag.Value = v.Color
v.Color = Color3.fromRGB(255, 0, 0) -- make it red.
end
end
wait(0.2)
for i, v in pairs(Object:GetChildren()) do -- looping through the object.
if v:IsA("Part") and v.Name ~= "PrimaryPart" then
v.Color = Color3.new(v:FindFirstChild("ColourTag").Value) -- make it the original colour.
end
end
