It's meant to colour every part in the game called part. However it only colours one part even though there are lots of parts called part. Please could you fix this and make it so it colours all the parts every 30 seconds.
db = false
function onPlayerAdded()
if db == false then
db = true
while true do
for i,v in pairs (game.Workspace:GetChildren()) do
if v:IsA("Part") then
if v.Name == "Part" then
v.BrickColor = BrickColor.new("Bright blue")
wait(30)
v.BrickColor = BrickColor.new("Bright red")
wait(30)
v.BrickColor = BrickColor.new("New Yeller")
wait(30)
end
end
end
end
end
end
game.Players.PlayerAdded:connect(onPlayerAdded)
