addHook("ThinkFrame", function()
for player in players.iterate do
if player and player.valid then
if player.mo and player.mo.valid and player.mo.skin == "sonic"
and not (player.powers[pw_carry] == CR_NIGHTSMODE) then
player.mo.frame = $|TR_TRANS40
end
LUA_DEAD:5: 'end' expected (to close 'if' at line 1) near '<eof>'
How do I fix this
addHook("ThinkFrame", function()
for player in players.iterate do
if player and player.valid then
if player.mo and player.mo.valid and player.mo.skin == "srbii"
and not (player.powers[pw_carry] == CR_NIGHTSMODE) then
player.mo.frame = $|TR_TRANS40
end
end
end)