//My code, I made it.
//It's a lua script in SRB2
//Sonic gets the Upward Thok
addHook("JumpSpinSpecial", function(player)
if (player.mo.skin == "sonic")
if not (player.pflags & PF_THOKKED)
P_SetObjectMomZ(player.mo, 17*FRACUNIT)
S_StartSound(player.mo, sfx_thok)
P_SpawnThokMobj(player)
player.pflags = $1|PF_THOKKED
end
end
end)