I know it requires a function with a touched event but i'm wondering if it requires and if statement or while true do loop or repeat and until. Please show me how.
Hey! Insert a serverscript inside the part you want to change color of. After that go inside the script and paste this in. Should work! :)
local debounce = false script.Parent.Touched:Connect(function(hit) if debounce == false then debounce = true if hit.Parent:FindFirstChild("Humanoid") then script.Parent.BrickColor = BrickColor.Random() end wait(1) debounce = false end end)