I just tested the script, made a few adjustments, and it ran just fine...
The final script:
Code: Select all
{
INCREASETIMER [0]
TIMERAMOUT [1.0]
Spawn[ ()
{
Console(true);
LowLevel("Keycheck");
} ]
Keycheck[ ()
{
if(INCREASETIMER < self.time)
{
if (IsKeyDown(46))
{
ModifyAttribute("speed", 5,"Player");
}
else
{
ModifyAttribute("speed", -5,"Player");
}
INCREASETIMER = self.time + StringCopy(TIMERAMOUT);
}
debug(GetAttribute("speed", "Player"));
} ]
}