(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)
it fixed itself for some reason the sub function was causing it to break