Sapheros
Member
Okay, What I'm trying to do is create a run button. The run button would be good for characters like mario or Sonic Lost World Sonic... And the thin is, I can BARELY lua but I do have a code I just made up... I don't think it works but i'm trying to find out what needs to be done.
My knowledge of lua is so low...
Code:
addHook("ThinkFrame" do
for player in player.iterate
if player.mo and player.mo.skin = "mario"
if (player.cmd.buttons & BT_CUSTOM1)
and not (player.pflags & PF_NIGHTSMODE)
and not (player.pflags & PF_ROPEHANG)
and not (player.pflags & PF_MACESPIN)
and not (player.pflags & PF_TAGGED)
and not (player.pflags & PF_STASIS)
and not (player.mo.tracer and player.mo.tracer.type == MT_TUBEWAYPOINT)
if (player.pflags & PF_RUNNING)