Here(haven't tested it yet but it should work):
debounce = true
function onTouch(hit)
if debounce == true then
debounce = false
message = Instance.new("Message")
message.Text = "blah"
message.Parent = game.Players:playerFromCharacter(hit.Parent)
wait(4)
message:remove()
debounce = true
end
end
script.Parent.Touched:connect(onTouch)
Insert this script into the brick. Change blah to what you want the message to say. |