SonicFan214
Member
I am attempting to make a code that enables the machine flag only when the character is doing the dash mode thing, so that why it will behave like Metal Sonic's dash mode. The code doesn't work. What am I doing wrong here?
Code:
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "imnotrevealingcharname"
if player.dashmode > 3*TICRATE
player.machine = true
else
player.machine = false
end
end
end
end)