local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID="
game.Players.PlayerAdded:connect(function(player)
player.chatted:connect(function(msg)
local msg = msg:lower()
if msg == "/e punch" then
local animTrack = player.Character.Humanoid:LoadAnimation(animation)
animTrack:Play()
end
'end' expected (to close 'function' at line 6) near ''

2 comments
Please explain more?
You didn't do an ordinary connection line. You did a Mass Connection line which most people think is much easier. If you can see in the line, It's missing ')' so at the last end, you have to add it there.