RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Now make it cycle between blue and red."
-- local script local part = script.Parent local canChange = true function changeColor(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA('Humanoid') if humanoid and canChange then canChange = false part.BrickColor = BrickColor.new("Bright red") wait(5) part.BrickColor = BrickColor.new("Bright blue") canChange = true end end part.Touched:Connect(changeColor)