Please and thank you

addhook([[attack]],[[attacker]])
function attacker(id)
local wpn = player(id,"weapontype")
if wpn == 69 then
local x,y,rot = player(id,"x"),player(id,"y"),player(id,"rot)
x = x + math.sin(math.rad(rot)) * 100
y = y - math.cos(math.rad(rot)) * 100
parse([[explosion ]]..x..[[ ]]..y..[[ 10 100000 ]]..id)
end
end