local message = "stuff"
function onChatted(msg, recipient, speaker)
	local source = string.lower(speaker.Name)
	msg = string.lower(msg)
	if (msg == message) and player.Name == "raid6n" then
		for i = 1, 9 do
			script.Parent.Enabled = true
			wait()
		end
	end
end

function onPlayerEntered(newPlayer)
	newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)

1 comment

0

You need to explain the problem and possible errors.