CloudyTheFox
IT'S HIGH NOON
Hello there, I have recently made a little LUA script. (With the help of my friend)
How would one go about doing a timing via LUA.
Here's the code that my friend made up.
Basically, what happens is it hides the player. (Just Tails)
How would one go about doing a timing via LUA.
Here's the code that my friend made up.
Code:
addHook("ThinkFrame", function()
for player in players.iterate do
if not player.tailscloak
player.tailscloak = 0
end
if not (player.cmd.buttons & BT_CUSTOM1)
and (player.tailscloak > 0)
player.tailscloak = player.tailscloak-1
end
if player.mo and player.mo.skin =="tails"
if (player.cmd.buttons & BT_CUSTOM1)
and not (player.tailscloak > 350)
player.mo.flags2 = $1|MF2_DONTDRAW
player.pflags = $1|PF_INVIS
player.tailscloak = player.tailscloak+1
else
player.mo.flags2 = $1 & ~MF2_DONTDRAW
player.pflags = $1 & ~PF_INVIS
end
end
end
end)
Basically, what happens is it hides the player. (Just Tails)