function Superman.onJump(key, keyState)
local self = Superman
local task = getPlayerSimplestTask(localPlayer)
if not isPlayerFlying(localPlayer) then
if task == "TASK_SIMPLE_IN_AIR" then
setElementVelocity(localPlayer, 0, 0, TAKEOFF_VELOCITY)
setTimer(Superman.startFlight, 100, 1)
end
end
end
Well was making superman adminspawned only and i copied that to move it to another file....