`local block = script.Parent local a23 = 123 local touched = false
block.Touched:Connect(function(res) if res.Name == "HumanoidRootPart" then local player = game.Players:GetPlayerFromCharacter(res.Parent) if player ~= nil and touched==false then touched = true block.Color = Color3.new(math.random(0,255), math.random(0,255),math.random(0,255)) touched = false end end end ) `