I don't see what I'm doing wrong. Please help!
local message = "A light in the Darkness" local ErnestaLight = script.Parent function onChatted(msg, recipent, speaker) local sourse = string.lower(speaker.Name) msg = string.lower(msg) if (msg == message) then for i = 1, 9 do ErnestaLight.BrickColor.Name("Really red") ErnestaLight.Material.Name("Neon") end end end
hope this helps
local players = game:GetService("Players") local block = script.Parent -- The block we're manipulating local text = "A light in the Darkness" -- Match to what they chatted local function onChatted(chatMessage, recipient, speaker) if (recipient) then return end if (chatMessage:lower() == text:lower()) then block.BrickColor = BrickColor.new("Really red") block.Material = Enum.Material.Neon end end players.PlayerAdded:Connect(function(player) player.Chatted:Connect(onChatted) end)