-- This is a lil simple script i made, I'll explain the process.
addHook("PlayerThink", function(player) -- Adds a "Hook" to the player.
if player and player.valid and player.mo.valid then -- Checks for the player.
if player.mo.state == S_PLAY_JUMP -- Sees if the player is doing the Jumping State.
player.pflags = $ |PF_SPINNING -- Toggles on the spinning flag.
end
end
end)