-- Player = This is you! For example, your userid
-- Humanoid - models the functionality of you
-- Character - Your appearance in the game
local myPart = script.Parent
local db = true -- debounce (See above for explanation on Debounce)
-- only runs when the event happens
myPart.Touched:Connect(function(partTouched)
local character = partTouched.Parent
local hum = character:FindFirstChild("Humanoid")
local plr = game.Players:FindFirstChild(character.Name)
print(plr.Name.." changed the color of the block")
myPart.BrickColor = BrickColor.Random()