(im doing team create with my friend) I'm trying to make a chatted event yet when I try try to do anything with the message it returns it says it's nil:
attempt to call a nil value
heres my script: (by the way i've tried changing the 6 to 7 and 5 yet nothing changed)
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg:Sub(1,6) == "/e test" then
print('Wowies!!!')
end
end)
end)

1 comment
from the parentheses in the title, WANNA JOIN MY RIOT DUDE?! WE WANT ANSWERS WE WANT ANSWERS! STOP CLOSING QUESTIONS STOP CLOSING QUESTIONS!