//It's a stupid script made for players who wanna use this script as their starting point for coding Lua in SRB2.
//This script gives Sonic the Upward Thok. A pretty simple second ability.
addHook("JumpSpinSpecial", function(player)
if (player.mo.skin == "sonic")
if not (player.pflags & PF_THOKKED)
P_SetObjectMomZ(player.mo, 15*FRACUNIT)
S_StartSound(player.mo, sfx_thok)
P_SpawnThokMobj(player)
player.pflags = $1|PF_THOKKED
end
end
end)