It happens at stage 5 and the color of the piece changes
the names of the parts are 0,1,2…
but when the player quits the game, it goes back and I added this part but I couldn’t change the color from scene 5 to scene 0, can you help me?
CP = Stage
if CP.Value == 0 then
local descendants = clone:GetDescendants()
for _, descendant in pairs(descendants) do
if descendant:IsA(“BasePart”) then
descendant.BrickColor = BrickColor.new(“Lily white”)
end
end
clone:FindFirstChild(“0”).BrickColor = BrickColor.new(“Lime green”)
elseif CP.Value == CP.Value then
clone:FindFirstChild(CP.Value).BrickColor = BrickColor.new(“Lime green”)
end
Uploading: RobloxScreenShot20230510_221729922.png…
Uploading: RobloxScreenShot20230510_221744289.png…