I have a script that uses player chatted to set a players class, here's a base of what I want the script to look like:
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == "here" then
print("lol")
elseif msg == "here2" then
print("lol1")
end
end)
end)
If I say here it works, but if I say here2 it doesn't, how would I get around this (without changing the message)

3 comments
Apologies for the wrong unicode quotes, I’m currently on mobile.
Thank you!
If I solved your problem, please mark this as the solution :)