Problem with chat event

I have problem with chat event. I want if player chat for example “Super Hero” then he is doing something. It’s necessary to activate only “Super Hero”, not “super hero”

Use the .Chatted event to detect a player sending a message.

player.Chatted:Connect(function(msg) -- Detects whenever the specified player instance says something
	if msg == "Super Hero" then -- Checks if the message is "Super Hero"
		-- function
	end
end)

Thank you so much for help!!!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.