Robot Constructor ☁  (Online Platformer) 

Instructions:         ♦ Robot Constructor ♦\n\nWelcome to one of the most non-generic online scrolling platformer on Scratch!\n⊳Build your own robot and play with other people online!\n\n⚠️PLEASE READ: (Instructions further down).\nCloud variables may have delay/ lag sometimes, and that will cause:\n-Bullets not taking damage\n-Players "teleporting"\n-Players freezing\nThis game may not run smooth on slow computers*⚠️\n\nPlease ❤️️ & ⭐ if you enjoy this game :D\n\n         ◢ How to play ◣\n⊳Arrow keys / WASD to move\n⊳Up arrow / W x2 to double jump\n⊳Down arrow / S to crouch\n⊳Space / click to shoot\n⊳R to reload\n⊳Button / T to open chat\n⊳Button / M to open map\n⊳Move your mouse-pointer around fast to swing the lightsaber\n\n       ◢ How to edit the robot ◣\n⊳Click the robot at the menu to open edit mode\n⊳Click on any part then click the arrows\n⊳Find a combination that you like\n⊳Play online with others and show them your robot :D\n\n\n▶Credits are inside the project\n\n\n\n\n\nTags______________________________________\n#KIKOKO_ #Platformer #scrollingplatformer #shooter #sciencefiction #plasma #robot #robotcreator #robotconstructor #robotmultiplayer #fun #online #multiplayer #shooterplatformer #multiplayerplatformer #scrollingplatformer #gun #customizable #powers #ninja #lighsaber #lasersword #smooth #griffpatch #game #games #art #all #love #favorite #follow\n#why_did_you_read_the_hashtags?

@Stage\n\nwhen flag clicked\nerase all\nswitch backdrop to (black v)\n\nstart sound [Virtual Riot - Energy Drink v]\n\nwhen I receive [start v]\nset volume to (70) %\nif < (item (1) of [>settings v]) contains [ON]?> then\n    forever\n        play sound [Virtual Riot - Energy Drink v] until done\n    end\nend\n\nwhen I receive [menu v]\nrepeat (10)\n    change volume by (-7)\nend\nstop [other scripts in sprite v]\nset volume to (0) %\n\nset volume to (70) %\n\n@Blank\n\n@~Player\n\ndefine Shake Screen (scroll x) (scroll y) duration (duration) power (power)\nset [i v] to (power)\nrepeat ((i) / (duration))\n    set [scroll x v] to (round ((scroll x) + ((i) * (pick random (-1.0) to (1.0)))))\n    set [scroll y v] to (round ((scroll y) + ((i) * (pick random (-1.0) to (1.0)))))\n    change [i v] by ((duration) * (-1))\n    Position\n    if <(~Player Y) > [10000]> then\n        set [scroll y v] to (~Player Y)\n    end\n    if <(~Player X) > [10000]> then\n        set [scroll x v] to (~Player X)\n    end\n    if <(~Player X) < [-10000]> then\n        set [scroll x v] to (~Player X)\n    end\nend\n\ndefine Hp Bar Render | x (x) y (y) Length (length) Front color (front color) Size (size) Hp Bar: (hp)\nif <(hp) > [0]> then\n    go to [front v] layer\n    set pen size to (size)\n    set pen color to (#b3b3b3)\n    go to x: ((x) + ((length) / (2))) y: (y)\n    pen down\n    go to x: ((x) - ((length) / (2))) y: (y)\n    pen up\n    set pen size to (size)\n    set pen (color v) to (front color)\n    set pen (saturation v) to ((100) - ((hp) / (3)))\n    set pen (brightness v) to (100)\n    pen down\n    go to x: (((x) - ((length) / (2))) + ((hp) / ((100) / (length)))) y: (y)\n    pen up\nend\nPosition\n\ndefine Physics | default speed (speed) default jump (jump) crouch (crouch) Gravity (gravity)\nset size to ((100) * (PLAYER SIZE)) %\nif <(~Player HP) > [0]> then\n    if <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n        change [~player crouch v] by (((crouch) - (~Player Crouch)) / (3))\n        switch costume to (hitbox crouch v)\n    else\n        change [~player crouch v] by (((0) - (~Player Crouch)) / (4))\n        switch costume to (hitbox v)\n        if <<touching (>platform v)?> and <(ELEVATOR?) = [false]>> then\n            change [~player crouch v] by (((crouch) - (~Player Crouch)) / (2))\n            switch costume to (hitbox crouch v)\n        else\n            change [~player crouch v] by (((0) - (~Player Crouch)) / (4))\n            switch costume to (hitbox v)\n        end\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [sx v] by ((speed) * (-1))\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [sx v] by (speed)\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(in air) < [5]> then\n            set [sy v] to (jump)\n            if <(~Player Crouch) < [2]> then\n                change [~player crouch v] by (((-10) - (~Player Crouch)) / (3))\n            end\n        end\n        if <<<(timer) < ((_double jump timer) + (0.2))> and <(in air) > [5]>> and <(_double jumped?) = [false]>> then\n            set [sy v] to ((jump) + ((jump) / (4)))\n            if <(~Player Crouch) < [2]> then\n                change [~player crouch v] by (((-10) - (~Player Crouch)) / (3))\n            end\n            set [_double jumped? v] to [true]\n        end\n    else\n        if <(in air) < [5]> then\n            set [_double jump timer v] to (timer)\n            set [_double jumped? v] to [false]\n        end\n    end\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.6]> then\n    change player x by (round (sx))\nend\nif <(sy) > [-15]> then\n    change [sy v] by (gravity)\nend\nchange player y by (round (sy))\nchange [scroll x v] by (round (((~Player X) - (SCROLL X)) / (10)))\nchange [scroll y v] by ((round (((~Player Y) - (SCROLL Y)) / (6))) + (9))\nset [~player crouch v] to (round (~Player Crouch))\nPosition\nif <<(~Player Crouch) = [1]> or <(~Player Crouch) = [-1]>> then\n    set [~player crouch v] to [0]\nend\ngo to [front v] layer\nset [ghost v] effect to (100)\n\ndefine change player x by (sx)\nchange [~player x v] by (sx)\nPosition\nif <touching (>platform v)?> then\n    repeat (12)\n        change [~player y v] by (1)\n        Position\n        if <not <touching (>platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [~player y v] by (-12)\n    repeat until <not <touching (>platform v)?>>\n        if <(sx) > [0]> then\n            change [~player x v] by (-1)\n        else\n            change [~player x v] by (1)\n        end\n        Position\n        Outside map detect\n    end\nend\n\ndefine change player y by (sy)\nchange [~player y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (>platform v)?>>\n    if <(sy) > [0]> then\n        change [~player y v] by (-1)\n    else\n        change [~player y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\n    Outside map detect\nend\n\nwhen flag clicked\nerase all\nhide\n\nwhen I receive [start v]\nshow\nclear graphic effects\nReset variables\nSetup - player parts\nforever\n    update\n    Physics | default speed (((Speed) / (25)) - (((~Player Crouch) / (10)) * ((Speed) / (90)))) default jump ((8) + ((Speed) / (25))) crouch [20] Gravity [-1.2]\n    Outside map detect\n    Count Players Onscreen\n    If <(~Player HP) < [1]> kill animation\n    Say (CHAT)\nend\n\ndefine Reset variables\nRandom spawn\nset [sx v] to [0]\nset [~player crouch v] to [0]\nset [~player hp v] to [100]\nset [_shoot timer v] to [0]\nset [heal timer v] to [0]\nset [~player kills v] to [0]\npoint in direction (90)\nset size to (100) %\ndelete all of [_opponents on screen v]\nrepeat (100)\n    add [-] to [_opponents on screen v]\nend\n\ndefine update\nerase all\nbroadcast (update pen background v)\nchange [#tick v] by (1)\nif <(#Tick) > [999]> then\n    set [#tick v] to [0]\nend\nbroadcast (update v)\n\ndefine Position\ngo to x: ((~Player X) - (SCROLL X)) y: ((~Player Y) - (SCROLL Y))\nset size to ((100) * (PLAYER SIZE)) %\n\ndefine Setup - player parts\nset [_player part id v] to [0]\nrepeat (5)\n    change [_player part id v] by (1)\n    create clone of (_myself_ v)\nend\nset [_player part id v] to []\n\nwhen I receive [update v]\nif <(_Player part ID) = [1]> then\n    point in direction (~Player Direction)\n    Cone position ((sx) * (1.5)) ((60) + (((~Player Crouch) * (-1)) * (2)))\n    if <<(direction) < ((180) + ((sx) * (1.5)))> and <(direction) < ((0) + ((sx) * (1.5)))>> then\n        switch costume to (join (join [HEAD ] (item (1) of [~robot parts v])) [ L])\n    else\n        switch costume to (join (join [HEAD ] (item (1) of [~robot parts v])) [ R])\n    end\nelse\n    if <(_Player part ID) = [2]> then\n        point in direction ((90) + ((sx) * (1.5)))\n        Cone position [0] (round (([sin v] of (direction) ) * ((~Player Crouch) * (-1))))\n        switch costume to (join [CHEST ] (item (2) of [~robot parts v]))\n    else\n        if <(_Player part ID) = [3]> then\n            point in direction ((90) + ((sx) * (1.5)))\n            Cone position [0] (round (([sin v] of (direction) ) * ((~Player Crouch) * (-1))))\n            switch costume to (join [SHOULDERS ] (item (3) of [~robot parts v]))\n        else\n            if <(_Player part ID) = [4]> then\n                Cone position [0] [0]\n                turn right ((sx) * (2)) degrees\n                switch costume to (join [WHEEL ] (item (4) of [~robot parts v]))\n            else\n                if <(_Player part ID) = [5]> then\n                    if <(~Player HP) > [0]> then\n                        point towards (mouse-pointer v)\n                    end\n                    if <(item (5) of [~robot parts v]) = [5]> then\n                        set [~player direction v] to (direction)\n                        Lightsaber\n                        set [color v] effect to (Plasma Color)\n                    else\n                        set [~distance to mouse pointer v] to (distance to [mouse-pointer v])\n                        Cone position (([sin v] of (direction) ) * ((((distance to [mouse-pointer v]) / (7)) * (<(~Player HP) > [0]> * (1))) - (~Recoil))) ((([cos v] of (direction) ) * ((((distance to [mouse-pointer v]) / (7)) * (<(~Player HP) > [0]> * (1))) - (~Recoil))) + (((~Player Crouch) * (-1)) + (38)))\n                        set [~player direction v] to (direction)\n                        set [bullet start x v] to (round (x position))\n                        set [bullet start y v] to (round (y position))\n                        if <(~AMMO) > [0]> then\n                            point in direction ((round ((direction) * (10))) / (10))\n                        else\n                            point in direction ((round ((_GUN Direction) * (10))) / (10))\n                            change [_gun direction v] by (((~Player Direction) - (_GUN Direction)) / (8))\n                        end\n                        if <<(direction) < [180]> and <(direction) < [0]>> then\n                            switch costume to (join (join [GUN ] (item (5) of [~robot parts v])) [ L])\n                        else\n                            switch costume to (join (join [GUN ] (item (5) of [~robot parts v])) [ R])\n                        end\n                        set [color v] effect to (Plasma Color)\n                    end\n                end\n            end\n        end\n    end\nend\nif <(~Player HP) < [1]> then\n    set [color v] effect to ((-1) / (0))\nend\n\nwhen I start as a clone\nset rotation style [all around v]\npoint in direction (90)\ngo to [front v] layer\nshow\nif <(_Player part ID) = [5]> then\n    go to [front v] layer\nend\n\ndefine Cone position (x) (y)\ngo to x: (((~Player X) - (SCROLL X)) + ((x) * (PLAYER SIZE))) y: (((~Player Y) - (SCROLL Y)) + ((y) * (PLAYER SIZE)))\nset size to ((100) * (PLAYER SIZE)) %\n\ndefine If <hp 0?> kill animation\nif <hp 0?> then\n    start sound [Glass Breaking v]\n    broadcast (screen shake v)\n    repeat (70)\n        update\n        Physics | default speed [2.2] default jump [12] crouch [20] Gravity [-1.2]\n        change [~player crouch v] by (((20) - (~Player Crouch)) / (3))\n        switch costume to (hitbox crouch v)\n        set [~player hp v] to [0]\n    end\n    broadcast (MENU v)\n    wait (4) seconds\nend\n\nwhen I receive [hide v]\nerase all\nhide\n\nwhen I receive [kill game clones v]\ndelete this clone\n\nwhen I receive [menu - setup v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [reload v]\nif <(_Player part ID) = [5]> then\n    set [_gun direction v] to ((~Player Direction) - (180))\nend\n\nwhen I receive [reset all v]\ndelete all of [~robot parts v]\nadd [1] to [~robot parts v]\nadd [1] to [~robot parts v]\nadd [1] to [~robot parts v]\nadd [1] to [~robot parts v]\nadd [1] to [~robot parts v]\nReset variables\n\nwhen [i v] key pressed\nif <(username) = [KIKOKO_]> then\n    set [plasma color v] to [0]\n    broadcast (RESET ALL v)\nend\n\nwhen I receive [update v]\nif <(_Player part ID) = []> then\n    Hp Bar Render | x (((~Player X) - (SCROLL X)) + (sx)) y (((~Player Y) - (SCROLL Y)) + (round (((82) - ((~Player Crouch) * (2))) * (PLAYER SIZE)))) Length [44] Front color ((~Player HP) / (3)) Size [8] Hp Bar: (~Player HP)\nend\n\ndefine Say (#)\nif <(#) = [0]> then\n    say []\nelse\n    say (join [➤] (item (#) of [>chat v]))\nend\n\ndefine Random spawn\nif <(pick random (1) to (4)) = [1]> then\n    set [~player x v] to [-1900]\n    set [~player y v] to [-400]\n    set [scroll x v] to [-1900]\n    set [scroll y v] to [-400]\nelse\n    if <(pick random (1) to (3)) = [2]> then\n        set [~player x v] to [1270]\n        set [~player y v] to [580]\n        set [scroll x v] to [1270]\n        set [scroll y v] to [580]\n    else\n        if <(pick random (1) to (2)) = [2]> then\n            set [~player x v] to [-740]\n            set [~player y v] to [310]\n            set [scroll x v] to [-740]\n            set [scroll y v] to [310]\n        else\n            set [~player x v] to [-520]\n            set [~player y v] to [-410]\n            set [scroll x v] to [-520]\n            set [scroll y v] to [-410]\n        end\n    end\nend\n\ndefine Count Players Onscreen\nset [____ v] to [0]\nset [&totalplayers onscreen v] to [0]\nrepeat (length of [_opponents on screen v])\n    change [____ v] by (1)\n    if <(item (____) of [_opponents on screen v]) = [1]> then\n        change [&totalplayers onscreen v] by (1)\n    end\n    if <(item (____) of [_opponents on screen v]) = [-]> then\n        stop [this script v]\n    end\nend\n\ndefine Lightsaber\nif <(~Player HP) > [0]> then\n    set [~distance to mouse pointer v] to (distance to [mouse-pointer v])\nelse\n    set [~distance to mouse pointer v] to [0]\nend\nCone position (([sin v] of (direction) ) * ((((distance to [mouse-pointer v]) / (5)) * (<(~Player HP) > [0]> * (1))) - (~Recoil))) ((([cos v] of (direction) ) * ((((distance to [mouse-pointer v]) / (5)) * (<(~Player HP) > [0]> * (1))) - (~Recoil))) + (((~Player Crouch) * (-1)) + (38)))\npoint in direction (__Lightsaber direction)\nif <(~Player HP) > [0]> then\n    change [__lightsaber direction v] by ((((~Player Direction) + ((~Lightsaber POINT) - (<not <(~Player Direction) > [0]>> * ((~Lightsaber POINT) * (2))))) - (__Lightsaber direction)) / (5))\nend\nif <(~Player Direction) > [0]> then\n    if <(([abs v] of (__Lightsaber direction) ) + (8)) < ([abs v] of (~Player Direction) )> then\n        switch costume to (gun 5 r2 v)\n    else\n        switch costume to (gun 5 r v)\n    end\nelse\n    if <(([abs v] of (__Lightsaber direction) ) + (8)) < ([abs v] of (~Player Direction) )> then\n        switch costume to (gun 5 l2 v)\n    else\n        switch costume to (gun 5 l v)\n    end\nend\n\nset [~distance to mouse pointer v] to (distance to [mouse-pointer v])\n\nwhen [k v] key pressed\nset [~player hp v] to [0]\n\nwhen I receive [screen shake v]\nif <(_Player part ID) = []> then\n    Shake Screen (SCROLL X) (SCROLL Y) duration [1] power [40]\nend\n\ndefine Outside map detect\nif <(~Player Y) < [-1000]> then\n    set [~player hp v] to [0]\nend\nif <(~Player X) < [-3000]> then\n    set [~player hp v] to [0]\nend\nif <(~Player X) > [3000]> then\n    set [~player hp v] to [0]\nend\nif <(~Player Y) > [10000]> then\n    set [scroll y v] to (~Player Y)\n    set [~player hp v] to [0]\nend\n\nset [~player y v] to [0]\n\n@~Player BULLET\n\ndefine Shotgun bullet | spread (s) quantity (q)\nset [_shotgun spread v] to ((s) * (-1))\nrepeat (q)\n    bullet - setup | x ((BULLET start x) + (SCROLL X)) y ((BULLET start y) + (SCROLL Y)) Direction ((~Player Direction) + (_Shotgun spread)) Bullet type (item (5) of [~robot parts v])\n    change [_shotgun spread v] by (((s) / (q)) * (2))\nend\n\ndefine bullet - setup | x (x) y (y) Direction (direction) Bullet type (type)\nset [_bullet clone v] to [bullet]\nset [_x v] to (x)\nset [_y v] to (y)\nset [_direction v] to (direction)\nset [_type v] to (type)\ncreate clone of (_myself_ v)\nset [_bullet clone v] to [sprite]\n\nwhen I receive [update v]\nif <(_Bullet clone) = [sprite]> then\n    Shoot detect\n    heal detect\n    change [~recoil v] by (((1) - (~Recoil)) / (5))\nend\n\ndefine Shoot detect\nif <(~Player HP) > [0]> then\n    if <(item (5) of [~robot parts v]) = [1]> then\n        Timer [0.1] Recoil power [20] Max ammo [25] reload time [2]\n    else\n        if <(item (5) of [~robot parts v]) = [2]> then\n            Timer [0.05] Recoil power [20] Max ammo [32] reload time [2]\n        else\n            if <(item (5) of [~robot parts v]) = [3]> then\n                Timer [1] Recoil power [30] Max ammo [3] reload time [2.5]\n            else\n                if <(item (5) of [~robot parts v]) = [4]> then\n                    Timer [0.6] Recoil power [25] Max ammo [5] reload time [2]\n                else\n                    if <(item (5) of [~robot parts v]) = [5]> then\n                        if <<mouse down?> or <<key (space v) pressed?> and <(SPACE ESC?) = [0]>>> then\n                            set [~lightsaber point v] to [90]\n                            set [\[player shoot\] v] to [1]\n                        else\n                            set [~lightsaber point v] to [15]\n                            set [\[player shoot\] v] to [0]\n                        end\n                    else\n                        if <(item (5) of [~robot parts v]) = [6]> then\n                            Timer [2] Recoil power [30] Max ammo [1] reload time [3.5]\n                        else\n                            if <(item (5) of [~robot parts v]) = [7]> then\n                                Timer [0.3] Recoil power [20] Max ammo [10] reload time [3]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <<key (r v) pressed?> and <(~AMMO) < (&max ammo)>> then\n        set [~ammo v] to [0]\n    end\nelse\n    set [\[player shoot\] v] to [0]\nend\n\nwhen flag clicked\nhide\nset [_bullet clone v] to [sprite]\nset [_shoot timer v] to [0]\nset [\[player shoot\] v] to [0]\n\ndefine Timer (timer) Recoil power (recoil) Max ammo (ammo) reload time (reload)\nset [&max ammo v] to (ammo)\nif <(~AMMO) > [0]> then\n    if <<mouse down?> or <<key (space v) pressed?> and <(SPACE ESC?) = [0]>>> then\n        if <<<(SCROLL X) < [-120]> or <(SCROLL X) > [1225]>> or <<(~Player Y) < [0]> or <(~Player Y) > [490]>>> then\n            if <(timer) > ((_shoot timer) + (timer))> then\n                change [~ammo v] by (-1)\n                set [~recoil v] to (recoil)\n                set [_shoot timer v] to (timer)\n                set [\[player shoot\] v] to [1]\n                if <(item (5) of [~robot parts v]) = [6]> then\n                    Shotgun bullet | spread [40] quantity [14]\n                else\n                    if <(item (5) of [~robot parts v]) = [4]> then\n                        Shotgun bullet | spread [6] quantity [6]\n                        change [sy v] by (<([abs v] of (~Player Direction) ) > [120]> * ((round ([abs v] of (~Player Direction) )) / (20)))\n                        change [sx v] by (((recoil) / (20)) - (<(~Player Direction) > [0]> * (((recoil) / (20)) * (2))))\n                    else\n                        bullet - setup | x ((BULLET start x) + (SCROLL X)) y ((BULLET start y) + (SCROLL Y)) Direction (~Player Direction) Bullet type (item (5) of [~robot parts v])\n                        change [sx v] by ((((recoil) / (((~Player Crouch) / (1)) + (10))) - (<(~Player Direction) > [0]> * (((recoil) / (((~Player Crouch) / (1)) + (10))) * (2)))) / ((Protection) / (20)))\n                    end\n                end\n            end\n        end\n    else\n        if <(timer) > ((_shoot timer) + (0.1))> then\n            set [\[player shoot\] v] to [0]\n        end\n    end\nelse\n    if <(timer) > ((_shoot timer) + (0.1))> then\n        set [\[player shoot\] v] to [0]\n    end\n    if <(_reloaded?) = [0]> then\n        if < (item (2) of [>settings v]) contains [ON]?> then\n            start sound [Plasma gun reload v]\n        end\n        broadcast (RELOAD v)\n        set [_reload timer v] to (timer)\n        set [_reloaded? v] to [1]\n    end\n    if <(timer) > ((_reload timer) + (reload))> then\n        set [_reload timer v] to (timer)\n        set [~ammo v] to (ammo)\n        set [_reloaded? v] to [0]\n    end\nend\nif <(~AMMO) > (ammo)> then\n    set [~ammo v] to (ammo)\nend\nif <not <<<(SCROLL X) < [-120]> or <(SCROLL X) > [1225]>> or <<(~Player Y) < [0]> or <(~Player Y) > [490]>>>> then\n    set [\[player shoot\] v] to [0]\nend\n\nwhen I start as a clone\nif <(_Bullet clone) = [bullet]> then\n    set size to ((100) * (PLAYER SIZE)) %\n    show\n    set [color v] effect to (Plasma Color)\n    set [_touching wall v] to [false]\n    Position\n    Bullet costume (_type) And sound\n    repeat (3)\n        Position\n        realistic wall hit [25] [25] perfection [10]\n        if <(_touching wall) = [true]> then\n            Position\n            if <(_touching wall) = [true]> then\n                if <touching (>platform v)?> then\n                    Bullet HIT animation\n                    delete this clone\n                end\n            end\n        end\n    end\n    repeat until <(_touching wall) = [true]>\n        Position\n        realistic wall hit [25] [25] perfection [10]\n    end\n    change [_x v] by (([sin v] of (direction) ) * (2))\n    change [_y v] by (([cos v] of (direction) ) * (2))\n    Bullet HIT animation\n    delete this clone\nend\n\ndefine Position\ngo to x: ((_x) - (SCROLL X)) y: ((_y) - (SCROLL Y))\npoint in direction (_Direction)\n\nwhen I receive [start v]\nset [_bullet clone v] to [sprite]\nset [_shoot timer v] to [0]\nset [\[player shoot\] v] to [0]\nset [_reloaded? v] to [0]\nif <(item (5) of [~robot parts v]) = [1]> then\n    set [~ammo v] to [25]\nelse\n    if <(item (5) of [~robot parts v]) = [2]> then\n        set [~ammo v] to [36]\n    else\n        if <(item (5) of [~robot parts v]) = [3]> then\n            set [~ammo v] to [3]\n        else\n            if <(item (5) of [~robot parts v]) = [4]> then\n                set [~ammo v] to [5]\n            else\n                if <(item (5) of [~robot parts v]) = [6]> then\n                    set [~ammo v] to [1]\n                else\n                    if <(item (5) of [~robot parts v]) = [7]> then\n                        set [~ammo v] to [10]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Bullet costume (type) And sound\nif <(type) = [1]> then\n    switch costume to (medium bullet v)\n    if < (item (2) of [>settings v]) contains [ON]?> then\n        start sound [2 v]\n    end\nelse\n    if <(type) = [2]> then\n        switch costume to (small bullet v)\n        if < (item (2) of [>settings v]) contains [ON]?> then\n            start sound [2 v]\n        end\n    else\n        if <(type) = [3]> then\n            switch costume to (medium bullet v)\n            if < (item (2) of [>settings v]) contains [ON]?> then\n                start sound [5 v]\n            end\n        else\n            if <(type) = [4]> then\n                switch costume to (small bullet v)\n                if < (item (2) of [>settings v]) contains [ON]?> then\n                    start sound [4 v]\n                end\n            else\n                if <(type) = [6]> then\n                    switch costume to (medium bullet v)\n                    if < (item (2) of [>settings v]) contains [ON]?> then\n                        start sound [4 v]\n                    end\n                else\n                    if <(type) = [7]> then\n                        switch costume to (small bullet v)\n                        if < (item (2) of [>settings v]) contains [ON]?> then\n                            start sound [1 v]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Bullet HIT animation\nPosition\nif <<touching (_edge_ v)?> or <touching (@opponent v)?>> then\n    if <touching (@opponent v)?> then\n        start sound [HIT v]\n    end\n    delete this clone\nend\ngo to [front v] layer\nswitch costume to (hit f1 v)\nrepeat (5)\n    next costume\n    Position\n    if <not <touching (>platform v)?>> then\n        delete this clone\n    end\nend\n\ndefine realistic wall hit (x) (y) perfection (p)\nrepeat (p)\n    change [_x v] by (([sin v] of (direction) ) * ((x) / (p)))\n    change [_y v] by (([cos v] of (direction) ) * ((y) / (p)))\n    Position\n    if <<touching (_edge_ v)?> or <<touching (@opponent v)?> or <touching (>platform v)?>>> then\n        set [_touching wall v] to [true]\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [kill clones v]\ndelete this clone\n\ndefine heal detect\nif <(~Player HP) > [0]> then\n    if <(timer) > ((heal timer) + (7))> then\n        change [~player hp v] by (0.15)\n    end\nend\nif <(~Player HP) > [100]> then\n    set [~player hp v] to [100]\nend\n\n@@Opponent\n\nwhen flag clicked\nhide\nset [_clone v] to [0]\nset [#clones v] to [0]\nset [_body part clone v] to [false]\n\nwhen I receive [update v]\nif <(_BODY PART clone) = [false]> then\n    if <(item (_clone) of [#checkactive v]) = [1]> then\n        hide\n        point in direction (90)\n        if <(item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) < [2]> then\n            switch costume to (hitbox v)\n        else\n            switch costume to (hitbox crouch v)\n        end\n        Smooth position (((item ((((_clone) - (1)) * (&MaxElements)) + (3)) of [#cloudlist v]) - (_x)) / (4)) (((item ((((_clone) - (1)) * (&MaxElements)) + (4)) of [#cloudlist v]) - (_y)) / (4))\n        replace item (_clone) of [_opponents on screen v] with ((_clone onscreen) * (1))\n        On screen? <(_clone onscreen) = [true]>\n        position ((_x) - (SCROLL X)) ((_y) - (SCROLL Y))\n    else\n        hide\n        set [_die v] to [0]\n        set [_shoot timer v] to [0]\n    end\nelse\n    if <(_BODY PART clone) = [true]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nset [_shoot timer v] to [0]\nif <(_BODY PART clone) = [false]> then\n    set [_die v] to [0]\n    change [#clones v] by (1)\n    set [_clone v] to (#clones)\n    set [_x v] to (item ((((_clone) - (1)) * (&MaxElements)) + (3)) of [#cloudlist v])\n    set [_y v] to (item ((((_clone) - (1)) * (&MaxElements)) + (4)) of [#cloudlist v])\n    position ((_x) - (SCROLL X)) ((_y) - (SCROLL Y))\nelse\n    if <(_BODY PART clone) = [true]> then\n        set size to ((100) * (PLAYER SIZE)) %\n        if < (costume [name v]) contains [GUN]?> then\n            set [color v] effect to (_Gun Color)\n        end\n        if <(_Hide/ show?) = [grey]> then\n            show\n            set [color v] effect to ((-1) / (0))\n        else\n            if <(_Hide/ show?) = [show]> then\n                show\n            else\n                delete this clone\n            end\n        end\n    else\n        if <(_BODY PART clone) = [bullet]> then\n            show\n            set [_touching wall v] to [false]\n            clear graphic effects\n            set [color v] effect to (_Bullet Color)\n            point in direction (_Bullet Direction)\n            position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n            Bullet costume (_bullet type)\n            set size to ((100) * (PLAYER SIZE)) %\n            repeat (3)\n                position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n                realistic wall hit [25] [25] perfection [10]\n                if <(_touching wall) = [true]> then\n                    position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n                    if <(_touching wall) = [true]> then\n                        if <touching (>platform v)?> then\n                            Bullet HIT animation\n                            delete this clone\n                        end\n                    end\n                end\n            end\n            repeat until <(_touching wall) = [true]>\n                position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n                realistic wall hit [25] [25] perfection [10]\n            end\n            Bullet HIT animation\n            delete this clone\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nset [_clone onscreen v] to <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n\ndefine Smooth position (x) (y)\nchange [_x v] by (x)\nchange [_y v] by (y)\nposition ((_x) - (SCROLL X)) ((_y) - (SCROLL Y))\n\ndefine On screen? <on screen?>\nif <on screen?> then\n    Shoot? (item ((((_clone) - (1)) * (&MaxElements)) + (10)) of [#cloudlist v]) gun (letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v]))\n    set [_bulletusername v] to (item ((((_clone) - (1)) * (&MaxElements)) + (2)) of [#cloudlist v])\n    if <(&TotalPlayers Onscreen) > [4]> then\n        PEN | Draw Robot Body (letter (1) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (2) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (3) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (4) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) direction (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) sx (item ((((_clone) - (1)) * (&MaxElements)) + (9)) of [#cloudlist v]) crouch (item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) recoil (_clone recoil)\n    else\n        CLONE | Robot Body (letter (1) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (2) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (3) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (4) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) (letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) direction (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) sx (item ((((_clone) - (1)) * (&MaxElements)) + (9)) of [#cloudlist v]) crouch (item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) recoil (_clone recoil)\n    end\n    set [_bulletusername v] to []\n    if <(item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) < [2]> then\n        switch costume to (hitbox v)\n    else\n        switch costume to (hitbox crouch v)\n    end\n    point in direction (90)\n    If die? <(item ((((_clone) - (1)) * (&MaxElements)) + (11)) of [#cloudlist v]) < [1]> (item ((((_clone) - (1)) * (&MaxElements)) + (13)) of [#cloudlist v])\n    Hp Bar Render | x ((_x) - (SCROLL X)) y (((_y) - (SCROLL Y)) + (round (((82) - ((item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) * (2))) * (PLAYER SIZE)))) Length [44] Front color ((item ((((_clone) - (1)) * (&MaxElements)) + (11)) of [#cloudlist v]) / (3)) Size [8] Hp Bar: (item ((((_clone) - (1)) * (&MaxElements)) + (11)) of [#cloudlist v])\n    show\n    set size to ((100) * (PLAYER SIZE)) %\n    set [ghost v] effect to (100)\n    Say (item ((((_clone) - (1)) * (&MaxElements)) + (12)) of [#cloudlist v]) username (item ((((_clone) - (1)) * (&MaxElements)) + (2)) of [#cloudlist v]) HP (item ((((_clone) - (1)) * (&MaxElements)) + (11)) of [#cloudlist v])\nend\n\ndefine PEN | Draw Robot Body (head) (chest) (shoulders) (wheel) (gun) direction (direction) sx (sx) crouch (crouch) recoil (recoil)\nclear graphic effects\nshow\npoint in direction (direction)\nPART position ((sx) * (1.5)) ((60) + (((crouch) * (-1)) * (2)))\nif <<(direction) < [180]> and <(direction) < [0]>> then\n    switch costume to (join (join [HEAD ] (head)) [ L])\nelse\n    switch costume to (join (join [HEAD ] (head)) [ R])\nend\nstamp\npoint in direction ((90) + ((sx) * (1.5)))\nPART position [0] (round (([sin v] of (direction) ) * ((crouch) * (-1))))\nswitch costume to (join [CHEST ] (chest))\nstamp\npoint in direction ((90) + ((sx) * (1.5)))\nPART position [0] (round (([sin v] of (direction) ) * ((crouch) * (-1))))\nswitch costume to (join [SHOULDERS ] (shoulders))\nstamp\nPART position [0] [0]\npoint in direction ((_last wheel direction) + ((sx) * (2)))\nset [_last wheel direction v] to (direction)\nswitch costume to (join [WHEEL ] (wheel))\nstamp\nif <(gun) = [5]> then\n    Lightsaber (direction) crouch (crouch)\n    set [color v] effect to (_Gun Color)\nelse\n    point in direction (direction)\n    set [color v] effect to (_Gun Color)\n    PART position (round (([sin v] of (direction) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (recoil)))) (round ((([cos v] of (direction) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (recoil))) + (((crouch) * (-1)) + (38))))\n    if <<(direction) < [180]> and <(direction) < [0]>> then\n        switch costume to (join (join [GUN ] (gun)) [ L])\n    else\n        switch costume to (join (join [GUN ] (gun)) [ R])\n    end\nend\nstamp\nset [_body part clone v] to [false]\n\ndefine PART position (x) (y)\ngo to x: (((_x) - (SCROLL X)) + ((x) * (PLAYER SIZE))) y: (((_y) - (SCROLL Y)) + ((y) * (PLAYER SIZE)))\nif <<(round (x position)) = (round (((_x) - (SCROLL X)) + ((x) * (PLAYER SIZE))))> and <(round (y position)) = (round (((_y) - (SCROLL Y)) + ((y) * (PLAYER SIZE))))>> then\n    set [_gun color v] to (item ((((_clone) - (1)) * (&MaxElements)) + (14)) of [#cloudlist v])\n    if <(item ((((_clone) - (1)) * (&MaxElements)) + (11)) of [#cloudlist v]) > [0]> then\n        set [_hide/ show? v] to [show]\n    else\n        set [_hide/ show? v] to [grey]\n        set [color v] effect to ((-1) / (0))\n    end\nelse\n    set [_hide/ show? v] to [hide]\nend\n\ndefine Shoot? (1) gun (gun)\nset [_lightsaber point v] to [15]\nif <(1) = [1]> then\n    if <(gun) = [1]> then\n        Timer [0.1] Recoil power [20] gun [1]\n    else\n        if <(gun) = [2]> then\n            Timer [0.05] Recoil power [20] gun [2]\n        else\n            if <(gun) = [3]> then\n                Timer [1] Recoil power [30] gun [3]\n            else\n                if <(gun) = [4]> then\n                    Timer [0.6] Recoil power [25] gun [4]\n                else\n                    if <(gun) = [5]> then\n                        set [_lightsaber point v] to [90]\n                    else\n                        if <(gun) = [6]> then\n                            Timer [1] Recoil power [30] gun [6]\n                        else\n                            if <(gun) = [7]> then\n                                Timer [0.3] Recoil power [20] gun [7]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [_clone recoil v] by (((1) - (_clone recoil)) / (5))\nset [_clone recoil v] to (round (_clone recoil))\n\ndefine CLONE | Robot Body (head) (chest) (shoulders) (wheel) (gun) direction (direction) sx (sx) crouch (crouch) recoil (recoil)\nset [_body part clone v] to [true]\nclear graphic effects\nshow\nthink []\nsay []\npoint in direction (direction)\nPART position ((sx) * (1.5)) ((60) + (((crouch) * (-1)) * (2)))\nif <<(direction) < [180]> and <(direction) < [0]>> then\n    switch costume to (join (join [HEAD ] (head)) [ L])\nelse\n    switch costume to (join (join [HEAD ] (head)) [ R])\nend\ncreate clone of (_myself_ v)\npoint in direction ((90) + ((sx) * (1.5)))\nPART position [0] (round (([sin v] of (direction) ) * ((crouch) * (-1))))\nswitch costume to (join [CHEST ] (chest))\ncreate clone of (_myself_ v)\npoint in direction ((90) + ((sx) * (1.5)))\nPART position [0] (round (([sin v] of (direction) ) * ((crouch) * (-1))))\nswitch costume to (join [SHOULDERS ] (shoulders))\ncreate clone of (_myself_ v)\nPART position [0] [0]\npoint in direction ((_last wheel direction) + ((sx) * (2)))\nset [_last wheel direction v] to (direction)\nswitch costume to (join [WHEEL ] (wheel))\ncreate clone of (_myself_ v)\nif <(gun) = [5]> then\n    Lightsaber (direction) crouch (crouch)\nelse\n    point in direction (direction)\n    PART position (round (([sin v] of (direction) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (recoil)))) (round ((([cos v] of (direction) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (recoil))) + (((crouch) * (-1)) + (38))))\n    if <<(direction) < [180]> and <(direction) < [0]>> then\n        switch costume to (join (join [GUN ] (gun)) [ L])\n    else\n        switch costume to (join (join [GUN ] (gun)) [ R])\n    end\nend\ncreate clone of (_myself_ v)\nset [_body part clone v] to [false]\n\ndefine Timer (timer) Recoil power (recoil) gun (gun)\nif <(timer) > ((_shoot timer) + (timer))> then\n    set [_clone recoil v] to (recoil)\n    set [_shoot timer v] to (timer)\n    if <(gun) = [6]> then\n        Shotgun bullet | spread [40] quantity [14]\n    else\n        if <(gun) = [4]> then\n            Shotgun bullet | spread [6] quantity [6]\n        else\n            bullet - setup | x ((_x) + (round ((([sin v] of (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (_clone recoil))) * (PLAYER SIZE)))) y ((_y) + (round (((([cos v] of (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (_clone recoil))) + (((item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) * (-1)) + (38))) * (PLAYER SIZE)))) Direction (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) Bullet type (letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) Username (item ((((_clone) - (1)) * (&MaxElements)) + (2)) of [#cloudlist v]) color (item ((((_clone) - (1)) * (&MaxElements)) + (14)) of [#cloudlist v])\n        end\n    end\nend\n\ndefine bullet - setup | x (x) y (y) Direction (direction) Bullet type (type) Username (username) color (color)\nset [_bullet x v] to (x)\nset [_bullet y v] to (y)\nset [_bullet direction v] to (direction)\nset [_bullet type v] to (type)\nset [_bulletusername v] to (username)\nset [_bullet color v] to (color)\nset [_body part clone v] to [bullet]\ncreate clone of (_myself_ v)\nset [_body part clone v] to [false]\n\ndefine Bullet costume (type)\nif <(type) = [1]> then\n    switch costume to (medium bullet v)\n    if < (item (2) of [>settings v]) contains [ON]?> then\n        start sound [2 v]\n    end\nelse\n    if <(type) = [2]> then\n        switch costume to (small bullet v)\n        if < (item (2) of [>settings v]) contains [ON]?> then\n            start sound [2 v]\n        end\n    else\n        if <(type) = [3]> then\n            switch costume to (medium bullet v)\n            if < (item (2) of [>settings v]) contains [ON]?> then\n                start sound [5 v]\n            end\n        else\n            if <(type) = [4]> then\n                switch costume to (small bullet v)\n                if < (item (2) of [>settings v]) contains [ON]?> then\n                    start sound [4 v]\n                end\n            else\n                if <(type) = [6]> then\n                    switch costume to (medium bullet v)\n                    if < (item (2) of [>settings v]) contains [ON]?> then\n                        start sound [4 v]\n                    end\n                else\n                    if <(type) = [7]> then\n                        switch costume to (small bullet v)\n                        if < (item (2) of [>settings v]) contains [ON]?> then\n                            start sound [1 v]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Bullet HIT animation\nposition ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\nif <<touching (_edge_ v)?> or <touching (~player v)?>> then\n    Bullet damage\n    delete this clone\nend\ngo to [front v] layer\nswitch costume to (small bullet v)\nrepeat (6)\n    next costume\n    position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n    if <not <touching (>platform v)?>> then\n        delete this clone\n    end\nend\n\ndefine Bullet damage\nif <touching (~player v)?> then\n    set [\[player hit\] v] to (_BulletUSERNAME)\n    set [heal timer v] to (timer)\n    if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [1]> then\n        change [~player hp v] by ((((5) * (1.5)) / ((Protection) / (25))) * (-1))\n        if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n            start sound [HIT v]\n        end\n    else\n        if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [2]> then\n            change [~player hp v] by ((((3) * (1.5)) / ((Protection) / (25))) * (-1))\n            if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                start sound [HIT v]\n            end\n        else\n            if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [3]> then\n                change [~player hp v] by ((((40) * (1.5)) / ((Protection) / (25))) * (-1))\n                if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                    start sound [HIT v]\n                end\n            else\n                if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [4]> then\n                    change [~player hp v] by ((((4.5) * (1.5)) / ((Protection) / (25))) * (-1))\n                    if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                        start sound [HIT v]\n                    end\n                else\n                    if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [5]> then\n                        if <<<(SCROLL X) < [-120]> or <(SCROLL X) > [1225]>> or <<(~Player Y) < [0]> or <(~Player Y) > [490]>>> then\n                            change [~player hp v] by ((((1.6) * (1.5)) / ((Protection) / (25))) * (-1))\n                            if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                                start sound [HIT v]\n                            end\n                        end\n                    else\n                        if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [6]> then\n                            change [~player hp v] by ((((8) * (1.5)) / ((Protection) / (25))) * (-1))\n                            if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                                start sound [HIT v]\n                            end\n                        else\n                            if <(letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) = [7]> then\n                                change [~player hp v] by (5)\n                                if <<(~Player HP) > [0]> and < (item (2) of [>settings v]) contains [ON]?>> then\n                                    start sound [HIT v]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine realistic wall hit (x) (y) perfection (p)\nrepeat (p)\n    change [_bullet x v] by (([sin v] of (direction) ) * ((x) / (p)))\n    change [_bullet y v] by (([cos v] of (direction) ) * ((y) / (p)))\n    position ((_bullet x) - (SCROLL X)) ((_bullet y) - (SCROLL Y))\n    if <<touching (_edge_ v)?> or <<touching (~player v)?> or <touching (>platform v)?>>> then\n        set [_touching wall v] to [true]\n        stop [this script v]\n    end\nend\n\ndefine Hp Bar Render | x (x) y (y) Length (length) Front color (front color) Size (size) Hp Bar: (hp)\nif <(hp) > [0]> then\n    set pen size to (size)\n    set pen color to (#b3b3b3)\n    go to x: ((x) + ((length) / (2))) y: (y)\n    pen down\n    go to x: ((x) - ((length) / (2))) y: (y)\n    pen up\n    set pen size to (size)\n    set pen (color v) to (front color)\n    set pen (saturation v) to ((100) - ((hp) / (3)))\n    set pen (brightness v) to (100)\n    pen down\n    go to x: (((x) - ((length) / (2))) + ((hp) / ((100) / (length)))) y: (y)\n    pen up\nend\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [kill game clones v]\ndelete this clone\n\nwhen I receive [start v]\nhide\nset [_clone v] to [0]\nset [#clones v] to [0]\nset [_body part clone v] to [false]\nset [_die v] to [0]\nset [\[player hit\] v] to [0]\n\ndefine Shotgun bullet | spread (s) quantity (q)\nset [__shotgun spread v] to ((s) * (-1))\nrepeat (q)\n    bullet - setup | x ((_x) + (round ((([sin v] of (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (_clone recoil))) * (PLAYER SIZE)))) y ((_y) + (round (((([cos v] of (item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) ) * (((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (7)) - (_clone recoil))) + (((item ((((_clone) - (1)) * (&MaxElements)) + (6)) of [#cloudlist v]) * (-1)) + (38))) * (PLAYER SIZE)))) Direction ((item ((((_clone) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v]) + (__Shotgun spread)) Bullet type (letter (5) of (item ((((_clone) - (1)) * (&MaxElements)) + (8)) of [#cloudlist v])) Username (item ((((_clone) - (1)) * (&MaxElements)) + (2)) of [#cloudlist v]) color (item ((((_clone) - (1)) * (&MaxElements)) + (14)) of [#cloudlist v])\n    change [__shotgun spread v] by (((s) / (q)) * (2))\nend\n\ndefine Say (#) username (username) HP (hp)\nif <(hp) > [0]> then\n    if <(#) = [0]> then\n        say []\n        if < (item (4) of [>settings v]) contains [ON]?> then\n            think (username)\n        end\n    else\n        think []\n        say (join [➤] (item (#) of [>chat v]))\n    end\nelse\n    think []\n    say []\nend\n\ndefine If die? <hp<1> (username)\nif <hp<1> then\n    change [_die v] by (1)\n    if <(_die) = [2]> then\n        think []\n        say []\n        if <(username) = (username)> then\n            set [~player kills v] to ((~Player KILLS) + (1))\n            if < (item (2) of [>settings v]) contains [ON]?> then\n                start sound [KILL v]\n            end\n            change [~player hp v] by (40)\n        else\n            if < (item (2) of [>settings v]) contains [ON]?> then\n                start sound [DIE v]\n            end\n        end\n    end\nend\n\ndefine Lightsaber (direction) crouch (crouch)\npoint in direction (direction)\nPART position (round (([sin v] of (direction) ) * ((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (5)))) (round ((([cos v] of (direction) ) * ((item ((((_clone) - (1)) * (&MaxElements)) + (15)) of [#cloudlist v]) / (5))) + (((crouch) * (-1)) + (38))))\npoint in direction (__Lightsaber direction)\nchange [__lightsaber direction v] by ((((direction) + ((_lightsaber point) - (<not <(direction) > [0]>> * ((_lightsaber point) * (2))))) - (__Lightsaber direction)) / (5))\nif <(direction) > [0]> then\n    if <(([abs v] of (__Lightsaber direction) ) + (8)) < ([abs v] of (direction) )> then\n        switch costume to (gun 5 r2 v)\n        Bullet damage\n    else\n        switch costume to (gun 5 r v)\n    end\nelse\n    if <(([abs v] of (__Lightsaber direction) ) + (8)) < ([abs v] of (direction) )> then\n        switch costume to (gun 5 l2 v)\n        Bullet damage\n    else\n        switch costume to (gun 5 l v)\n    end\nend\n\nif << (costume [name v]) contains [GUN 5]?> and < (costume [name v]) contains [2]?>> then\n    Bullet damage\nend\n\n@☁\n\ndefine Init\ndelete all of [@players v]\ndelete all of [@ids v]\ndelete all of [@playeroffset v]\ndelete all of [#checkactive v]\ndelete all of [#checkvalue v]\ndelete all of [#cloudlist v]\ndelete all of [clouddata v]\nadd (join [=] (☁ Cloud1)) to [clouddata v]\nadd (join [=] (☁ Cloud2)) to [clouddata v]\nadd (join [=] (☁ Cloud3)) to [clouddata v]\nadd (join [=] (☁ Cloud4)) to [clouddata v]\nadd (join [=] (☁ Cloud5)) to [clouddata v]\nadd (join [=] (☁ Cloud6)) to [clouddata v]\nadd (join [=] (☁ Cloud7)) to [clouddata v]\nadd (join [=] (☁ Cloud8)) to [clouddata v]\nset [@id v] to (([floor v] of ((days since 2000) * (100000000)) ) mod (1000))\n\ndefine Process Cloud (id) (var)\nif <(var) = (item (id) of [clouddata v])> then\n    stop [this script v]\nend\nreplace item (id) of [clouddata v] with (var)\nDecode (var)\nif <<(item (2) of [decoded v]) = (username)> and <(item (5) of [decoded v]) = (@ID)>> then\n    stop [this script v]\nend\nFind Player (item (2) of [decoded v]) (item (5) of [decoded v])\nif <(~i) = [0]> then\n    set [~i v] to (item # of [] in [@players v])\n    if <(~i) = [0]> then\n        New Player\n    else\n        replace item (~i) of [@players v] with (item (2) of [decoded v])\n        replace item (~i) of [@ids v] with (item (5) of [decoded v])\n    end\nend\nset [~j v] to [1]\nrepeat (length of [decoded v])\n    replace item ((((~i) - (1)) * (&MaxElements)) + (~j)) of [#cloudlist v] with (item (~j) of [decoded v])\n    change [~j v] by (1)\nend\n\ndefine Read Cloud\nProcess Cloud [1] (join [=] (☁ Cloud1))\nProcess Cloud [2] (join [=] (☁ Cloud2))\nProcess Cloud [3] (join [=] (☁ Cloud3))\nProcess Cloud [4] (join [=] (☁ Cloud4))\nProcess Cloud [5] (join [=] (☁ Cloud5))\nProcess Cloud [6] (join [=] (☁ Cloud6))\nProcess Cloud [7] (join [=] (☁ Cloud7))\nProcess Cloud [8] (join [=] (☁ Cloud8))\n\ndefine Decode (clouddata)\ndelete all of [decoded v]\nset [~temp v] to []\nset [~i v] to [2]\nrepeat (((length of (clouddata)) - (1)) / (2))\n    switch costume to (join (letter (~i) of (clouddata)) (letter ((~i) + (1)) of (clouddata)))\n    if <(costume [number v]) = [1]> then\n        add (~temp) to [decoded v]\n        set [~temp v] to []\n    else\n        set [~temp v] to (join (~temp) (costume [name v]))\n    end\n    change [~i v] by (2)\nend\n\ndefine Encode\nset [~temp v] to []\nset [~i v] to [1]\nrepeat (length of [#playerlist v])\n    set [~j v] to [1]\n    repeat (length of (item (~i) of [#playerlist v]))\n        switch costume to (letter (~j) of (item (~i) of [#playerlist v]))\n        if <(costume [number v]) < [10]> then\n            set [~temp v] to (join (~temp) (join [0] (costume [number v])))\n        else\n            set [~temp v] to (join (~temp) (costume [number v]))\n        end\n        change [~j v] by (1)\n    end\n    set [~temp v] to (join (~temp) [01])\n    change [~i v] by (1)\nend\n\ndefine SaveToCloud (playerid)\nSavePlayer\nEncode\nif <(playerid) < [6]> then\n    if <(playerid) < [3]> then\n        if <(playerid) = [1]> then\n            set [☁ cloud1 v] to (~temp)\n        else\n            set [☁ cloud2 v] to (~temp)\n        end\n    else\n        if <(playerid) = [3]> then\n            set [☁ cloud3 v] to (~temp)\n        else\n            if <(playerid) = [4]> then\n                set [☁ cloud4 v] to (~temp)\n            else\n                set [☁ cloud5 v] to (~temp)\n            end\n        end\n    end\nelse\n    if <(playerid) < [8]> then\n        if <(playerid) = [6]> then\n            set [☁ cloud6 v] to (~temp)\n        else\n            set [☁ cloud7 v] to (~temp)\n        end\n    else\n        if <(playerid) = [8]> then\n            set [☁ cloud8 v] to (~temp)\n        end\n    end\nend\n\nwhen I receive [update v]\nRead Cloud\nSaveToCloud (pick random (1) to (length of [clouddata v]))\nCountPlayers\nUpdatePlayersList (last)\nset [last v] to ((1) - (last))\n\ndefine CountPlayers\nset [#playersonline v] to [1]\nset [~i v] to [1]\nrepeat (length of [@players v])\n    if <(item (~i) of [#checkactive v]) = [1]> then\n        change [#playersonline v] by (1)\n    end\n    change [~i v] by (1)\nend\nif <(#PlayersOnline) > [1]> then\n    hide\nelse\n    if <(username) = []> then\n        switch costume to (log in v)\n    else\n        if <(☁ Online) = [0]> then\n            switch costume to (new v)\n        else\n            switch costume to (alone v)\n        end\n    end\n    show\nend\ngo to [front v] layer\nif <(☁ Online) < [0]> then\n    switch costume to (offline v)\n    show\n    stop [all v]\nend\nif <<not <(Version) = (☁ Online)>> and <(☁ Online) > [0]>> then\n    switch costume to (update v)\n    show\n    stop [all v]\nend\n\nwhen I receive [init v]\nInit\n\ndefine UpdatePlayersList (first)\nif <(first) = [1]> then\n    set [~c v] to [0]\n    repeat (length of [@players v])\n        if <not <<(item (((~c) * (&MaxElements)) + (2)) of [#cloudlist v]) = (username)> and <(item (((~c) * (&MaxElements)) + (5)) of [#cloudlist v]) = (@ID)>>> then\n            if <(item ((~c) + (1)) of [@playeroffset v]) = [0]> then\n                replace item ((~c) + (1)) of [#checkvalue v] with (item (((~c) * (&MaxElements)) + (1)) of [#cloudlist v])\n            end\n            replace item ((~c) + (1)) of [@playeroffset v] with ((item ((~c) + (1)) of [@playeroffset v]) + (1))\n        end\n        change [~c v] by (1)\n    end\nelse\n    set [~c v] to [0]\n    repeat (length of [@players v])\n        if <not <<(item (((~c) * (&MaxElements)) + (2)) of [#cloudlist v]) = (username)> and <(item (((~c) * (&MaxElements)) + (5)) of [#cloudlist v]) = (@ID)>>> then\n            if <<not <(item ((~c) + (1)) of [#checkvalue v]) = (item (((~c) * (&MaxElements)) + (1)) of [#cloudlist v])>> or <(item ((~c) + (1)) of [@playeroffset v]) > [20]>> then\n                if <<(item ((~c) + (1)) of [#checkvalue v]) = (item (((~c) * (&MaxElements)) + (1)) of [#cloudlist v])> or <(item (((~c) * (&MaxElements)) + (5)) of [#cloudlist v]) = [X]>> then\n                    replace item ((~c) + (1)) of [#checkactive v] with [0]\n                    replace item ((~c) + (1)) of [@players v] with []\n                    replace item ((~c) + (1)) of [@ids v] with []\n                else\n                    replace item ((~c) + (1)) of [#checkactive v] with [1]\n                end\n                replace item ((~c) + (1)) of [@playeroffset v] with [0]\n            end\n        end\n        change [~c v] by (1)\n    end\nend\n\ndefine EmptyCloud\nset [☁ cloud1 v] to []\nwait (0.1) seconds\nset [☁ cloud2 v] to []\nwait (0.1) seconds\nset [☁ cloud3 v] to []\nwait (0.1) seconds\nset [☁ cloud4 v] to []\nwait (0.1) seconds\nset [☁ cloud5 v] to []\nwait (0.1) seconds\nset [☁ cloud6 v] to []\nwait (0.1) seconds\nset [☁ cloud7 v] to []\nwait (0.1) seconds\nset [☁ cloud8 v] to []\n\nwhen flag clicked\nhide\nset [last v] to [1]\nset [version v] to [1]\nif <(username) = [KIKOKO_]> then\n    wait (0.1) seconds\n    set [☁ online v] to (Version)\nend\nif <(#PlayersOnline) > [0]> then\n    replace item (5) of [#playerlist v] with [X]\n    repeat (10)\n        SaveToCloud (pick random (1) to (length of [clouddata v]))\n    end\nend\nset [#playersonline v] to [0]\n\ndefine SavePlayer\ndelete all of [#playerlist v]\nadd (#Tick) to [#playerlist v]\nadd (username) to [#playerlist v]\nadd (round (~Player X)) to [#playerlist v]\nadd (round (~Player Y)) to [#playerlist v]\nadd (@ID) to [#playerlist v]\nadd (round (~Player Crouch)) to [#playerlist v]\nadd (round (~Player Direction)) to [#playerlist v]\nadd (join (item (1) of [~robot parts v]) (join (item (2) of [~robot parts v]) (join (item (3) of [~robot parts v]) (join (item (4) of [~robot parts v]) (item (5) of [~robot parts v]))))) to [#playerlist v]\nadd (round (sx)) to [#playerlist v]\nadd (\[Player SHOOT\]) to [#playerlist v]\nadd (round (~Player HP)) to [#playerlist v]\nadd (round (CHAT)) to [#playerlist v]\nadd (\[Player HIT\]) to [#playerlist v]\nadd (Plasma Color) to [#playerlist v]\nadd (round (~Distance to MOUSE POINTER)) to [#playerlist v]\n\nset [&maxelements v] to [15]\n\ndefine New Player\nadd (item (2) of [decoded v]) to [@players v]\nadd (item (5) of [decoded v]) to [@ids v]\nadd [0] to [@playeroffset v]\nadd [0] to [#checkactive v]\nadd [0] to [#checkvalue v]\nrepeat (&MaxElements)\n    add [0] to [#cloudlist v]\nend\ncreate clone of (@opponent v)\n\ndefine Find Player (name) (id)\nset [~i v] to [0]\nrepeat (length of [@players v])\n    change [~i v] by (1)\n    if <<(item (~i) of [@players v]) = (name)> and <(item (~i) of [@ids v]) = (id)>> then\n        stop [this script v]\n    end\nend\nset [~i v] to [0]\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [reset all v]\nEmptyCloud\nset [☁ online v] to [0]\n\n@>Platform\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [update pen background v]\nif <(_cloneCostume) > []> then\n    if <(_cloneCostume) = [elevator]> then\n        switch costume to (elevator v)\n        Elevator move ((_x) - (SCROLL X)) (((_y) + ((([sin v] of ((days since 2000) * (3000000)) ) * ((_elevator distance) / (2))) + ((_elevator distance) / (2.7)))) - (SCROLL Y))\n        if <(distance to [~player v]) < [150]> then\n            set [elevator? v] to <<touching (~player v)?> and <(y position) < ([y position v] of [~player v])>>\n        end\n    else\n        Position ((_x) - (SCROLL X)) ((_y) - (SCROLL Y)) Costume (_cloneCostume)\n    end\nend\n\ndefine Position (x) (y) Costume (costume)\ngo to x: (x) y: (y)\nif <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>> then\n    Stamp background (costume) (_x) (_y)\n    show\nelse\n    hide\nend\n\ndefine Ground (x) (y) Costume (c)\nswitch costume to (dot v)\nset size to (160) %\nswitch costume to (c)\ngo to [back v] layer\nset [_x v] to (((x) * (1.6)) * (476))\nset [_y v] to (((y) * (1.6)) * (356))\nset [_clonecostume v] to (c)\ncreate clone of (_myself_ v)\nset [_clonecostume v] to []\n\nwhen I receive [start v]\nset [_x v] to [0]\nset [_y v] to [0]\nset [elevator? v] to [false]\nhide\nswitch costume to (1 v)\ngo to [back v] layer\nGround [-2.5] [-0.5] Costume [1]\nGround [-1.5] [-0.5] Costume [2]\nGround [-0.5] [-0.5] Costume [3]\nGround [0.5] [-0.5] Costume [4]\nGround [1.5] [-0.5] Costume [5]\nGround [2.5] [-0.5] Costume [6]\nElevator [-454] [-180] distance [520]\nGround [-2.5] [0.5] Costume [1.2]\nGround [-1.5] [0.5] Costume [2.2]\nGround [-0.5] [0.5] Costume [3.2]\nGround [0.5] [0.5] Costume [4.2]\nGround [1.5] [0.5] Costume [5.2]\nGround [2.5] [0.5] Costume [6.2]\nElevator [-1432] [80] distance [240]\nElevator [1402] [100] distance [410]\nGround [0.5] [1.5] Costume [1.3]\nGround [1.5] [1.5] Costume [2.3]\nElevator [641] [510] distance [240]\nset [_x v] to [0]\nset [_y v] to [-999]\n\ndefine Elevator (x) (y) distance (distance)\nset size to (100) %\ngo to [back v] layer\nset [_x v] to (x)\nset [_y v] to (y)\nset [_clonecostume v] to [elevator]\nset [_elevator distance v] to (distance)\ncreate clone of (_myself_ v)\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [kill game clones v]\nerase all\nhide\ndelete this clone\n\ndefine Stamp background (variable) (x) (y)\nswitch costume to (join (variable) (join [ ] [bg]))\nif <(costume [name v]) = (join (variable) (join [ ] [bg]))> then\n    stamp\nend\nswitch costume to (variable)\n\ndefine Elevator move (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>> then\n    show\nelse\n    hide\nend\n\nset [_x v] to [0]\nset [_y v] to [-999]\n\n@[MENU]\n\ndefine Create clone (clone)\nset [__cloneid v] to (clone)\ncreate clone of (_myself_ v)\nset [__cloneid v] to []\n\nwhen I start as a clone\nif <(__CloneID) = [transition]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (transition v)\n    show\n    set [ghost v] effect to (100)\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\n    wait (0.2) seconds\n    repeat (15)\n        go to [front v] layer\n        change [ghost v] effect by (7)\n    end\n    delete this clone\nelse\n    if <(__CloneID) = [Background]> then\n        go to x: (0) y: (0)\n        point in direction (90)\n        switch costume to (background v)\n        show\n        go to [back v] layer\n    else\n        if <(__CloneID) = [credits]> then\n            go to x: (0) y: (0)\n            point in direction (90)\n            switch costume to (__CloneID)\n            show\n            forever\n                set size to (100) %\n                if <(----SCENE) = [menu]> then\n                    if <touching (mouse-pointer v)?> then\n                        change y by (((5) - (y position)) / (3))\n                        set [brightness v] effect to (5)\n                        if <mouse down?> then\n                            set [----scene v] to (__CloneID)\n                            repeat until <not <mouse down?>>\n                                change y by (((-5) - (y position)) / (2))\n                            end\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [open v]\n                            end\n                            Create clone [Credits_screen]\n                        end\n                    else\n                        change y by (((0) - (y position)) / (3))\n                        set [brightness v] effect to (0)\n                    end\n                else\n                    if <(----SCENE) = [edit mode]> then\n                        Edit mode? (----SCENE)\n                    else\n                        change y by (((0) - (y position)) / (3))\n                        set [brightness v] effect to (0)\n                    end\n                end\n            end\n        else\n            if <(__CloneID) = [save]> then\n                go to x: (0) y: (0)\n                point in direction (90)\n                switch costume to (__CloneID)\n                show\n                forever\n                    set size to (100) %\n                    if <(----SCENE) = [menu]> then\n                        if <touching (mouse-pointer v)?> then\n                            change y by (((5) - (y position)) / (3))\n                            set [brightness v] effect to (5)\n                            if <mouse down?> then\n                                set [----scene v] to (__CloneID)\n                                repeat until <not <mouse down?>>\n                                    change y by (((-5) - (y position)) / (2))\n                                end\n                                broadcast (Save Code v) and wait\n                                set [----scene v] to [menu]\n                            end\n                        else\n                            change y by (((0) - (y position)) / (3))\n                            set [brightness v] effect to (0)\n                        end\n                    end\n                    Edit mode? (----SCENE)\n                end\n            else\n                if <(__CloneID) = [settings]> then\n                    go to x: (0) y: (0)\n                    point in direction (90)\n                    switch costume to (__CloneID)\n                    show\n                    forever\n                        set size to (100) %\n                        if <(----SCENE) = [menu]> then\n                            if <touching (mouse-pointer v)?> then\n                                change y by (((5) - (y position)) / (3))\n                                set [brightness v] effect to (5)\n                                if <mouse down?> then\n                                    set [----scene v] to (__CloneID)\n                                    repeat until <not <mouse down?>>\n                                        change y by (((-5) - (y position)) / (2))\n                                    end\n                                    if < (item (2) of [>settings v]) contains [ON]?> then\n                                        start sound [open v]\n                                    end\n                                    broadcast (Setting buttons v) and wait\n                                    Create clone [Music]\n                                    Create clone [SFX]\n                                    Create clone [chat & map]\n                                    Create clone [Usernames]\n                                    set [----scene v] to [menu]\n                                end\n                            else\n                                change y by (((0) - (y position)) / (3))\n                                set [brightness v] effect to (0)\n                            end\n                        end\n                        Edit mode? (----SCENE)\n                    end\n                else\n                    if <(__CloneID) = [play]> then\n                        go to x: (0) y: (0)\n                        point in direction (90)\n                        switch costume to (__CloneID)\n                        show\n                        forever\n                            set size to (100) %\n                            if <(----SCENE) = [menu]> then\n                                if <touching (mouse-pointer v)?> then\n                                    change y by (((5) - (y position)) / (3))\n                                    set [brightness v] effect to (5)\n                                    if <mouse down?> then\n                                        set [----scene v] to (__CloneID)\n                                        repeat until <not <mouse down?>>\n                                            change y by (((-5) - (y position)) / (2))\n                                        end\n                                        set [----scene v] to [game]\n                                        Create clone [game transition]\n                                        repeat (50)\n                                            change y by (((0) - (y position)) / (3))\n                                        end\n                                    end\n                                else\n                                    change y by (((0) - (y position)) / (3))\n                                    set [brightness v] effect to (0)\n                                end\n                            end\n                            Edit mode? (----SCENE)\n                        end\n                    else\n                        if <(__CloneID) = [Credits_screen]> then\n                            go to x: (0) y: (0)\n                            point in direction (90)\n                            switch costume to (__CloneID)\n                            show\n                            set [ghost v] effect to (100)\n                            repeat (10)\n                                change [ghost v] effect by (-10)\n                                go to [front v] layer\n                            end\n                            wait until <mouse down?>\n                            wait until <not <mouse down?>>\n                            set [----scene v] to [menu]\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [close v]\n                            end\n                            repeat (10)\n                                change [ghost v] effect by (10)\n                                go to [front v] layer\n                            end\n                            delete this clone\n                        else\n                            if <(__CloneID) = [Music]> then\n                                go to x: (60) y: (-170)\n                                go to [back v] layer\n                                go [forward v] (1) layers\n                                switch costume to (item (1) of [>settings v])\n                                replace item (1) of [settings menu click detect v] with [1]\n                                show\n                                set size to (100) %\n                                clear graphic effects\n                                go to x: (60) y: (-170)\n                                repeat (25)\n                                    change y by (((105) - (y position)) / (5))\n                                end\n                                forever\n                                    change y by (((105) - (y position)) / (5))\n                                    if <touching (mouse-pointer v)?> then\n                                        set [brightness v] effect to (5)\n                                        replace item (1) of [settings menu click detect v] with [1]\n                                        if <mouse down?> then\n                                            set [brightness v] effect to (-5)\n                                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                                start sound [click v]\n                                            end\n                                            if <(item (1) of [>settings v]) = [Music ON]> then\n                                                replace item (1) of [>settings v] with [Music OFF]\n                                                switch costume to (item (1) of [>settings v])\n                                            else\n                                                replace item (1) of [>settings v] with [Music ON]\n                                                switch costume to (item (1) of [>settings v])\n                                            end\n                                            switch costume to (item (1) of [>settings v])\n                                            wait until <not <mouse down?>>\n                                        end\n                                    else\n                                        set [brightness v] effect to (0)\n                                    end\n                                    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n                                        replace item (1) of [settings menu click detect v] with [0]\n                                    end\n                                    if <not < (settings menu click detect) contains [1]?>> then\n                                        repeat (10)\n                                            change [ghost v] effect by (10)\n                                        end\n                                        delete this clone\n                                    end\n                                end\n                            else\n                                if <(__CloneID) = [SFX]> then\n                                    go to x: (60) y: (-170)\n                                    go to [back v] layer\n                                    go [forward v] (1) layers\n                                    switch costume to (item (2) of [>settings v])\n                                    show\n                                    set size to (100) %\n                                    replace item (2) of [settings menu click detect v] with [1]\n                                    clear graphic effects\n                                    go to x: (60) y: (-170)\n                                    repeat (25)\n                                        change y by (((36) - (y position)) / (5))\n                                    end\n                                    forever\n                                        change y by (((36) - (y position)) / (5))\n                                        if <touching (mouse-pointer v)?> then\n                                            set [brightness v] effect to (5)\n                                            replace item (2) of [settings menu click detect v] with [1]\n                                            if <mouse down?> then\n                                                set [brightness v] effect to (-5)\n                                                if < (item (2) of [>settings v]) contains [ON]?> then\n                                                    start sound [click v]\n                                                end\n                                                if <(item (2) of [>settings v]) = [SFX ON]> then\n                                                    replace item (2) of [>settings v] with [SFX OFF]\n                                                    switch costume to (item (2) of [>settings v])\n                                                else\n                                                    replace item (2) of [>settings v] with [SFX ON]\n                                                    switch costume to (item (2) of [>settings v])\n                                                end\n                                                switch costume to (item (2) of [>settings v])\n                                                wait until <not <mouse down?>>\n                                            end\n                                        else\n                                            set [brightness v] effect to (0)\n                                        end\n                                        if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n                                            replace item (2) of [settings menu click detect v] with [0]\n                                        end\n                                        if <not < (settings menu click detect) contains [1]?>> then\n                                            repeat (10)\n                                                change [ghost v] effect by (10)\n                                            end\n                                            delete this clone\n                                        end\n                                    end\n                                else\n                                    if <(__CloneID) = [chat & map]> then\n                                        go to x: (60) y: (-170)\n                                        go to [back v] layer\n                                        go [forward v] (1) layers\n                                        switch costume to (item (3) of [>settings v])\n                                        show\n                                        set size to (100) %\n                                        replace item (3) of [settings menu click detect v] with [1]\n                                        clear graphic effects\n                                        go to x: (60) y: (-170)\n                                        repeat (25)\n                                            change y by (((-35) - (y position)) / (5))\n                                        end\n                                        forever\n                                            change y by (((-35) - (y position)) / (5))\n                                            if <touching (mouse-pointer v)?> then\n                                                set [brightness v] effect to (5)\n                                                replace item (3) of [settings menu click detect v] with [1]\n                                                if <mouse down?> then\n                                                    set [brightness v] effect to (-5)\n                                                    if < (item (2) of [>settings v]) contains [ON]?> then\n                                                        start sound [click v]\n                                                    end\n                                                    if <(item (3) of [>settings v]) = [chat & map ON]> then\n                                                        replace item (3) of [>settings v] with [chat & map OFF]\n                                                        switch costume to (item (3) of [>settings v])\n                                                    else\n                                                        replace item (3) of [>settings v] with [chat & map ON]\n                                                        switch costume to (item (3) of [>settings v])\n                                                    end\n                                                    switch costume to (item (3) of [>settings v])\n                                                    wait until <not <mouse down?>>\n                                                end\n                                            else\n                                                set [brightness v] effect to (0)\n                                            end\n                                            if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n                                                replace item (3) of [settings menu click detect v] with [0]\n                                            end\n                                            if <not < (settings menu click detect) contains [1]?>> then\n                                                repeat (10)\n                                                    change [ghost v] effect by (10)\n                                                end\n                                                delete this clone\n                                            end\n                                        end\n                                    else\n                                        if <(__CloneID) = [Usernames]> then\n                                            go to x: (60) y: (-170)\n                                            go to [back v] layer\n                                            go [forward v] (1) layers\n                                            switch costume to (item (4) of [>settings v])\n                                            show\n                                            set size to (100) %\n                                            replace item (4) of [settings menu click detect v] with [1]\n                                            clear graphic effects\n                                            go to x: (60) y: (-170)\n                                            repeat (25)\n                                                change y by (((-105) - (y position)) / (5))\n                                            end\n                                            forever\n                                                change y by (((-105) - (y position)) / (5))\n                                                if <touching (mouse-pointer v)?> then\n                                                    set [brightness v] effect to (5)\n                                                    replace item (4) of [settings menu click detect v] with [1]\n                                                    if <mouse down?> then\n                                                        set [brightness v] effect to (-5)\n                                                        if < (item (2) of [>settings v]) contains [ON]?> then\n                                                            start sound [click v]\n                                                        end\n                                                        if <(item (4) of [>settings v]) = [Usernames ON]> then\n                                                            replace item (4) of [>settings v] with [Usernames OFF]\n                                                            switch costume to (item (4) of [>settings v])\n                                                        else\n                                                            replace item (4) of [>settings v] with [Usernames ON]\n                                                            switch costume to (item (4) of [>settings v])\n                                                        end\n                                                        switch costume to (item (4) of [>settings v])\n                                                        wait until <not <mouse down?>>\n                                                    end\n                                                else\n                                                    set [brightness v] effect to (0)\n                                                end\n                                                if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n                                                    replace item (4) of [settings menu click detect v] with [0]\n                                                end\n                                                if <not < (settings menu click detect) contains [1]?>> then\n                                                    if < (item (2) of [>settings v]) contains [ON]?> then\n                                                        start sound [close v]\n                                                    end\n                                                    repeat (10)\n                                                        change [ghost v] effect by (10)\n                                                    end\n                                                    delete this clone\n                                                end\n                                            end\n                                        else\n                                            if <(__CloneID) = [back]> then\n                                                go to x: (0) y: (-50)\n                                                go to [back v] layer\n                                                go [forward v] (4) layers\n                                                show\n                                                clear graphic effects\n                                                switch costume to (back v)\n                                                set size to (100) %\n                                                point in direction (90)\n                                                repeat (30)\n                                                    change y by (((0) - (y position)) / (5))\n                                                end\n                                                forever\n                                                    set size to (100) %\n                                                    point in direction (90)\n                                                    if <touching (mouse-pointer v)?> then\n                                                        change y by (((5) - (y position)) / (3))\n                                                        set [brightness v] effect to (5)\n                                                        if <mouse down?> then\n                                                            repeat until <not <mouse down?>>\n                                                                change y by (((-5) - (y position)) / (2))\n                                                            end\n                                                            set [----scene v] to [menu]\n                                                            broadcast (exit editor v)\n                                                            repeat (25)\n                                                                change y by (((-50) - (y position)) / (8))\n                                                            end\n                                                            delete this clone\n                                                        end\n                                                    else\n                                                        change y by (((0) - (y position)) / (3))\n                                                        set [brightness v] effect to (0)\n                                                    end\n                                                end\n                                            else\n                                                if <(__CloneID) = [game transition]> then\n                                                    go to x: (0) y: (0)\n                                                    point in direction (90)\n                                                    switch costume to (transition v)\n                                                    show\n                                                    go to [front v] layer\n                                                    set [ghost v] effect to (100)\n                                                    broadcast (Stop MENU music v)\n                                                    repeat (10)\n                                                        go to [front v] layer\n                                                        change [ghost v] effect by (-10)\n                                                    end\n                                                    Create clone [loading]\n                                                    wait (2) seconds\n                                                    broadcast (init v) and wait\n                                                    broadcast (Start v)\n                                                    broadcast (KILL CLONES v)\n                                                    show\n                                                    if < (item (2) of [>settings v]) contains [ON]?> then\n                                                        start sound [Connect v]\n                                                    end\n                                                    repeat (15)\n                                                        change [ghost v] effect by (7)\n                                                        go to [front v] layer\n                                                    end\n                                                    delete this clone\n                                                else\n                                                    if <(__CloneID) = [loading]> then\n                                                        go to x: (0) y: (0)\n                                                        point in direction (90)\n                                                        switch costume to (loading f1 v)\n                                                        show\n                                                        set [ghost v] effect to (100)\n                                                        repeat (10)\n                                                            go to [front v] layer\n                                                            change [ghost v] effect by (-10)\n                                                        end\n                                                        repeat (100)\n                                                            wait (0.25) seconds\n                                                            next costume\n                                                            if <(costume [name v]) = [LOADING f7]> then\n                                                                switch costume to (loading f1 v)\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nchange y by (((0) - (y position)) / (3))\nset [brightness v] effect to (0)\n\nwhen I receive [menu - setup v]\nset [----scene v] to [menu]\nif <(__CloneID) = []> then\n    Create clone [Background]\n    Create clone [credits]\n    Create clone [save]\n    Create clone [settings]\n    Create clone [play]\nend\n\nwhen I receive [kill clones v]\nif <not <<(__CloneID) = [transition]> or <(__CloneID) = [game transition]>>> then\n    delete this clone\nend\n\nwhen I receive [menu v]\nhide\nreplace item (1) of [settings menu click detect v] with [0]\nreplace item (2) of [settings menu click detect v] with [0]\nreplace item (3) of [settings menu click detect v] with [0]\nreplace item (4) of [settings menu click detect v] with [0]\nCreate clone [transition]\nwait (0.3) seconds\nbroadcast (KILL GAME CLONES v)\nbroadcast (KILL CLONES v)\nbroadcast (MENU - setup v)\n\nwhen I receive [setting buttons v]\nif <<(__CloneID) = [Music]> or <<(__CloneID) = [SFX]> or <<(__CloneID) = [chat & map]> or <(__CloneID) = [Usernames]>>>> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Edit mode? (scene)\nif <(scene) = [edit mode]> then\n    change y by (((-38) - (y position)) / (4))\nend\n\nwhen I receive [summon back button v]\nif <(__CloneID) = []> then\n    Create clone [back]\nend\n\nwhen I receive [reset all v]\nreplace item (1) of [>settings v] with [Music ON]\nreplace item (2) of [>settings v] with [SFX ON]\nreplace item (3) of [>settings v] with [chat & map ON]\nreplace item (4) of [>settings v] with [Usernames ON]\n\nwhen flag clicked\nhide\n\n@[Editor]\n\ndefine Create clone (clone)\nset [__cloneid v] to (clone)\ncreate clone of (_myself_ v)\nset [__cloneid v] to []\n\nwhen I receive [kill clones v]\ndelete this clone\n\nwhen I receive [menu - setup v]\nhide\nset [menu robot size v] to [2.5]\nset [menu robot x v] to [0]\nset [menu robot y v] to [-60]\ndelete all of [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nSetup - player parts\nif <(__CloneID) = []> then\n    Create clone [edit?]\nend\n\nwhen I start as a clone\nshow\nif <(__CloneID) = [robot parts]> then\n    if <(_Player part ID) = [1]> then\n        forever\n            if <(----SCENE) = [edit mode]> then\n                switch costume to (join (join [HEAD ] (item (1) of [~robot parts v])) [ R])\n                point in direction (90)\n                Edit click | id (_Player part ID) x [0] y [63]\n            else\n                point in direction (MENU robot direction)\n                Clone x (((mouse x) - (x position)) / (20)) [60]\n                if <<(direction) < [180]> and <(direction) < [0]>> then\n                    switch costume to (join (join [HEAD ] (item (1) of [~robot parts v])) [ L])\n                else\n                    switch costume to (join (join [HEAD ] (item (1) of [~robot parts v])) [ R])\n                end\n                Edit mode? (_Player part ID)\n            end\n        end\n    else\n        if <(_Player part ID) = [2]> then\n            forever\n                if <(----SCENE) = [edit mode]> then\n                    point in direction (90)\n                    switch costume to (join [CHEST ] (item (2) of [~robot parts v]))\n                    Edit click | id (_Player part ID) x [0] y [-3]\n                else\n                    point in direction ((90) + (((mouse x) - (x position)) / (20)))\n                    Clone x [0] [0]\n                    switch costume to (join [CHEST ] (item (2) of [~robot parts v]))\n                    Edit mode? (_Player part ID)\n                end\n            end\n        else\n            if <(_Player part ID) = [3]> then\n                forever\n                    if <(----SCENE) = [edit mode]> then\n                        point in direction (90)\n                        switch costume to (join [SHOULDERS ] (item (3) of [~robot parts v]))\n                        Edit click | id (_Player part ID) x [0] y [0]\n                    else\n                        point in direction ((90) + (((mouse x) - (x position)) / (20)))\n                        Clone x [0] [0]\n                        switch costume to (join [SHOULDERS ] (item (3) of [~robot parts v]))\n                        Edit mode? (_Player part ID)\n                    end\n                end\n            else\n                if <(_Player part ID) = [4]> then\n                    forever\n                        if <(----SCENE) = [edit mode]> then\n                            switch costume to (join [WHEEL ] (item (4) of [~robot parts v]))\n                            if <<mouse down?> and <touching (mouse-pointer v)?>> then\n                                change [_wheel easter egg v] by (1)\n                            else\n                                set [_wheel easter egg v] to ((_wheel Easter egg) * (0.98))\n                            end\n                            turn right (_wheel Easter egg) degrees\n                            Edit click | id (_Player part ID) x [0] y [-6]\n                        else\n                            Clone x [0] [0]\n                            switch costume to (join [WHEEL ] (item (4) of [~robot parts v]))\n                            point in direction (90)\n                            Edit mode? (_Player part ID)\n                        end\n                    end\n                else\n                    if <(_Player part ID) = [5]> then\n                        forever\n                            set [color v] effect to (Plasma Color)\n                            if <(----SCENE) = [edit mode]> then\n                                switch costume to (join (join [GUN ] (item (5) of [~robot parts v])) [ R])\n                                if <(item (5) of [~robot parts v]) = [5]> then\n                                    point in direction (90)\n                                else\n                                    point in direction (45)\n                                end\n                                Edit click | id (_Player part ID) x [20] y [20]\n                            else\n                                if <(item (5) of [~robot parts v]) = [5]> then\n                                    point towards (mouse-pointer v)\n                                    set [menu robot direction v] to (direction)\n                                    Lightsaber engine\n                                    Edit mode? (_Player part ID)\n                                else\n                                    point towards (mouse-pointer v)\n                                    set [menu robot direction v] to (direction)\n                                    Clone x (([sin v] of (direction) ) * ((distance to [mouse-pointer v]) / (7))) ((([cos v] of (direction) ) * ((distance to [mouse-pointer v]) / (7))) + (38))\n                                    if <<(direction) < [180]> and <(direction) < [0]>> then\n                                        switch costume to (join (join [GUN ] (item (5) of [~robot parts v])) [ L])\n                                    else\n                                        switch costume to (join (join [GUN ] (item (5) of [~robot parts v])) [ R])\n                                    end\n                                    Edit mode? (_Player part ID)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(__CloneID) = [edit?]> then\n        go to x: (0) y: (0)\n        set size to (100) %\n        switch costume to (edit? v)\n        point in direction (90)\n        show\n        set [__smooth ghost v] to [100]\n        forever\n            go to x: (0) y: (0)\n            set [ghost v] effect to (__smooth ghost)\n            if <not < (settings menu click detect) contains [1]?>> then\n                if <(----SCENE) = [menu]> then\n                    if << (Touching robot MENU?) contains [1]?> or < (Touching robot MENU?) contains [2]?>> then\n                        change [__smooth ghost v] by (((0) - (__smooth ghost)) / (5))\n                        if <mouse down?> then\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [Clang v]\n                            end\n                            broadcast (summon back button v)\n                            set [----scene v] to [edit mode]\n                            repeat (30)\n                                set [----scene v] to [edit mode]\n                                change [menu robot x v] by (((-150) - (MENU Robot x)) / (5))\n                                change [menu robot y v] by (((-80) - (MENU robot y)) / (5))\n                                change [menu robot size v] by (((2.8) - (Menu robot SIZE)) / (5))\n                                change [__smooth ghost v] by (((100) - (__smooth ghost)) / (3))\n                                set [ghost v] effect to (__smooth ghost)\n                            end\n                            set [begin edit v] to [true]\n                        end\n                    else\n                        change [__smooth ghost v] by (((100) - (__smooth ghost)) / (3))\n                    end\n                end\n            else\n                change [__smooth ghost v] by (((100) - (__smooth ghost)) / (3))\n            end\n            if <(----SCENE) = [menu]> then\n                if < (settings menu click detect) contains [1]?> then\n                    change [menu robot x v] by (((-120) - (MENU Robot x)) / (5))\n                    change [menu robot y v] by (((-60) - (MENU robot y)) / (5))\n                    change [menu robot size v] by (((2.2) - (Menu robot SIZE)) / (5))\n                else\n                    change [menu robot x v] by (((0) - (MENU Robot x)) / (5))\n                    change [menu robot y v] by (((-60) - (MENU robot y)) / (5))\n                    change [menu robot size v] by (((2.5) - (Menu robot SIZE)) / (5))\n                end\n            else\n                if <(----SCENE) = [edit mode]> then\n                    change [menu robot x v] by (((-150) - (MENU Robot x)) / (5))\n                    change [menu robot y v] by (((-80) - (MENU robot y)) / (5))\n                    change [menu robot size v] by (((2.8) - (Menu robot SIZE)) / (5))\n                end\n            end\n            if <(----SCENE) = [edit mode]> then\n                hide\n                set [__smooth ghost v] to [100]\n            else\n                show\n                replace item (1) of [editor parts v] with [0]\n                replace item (2) of [editor parts v] with [0]\n                replace item (3) of [editor parts v] with [0]\n                replace item (4) of [editor parts v] with [0]\n                replace item (5) of [editor parts v] with [0]\n                set [begin edit v] to [false]\n            end\n        end\n    else\n        if <(__CloneID) = [arrows]> then\n            go to x: (96) y: (80)\n            switch costume to (arrows 0 v)\n            go to [front v] layer\n            show\n            point in direction (90)\n            set size to (100) %\n            set [ghost v] effect to (100)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\n            forever\n                set y to (75)\n                change x by (((96) - (x position)) / (5))\n                if <touching (mouse-pointer v)?> then\n                    if <(mouse x) > (x position)> then\n                        switch costume to (arrows 1 r v)\n                        if <<mouse down?> and < (Editor parts) contains [1]?>> then\n                            change x by (20)\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [Wood Tap v]\n                            end\n                            Change (~ROBOT PARTS) +/- [1]\n                            repeat until <not <mouse down?>>\n                                change x by (((96) - (x position)) / (5))\n                            end\n                        end\n                    else\n                        switch costume to (arrows 1 l v)\n                        if <<mouse down?> and < (Editor parts) contains [1]?>> then\n                            change x by (-20)\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [Wood Tap v]\n                            end\n                            Change (~ROBOT PARTS) +/- [-1]\n                            repeat until <not <mouse down?>>\n                                change x by (((96) - (x position)) / (5))\n                            end\n                        end\n                    end\n                else\n                    switch costume to (arrows 0 v)\n                end\n                if <key (any v) pressed?> then\n                    if <key (right arrow v) pressed?> then\n                        switch costume to (arrows 1 r v)\n                        if <<key (right arrow v) pressed?> and < (Editor parts) contains [1]?>> then\n                            change x by (20)\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [Wood Tap v]\n                            end\n                            Change (~ROBOT PARTS) +/- [1]\n                            repeat until <not <key (right arrow v) pressed?>>\n                                change x by (((96) - (x position)) / (5))\n                            end\n                        end\n                    else\n                        switch costume to (arrows 1 l v)\n                        if <<key (left arrow v) pressed?> and < (Editor parts) contains [1]?>> then\n                            change x by (-20)\n                            if < (item (2) of [>settings v]) contains [ON]?> then\n                                start sound [Wood Tap v]\n                            end\n                            Change (~ROBOT PARTS) +/- [-1]\n                            repeat until <not <key (left arrow v) pressed?>>\n                                change x by (((96) - (x position)) / (5))\n                            end\n                        end\n                    end\n                end\n            end\n        else\n            if <(__CloneID) = [background]> then\n                go to x: (0) y: (0)\n                switch costume to (background w/ins. v)\n                show\n                point in direction (90)\n                go to [back v] layer\n                go [forward v] (1) layers\n                set size to (100) %\n                set [ghost v] effect to (100)\n                repeat (9)\n                    change [ghost v] effect by (-10)\n                end\n                set [ghost v] effect to (10)\n                wait until <not <mouse down?>>\n                wait until < (Editor parts) contains [1]?>\n                switch costume to (background v)\n            else\n                if <(__CloneID) = [Description]> then\n                    go to x: (0) y: (-15)\n                    set size to (100) %\n                    go to [back v] layer\n                    point in direction (90)\n                    go [forward v] (3) layers\n                    clear graphic effects\n                    forever\n                        go to x: (0) y: (-30)\n                        if < (Editor parts) contains [1]?> then\n                            switch costume to (join [TEKST\] ] (join (item # of [1] in [editor parts v]) (join [ ] (item (item # of [1] in [editor parts v]) of [~robot parts v]))))\n                            show\n                        else\n                            hide\n                        end\n                    end\n                else\n                    if <(__CloneID) = [color button]> then\n                        go to x: (0) y: (50)\n                        set [color select v] to [0]\n                        go to [front v] layer\n                        show\n                        point in direction (90)\n                        clear graphic effects\n                        set [color v] effect to (Plasma Color)\n                        switch costume to (plasma color v)\n                        set size to (100) %\n                        repeat (25)\n                            change y by (((0) - (y position)) / (5))\n                        end\n                        forever\n                            if <touching (mouse-pointer v)?> then\n                                change y by (((-5) - (y position)) / (3))\n                                set [brightness v] effect to (5)\n                                if <mouse down?> then\n                                    repeat until <not <mouse down?>>\n                                        change y by (((5) - (y position)) / (2))\n                                        set [color v] effect to (Plasma Color)\n                                    end\n                                    if <(Color select) = [1]> then\n                                        set [color select v] to [0]\n                                        hide variable [plasma color v]\n                                    else\n                                        set [color select v] to [1]\n                                        show variable [plasma color v]\n                                        set [speed/protection v] to [0]\n                                    end\n                                end\n                            else\n                                change y by (((0) - (y position)) / (3))\n                                set [brightness v] effect to (0)\n                            end\n                            set [color v] effect to (Plasma Color)\n                            if <(Color select) = [1]> then\n                                if <(----SCENE) = [edit mode]> then\n                                    show variable [plasma color v]\n                                else\n                                    hide variable [plasma color v]\n                                end\n                            else\n                                hide variable [plasma color v]\n                            end\n                        end\n                    else\n                        if <(__CloneID) = [speed/protection]> then\n                            go to x: (0) y: (50)\n                            go to [front v] layer\n                            show\n                            set [speed/protection v] to [0]\n                            point in direction (90)\n                            clear graphic effects\n                            switch costume to (speed/protection v)\n                            set size to (100) %\n                            repeat (25)\n                                change y by (((0) - (y position)) / (5))\n                            end\n                            forever\n                                if <touching (mouse-pointer v)?> then\n                                    change y by (((-5) - (y position)) / (3))\n                                    set [brightness v] effect to (5)\n                                    if <mouse down?> then\n                                        repeat until <not <mouse down?>>\n                                            change y by (((5) - (y position)) / (2))\n                                        end\n                                        if <(Speed/protection) = [1]> then\n                                            set [speed/protection v] to [0]\n                                            hide variable [speed v]\n                                            hide variable [protection v]\n                                        else\n                                            set [speed/protection v] to [1]\n                                            show variable [speed v]\n                                            show variable [protection v]\n                                            set [color select v] to [0]\n                                        end\n                                    end\n                                else\n                                    change y by (((0) - (y position)) / (3))\n                                    set [brightness v] effect to (0)\n                                end\n                                Speed/ Protection ratio calculator\n                                if <(Speed/protection) = [1]> then\n                                    if <(----SCENE) = [edit mode]> then\n                                        show variable [speed v]\n                                        show variable [protection v]\n                                    else\n                                        hide variable [speed v]\n                                        hide variable [protection v]\n                                    end\n                                else\n                                    hide variable [speed v]\n                                    hide variable [protection v]\n                                end\n                            end\n                        else\n                            if <(__CloneID) = [load]> then\n                                go to x: (0) y: (50)\n                                go to [front v] layer\n                                show\n                                point in direction (90)\n                                clear graphic effects\n                                switch costume to (load v)\n                                set size to (100) %\n                                repeat (25)\n                                    change y by (((0) - (y position)) / (5))\n                                end\n                                forever\n                                    if <touching (mouse-pointer v)?> then\n                                        change y by (((-5) - (y position)) / (3))\n                                        set [brightness v] effect to (5)\n                                        if <mouse down?> then\n                                            repeat until <not <mouse down?>>\n                                                change y by (((5) - (y position)) / (2))\n                                            end\n                                            broadcast (load code v)\n                                        end\n                                    else\n                                        change y by (((0) - (y position)) / (3))\n                                        set [brightness v] effect to (0)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Setup - player parts\nset [__cloneid v] to [robot parts]\nset [_player part id v] to [0]\nset [_wheel easter egg v] to [0]\nset [editor x v] to [0]\nset [editor y v] to [0]\nrepeat (5)\n    change [_player part id v] by (1)\n    create clone of (_myself_ v)\nend\nset [_player part id v] to []\nset [__cloneid v] to []\n\ndefine Clone x (x) (y)\ngo to x: ((MENU Robot x) + ((x) * (Menu robot SIZE))) y: ((MENU robot y) + ((y) * (Menu robot SIZE)))\nset size to ((100) * (Menu robot SIZE)) %\n\nwhen flag clicked\nset [__cloneid v] to []\nhide\ndelete all of [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\nadd [0] to [touching robot menu? v]\n\ndefine Edit mode? (#)\nif <(----SCENE) = [menu]> then\n    if <touching (mouse-pointer v)?> then\n        replace item (#) of [touching robot menu? v] with [1]\n    else\n        replace item (#) of [touching robot menu? v] with [0]\n    end\n    if < (Touching robot MENU?) contains [1]?> then\n        set [brightness v] effect to (8)\n    else\n        set [brightness v] effect to (0)\n    end\nelse\n    replace item (#) of [touching robot menu? v] with [0]\n    set [brightness v] effect to (0)\nend\n\nwhen I receive [hide v]\nhide\n\ndefine Edit click | id (id) x (x) y (y)\nset size to ((100) * (Menu robot SIZE)) %\nif <<touching (mouse-pointer v)?> and <(mouse x) < [-20]>> then\n    set [brightness v] effect to (8)\n    if <<mouse down?> and <(Begin edit) = [true]>> then\n        delete all of [editor parts v]\n        add [0] to [editor parts v]\n        add [0] to [editor parts v]\n        add [0] to [editor parts v]\n        add [0] to [editor parts v]\n        add [0] to [editor parts v]\n        replace item (id) of [editor parts v] with [1]\n        set [speed/protection v] to [0]\n        set [color select v] to [0]\n    end\nelse\n    set [brightness v] effect to (0)\nend\nif <(item (id) of [editor parts v]) = [1]> then\n    if <not <(_Player part ID) = [5]>> then\n        change x by (((91) - (x position)) / (6))\n    end\n    if <<(_Player part ID) = [1]> or <(_Player part ID) = [4]>> then\n        change y by (((75) - (y position)) / (6))\n    else\n        if <(_Player part ID) = [2]> then\n            change y by (((-10) - (y position)) / (6))\n        else\n            if <(_Player part ID) = [3]> then\n                change y by (((-50) - (y position)) / (6))\n            else\n                if <(_Player part ID) = [5]> then\n                    if <(item (5) of [~robot parts v]) = [5]> then\n                        change x by (((80) - (x position)) / (6))\n                        change y by (((70) - (y position)) / (6))\n                        point in direction (130)\n                    else\n                        change x by (((80) - (x position)) / (6))\n                        change y by (((70) - (y position)) / (6))\n                    end\n                    if <<<(item (5) of [~robot parts v]) = [3]> or <(item (5) of [~robot parts v]) = [4]>> or <<(item (5) of [~robot parts v]) = [5]> or <(item (5) of [~robot parts v]) = [6]>>> then\n                        set size to ((90) * (Menu robot SIZE)) %\n                    else\n                        set size to ((100) * (Menu robot SIZE)) %\n                    end\n                end\n            end\n        end\n    end\nelse\n    change x by ((((MENU Robot x) + ((x) * (Menu robot SIZE))) - (x position)) / (6))\n    change y by ((((MENU robot y) + ((y) * (Menu robot SIZE))) - (y position)) / (6))\nend\n\nwhen I receive [summon back button v]\nif <(__CloneID) = []> then\n    Create clone [background]\n    Create clone [Description]\n    Create clone [arrows]\n    Create clone [color button]\n    Create clone [speed/protection]\n    Create clone [load]\nend\n\ndefine Change (part list ) +/- (#)\nreplace item (item # of [1] in [editor parts v]) of [~robot parts v] with ((item (item # of [1] in [editor parts v]) of [~robot parts v]) + (#))\nif <(item (item # of [1] in [editor parts v]) of [~robot parts v]) < [1]> then\n    replace item (item # of [1] in [editor parts v]) of [~robot parts v] with [7]\nend\nif <(item (item # of [1] in [editor parts v]) of [~robot parts v]) > [7]> then\n    replace item (item # of [1] in [editor parts v]) of [~robot parts v] with [1]\nend\nbroadcast (Arrow part ANIMATION v)\n\nwhen I receive [arrow part animation v]\nif <not <(_Player part ID) = []>> then\n    if <(item # of [1] in [editor parts v]) = (_Player part ID)> then\n        change y by (25)\n        set [ghost v] effect to (100)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\nif <(__CloneID) = [Description]> then\n    set [brightness v] effect to (-100)\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [exit editor v]\nif <<(__CloneID) = [arrows]> or <<(__CloneID) = [background]> or <<(__CloneID) = [Description]> or <<(__CloneID) = [color button]> or <<(__CloneID) = [speed/protection]> or <(__CloneID) = [load]>>>>>> then\n    hide variable [plasma color v]\n    hide variable [speed v]\n    hide variable [protection v]\n    set [speed/protection v] to [0]\n    set [color select v] to [0]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I receive [update v]\nreplace item (1) of [length of cloud variables v] with (length of (☁ Cloud1))\nreplace item (2) of [length of cloud variables v] with (length of (☁ Cloud2))\nreplace item (3) of [length of cloud variables v] with (length of (☁ Cloud3))\nreplace item (4) of [length of cloud variables v] with (length of (☁ Cloud4))\nreplace item (5) of [length of cloud variables v] with (length of (☁ Cloud5))\nreplace item (6) of [length of cloud variables v] with (length of (☁ Cloud6))\nreplace item (7) of [length of cloud variables v] with (length of (☁ Cloud7))\nreplace item (8) of [length of cloud variables v] with (length of (☁ Cloud8))\n\ndefine Lightsaber engine\nClone x (([sin v] of (direction) ) * ((distance to [mouse-pointer v]) / (5))) ((([cos v] of (direction) ) * ((distance to [mouse-pointer v]) / (5))) + (38))\npoint in direction (__Lightsaber direction)\nchange [__lightsaber direction v] by ((((MENU robot direction) + ((20) - (<not <(MENU robot direction) > [0]>> * ((20) * (2))))) - (__Lightsaber direction)) / (4))\nif <(MENU robot direction) > [0]> then\n    if <(([abs v] of (__Lightsaber direction) ) + (12)) < ([abs v] of (MENU robot direction) )> then\n        switch costume to (gun 5 r2 v)\n    else\n        switch costume to (gun 5 r v)\n    end\nelse\n    if <(([abs v] of (__Lightsaber direction) ) + (12)) < ([abs v] of (MENU robot direction) )> then\n        switch costume to (gun 5 l2 v)\n    else\n        switch costume to (gun 5 l v)\n    end\nend\n\ndefine Speed/ Protection ratio calculator\nset [speed v] to ((100) - (Protection))\n\nwhen I receive [reset all v]\nset [speed v] to [50]\nset [protection v] to [50]\n\nwhen flag clicked\nhide variable [speed v]\nhide variable [protection v]\n\nset [protection v] to ((100) - (Speed))\n\nset [__cloneid v] to [0]\n\n@&graphics\n\ndefine begin decode of (encoded)\nset [encoded v] to (encoded)\nset [letter # v] to [5]\n\ndefine value = read from encoded\nset [value v] to []\nforever\n    set [idx v] to (join (letter (letter #) of (encoded)) (letter ((letter #) + (1)) of (encoded)))\n    change [letter # v] by (2)\n    if <(idx) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (value) (item (idx) of [code v]))\nend\n\ndefine write (value) to encoded\nset [letter # v] to [1]\nrepeat (length of (value))\n    set [encoded v] to (join (encoded) (item # of (letter (letter #) of (value)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encoded v] to (join (encoded) [00])\n\nwhen I receive [load code v]\nask [Paste your save code here:] and wait\nif <<(answer) > []> and << (letter (1) of (answer)) contains [3]?> and << (letter (2) of (answer)) contains [4]?> and << (letter (3) of (answer)) contains [5]?> and < (letter (4) of (answer)) contains [3]?>>>>> then\n    set [encoded v] to (answer)\n    begin decode of (encoded)\n    value = read from encoded\n    set [protection v] to (value)\n    value = read from encoded\n    set [speed v] to (value)\n    value = read from encoded\n    replace item (1) of [~robot parts v] with (value)\n    value = read from encoded\n    replace item (2) of [~robot parts v] with (value)\n    value = read from encoded\n    replace item (3) of [~robot parts v] with (value)\n    value = read from encoded\n    replace item (4) of [~robot parts v] with (value)\n    value = read from encoded\n    replace item (5) of [~robot parts v] with (value)\n    value = read from encoded\n    set [plasma color v] to (value)\nelse\n    if <(answer) > []> then\n        broadcast (Invaild v)\n    end\nend\n\nwhen I receive [save code v]\nset [----scene v] to [save]\nset [encoded v] to []\nset [encoded v] to [3453]\nwrite (Protection) to encoded\nwrite (Speed) to encoded\nwrite (item (1) of [~robot parts v]) to encoded\nwrite (item (2) of [~robot parts v]) to encoded\nwrite (item (3) of [~robot parts v]) to encoded\nwrite (item (4) of [~robot parts v]) to encoded\nwrite (item (5) of [~robot parts v]) to encoded\nwrite (Plasma Color) to encoded\nreplace item (1) of [copy this \(double click then ctrl/ command + c\): v] with (encoded)\nhide list [copy this \(double click then ctrl/ command + c\): v]\nif < (item (2) of [>settings v]) contains [ON]?> then\n    start sound [Machine v]\nend\nwait until <<mouse down?> and <(mouse y) > [-110]>>\nshow list [copy this \(double click then ctrl/ command + c\): v]\nset [----scene v] to [menu]\n\nwhen flag clicked\nshow list [copy this \(double click then ctrl/ command + c\): v]\n\nwhen flag clicked\nhide\n\n@&Numbers\n\nwhen flag clicked\nhide\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [kill game clones v]\ndelete this clone\n\nwhen I receive [start v]\nset size to (100) %\nhide\nset [safe zone timer v] to [30]\nif <not <(item (5) of [~robot parts v]) = [5]>> then\n    Setup - numbers | digits [1] Position [190] [-145] Id: [/]\n    Setup - numbers | digits [2] Position [165] [-136] Id: [ammo]\n    Setup - numbers | digits [2] Position [200] [-160] Id: [max ammo]\nend\nSetup - numbers | digits [1] Position [-232] [167] Id: [Players:]\nSetup - numbers | digits [2] Position [-156] [167] Id: [player number]\nSetup - numbers | digits [1] Position [-11] [164] Id: [skull]\nSetup - numbers | digits [2] Position [11] [164] Id: [kills]\nSetup - numbers | digits [1] Position [0] [140] Id: [safe zone timer]\nSetup - numbers | digits [2] Position [60] [140] Id: [zone timer]\n\ndefine Setup - numbers | digits (#) Position (x) (y) Id: (id)\nset [__x v] to (x)\nset [__y v] to (y)\nset [__clone id v] to (id)\nset [__digit # v] to [0]\nrepeat (#)\n    change [__digit # v] by (1)\n    create clone of (_myself_ v)\nend\nset [__clone id v] to []\nset [__digit # v] to [0]\n\nwhen I start as a clone\ngo to [front v] layer\n\nwhen I receive [update v]\nif <not <(__Clone ID) = []>> then\n    show\n    if <(__Clone ID) = [ammo]> then\n        Number engine (~AMMO) Distance [14] (__digit #) (__x) (__y) ID (__Clone ID)\n        set size to (100) %\n    else\n        if <(__Clone ID) = [/]> then\n            switch costume to (/ v)\n            go to x: (__x) y: (__y)\n            set size to (100) %\n        else\n            if <(__Clone ID) = [max ammo]> then\n                Number engine (&max ammo) Distance [14] (__digit #) (__x) (__y) ID (__Clone ID)\n                set size to (100) %\n            else\n                if <(__Clone ID) = [Players:]> then\n                    switch costume to (players: v)\n                    go to x: (__x) y: (__y)\n                    set size to (70) %\n                else\n                    if <(__Clone ID) = [Player number]> then\n                        Number engine (#PlayersOnline) Distance [10] (__digit #) (__x) (__y) ID (__Clone ID)\n                        set size to (70) %\n                    else\n                        if <(__Clone ID) = [skull]> then\n                            switch costume to (skull v)\n                            go to x: (__x) y: (__y)\n                            set size to (90) %\n                        else\n                            if <(__Clone ID) = [kills]> then\n                                Number engine (~Player KILLS) Distance [13] (__digit #) (__x) (__y) ID (__Clone ID)\n                                set size to (90) %\n                            else\n                                if <(__Clone ID) = [safe zone timer]> then\n                                    switch costume to (safe zone timer v)\n                                    go to x: (__x) y: (__y)\n                                    set size to (50) %\n                                    if <<<(SCROLL X) < [-120]> or <(SCROLL X) > [1225]>> or <<(~Player Y) < [0]> or <(~Player Y) > [490]>>> then\n                                        hide\n                                        change [safe zone timer v] by (0.03)\n                                    else\n                                        show\n                                        change [safe zone timer v] by (-0.03)\n                                    end\n                                    if <(SAFE ZONE TIMER) < [0]> then\n                                        set [safe zone timer v] to [0]\n                                    end\n                                    if <(SAFE ZONE TIMER) > [30]> then\n                                        set [safe zone timer v] to [30]\n                                    end\n                                    if <(SAFE ZONE TIMER) = [0]> then\n                                        set [heal timer v] to (timer)\n                                        change [~player hp v] by (-0.15)\n                                    end\n                                else\n                                    if <(__Clone ID) = [zone timer]> then\n                                        if <<<(SCROLL X) < [-120]> or <(SCROLL X) > [1225]>> or <<(~Player Y) < [0]> or <(~Player Y) > [490]>>> then\n                                            hide\n                                        else\n                                            show\n                                            Number engine (round (SAFE ZONE TIMER)) Distance [8] (__digit #) (__x) (__y) ID (__Clone ID)\n                                        end\n                                        set size to (50) %\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [ghost v] effect to (40)\n    go to [front v] layer\nend\n\ndefine Number engine (variable) Distance (distance) (digit) (x) (y) ID (id)\nshow\nif <(digit) > (length of (variable))> then\n    hide\nend\nswitch costume to (join [_] (letter (digit) of (variable)))\nif <(id) = [ammo]> then\n    if <(length of (variable)) > [1]> then\n        go to x: (((x) + ((digit) * (distance))) - (distance)) y: (y)\n    else\n        go to x: ((x) + ((digit) * (distance))) y: (y)\n    end\nelse\n    go to x: (((x) + ((digit) * (distance))) - (distance)) y: (y)\nend\n\nset [safe zone timer v] to [30]\n\n@[Map&Chat]\n\nwhen flag clicked\nset [chat v] to [0]\nset [chat timer v] to [0]\ngo to x: (-120) y: (0)\nhide\n\nwhen I start as a clone\nset size to (100) %\nif <(__CloneID) = [Chat]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    switch costume to (chat v)\n    clear graphic effects\n    forever\n        if <(----SCENE) = [game]> then\n            go to [front v] layer\n            switch costume to (chat v)\n            set [ghost v] effect to (20)\n            if <(timer) > ((Chat timer) + (5))> then\n                set [chat v] to [0]\n            end\n            if < (item (3) of [>settings v]) contains [on]?> then\n                show\n                if <key (t v) pressed?> then\n                    change y by (((5) - (y position)) / (3))\n                    set [brightness v] effect to (5)\n                    if <key (t v) pressed?> then\n                        repeat until <not <key (t v) pressed?>>\n                            change y by (((-5) - (y position)) / (2))\n                            if <(timer) > ((Chat timer) + (5))> then\n                                set [chat v] to [0]\n                            end\n                        end\n                        broadcast (chat v) and wait\n                        Create clone [Chat menu]\n                    end\n                else\n                    if <<<(mouse x) > [-240]> and <(mouse x) < [240]>> and <<(mouse y) > [-180]> and <(mouse y) < [180]>>> then\n                        if <touching (mouse-pointer v)?> then\n                            change y by (((5) - (y position)) / (3))\n                            set [brightness v] effect to (5)\n                            if <mouse down?> then\n                                repeat until <not <mouse down?>>\n                                    change y by (((-5) - (y position)) / (2))\n                                    if <(timer) > ((Chat timer) + (5))> then\n                                        set [chat v] to [0]\n                                    end\n                                end\n                                broadcast (chat v) and wait\n                                Create clone [Chat menu]\n                            end\n                        else\n                            change y by (((0) - (y position)) / (3))\n                            set [brightness v] effect to (0)\n                        end\n                    else\n                        change y by (((0) - (y position)) / (3))\n                        set [brightness v] effect to (0)\n                    end\n                end\n            else\n                hide\n                if <key (t v) pressed?> then\n                    broadcast (chat v) and wait\n                    Create clone [Chat menu]\n                    repeat until <not <key (t v) pressed?>>\n                        if <(timer) > ((Chat timer) + (5))> then\n                            set [chat v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(__CloneID) = [Chat menu]> then\n        set [space esc? v] to [1]\n        go to x: (-400) y: (0)\n        clear graphic effects\n        point in direction (90)\n        switch costume to (chat menu v)\n        show\n        go to x: (-400) y: (0)\n        forever\n            if <(----SCENE) = [game]> then\n                if <(SPACE ESC?) = [0]> then\n                    delete this clone\n                end\n                set [space esc? v] to [1]\n                go to [front v] layer\n                set [ghost v] effect to (20)\n                change x by (((-120) - (x position)) / (5))\n                [1] Pressed?\n                [2] Pressed?\n                [3] Pressed?\n                [4] Pressed?\n                [5] Pressed?\n                [6] Pressed?\n                [7] Pressed?\n                [8] Pressed?\n                [9] Pressed?\n                if <key (space v) pressed?> then\n                    repeat (10)\n                        change [ghost v] effect by (10)\n                    end\n                    set [space esc? v] to [0]\n                    delete this clone\n                end\n            end\n        end\n    else\n        if <(__CloneID) = [Map]> then\n            go to x: (0) y: (0)\n            point in direction (90)\n            switch costume to (map v)\n            clear graphic effects\n            forever\n                if <(----SCENE) = [game]> then\n                    switch costume to (map v)\n                    go to [front v] layer\n                    set [ghost v] effect to (20)\n                    if < (item (3) of [>settings v]) contains [ON]?> then\n                        show\n                        if <key (m v) pressed?> then\n                            change y by (((-5) - (y position)) / (3))\n                            set [brightness v] effect to (5)\n                            if <key (m v) pressed?> then\n                                repeat until <not <key (m v) pressed?>>\n                                    change y by (((5) - (y position)) / (2))\n                                end\n                                broadcast (map v) and wait\n                                Create clone [game map]\n                            end\n                        else\n                            if <<<(mouse x) > [-240]> and <(mouse x) < [240]>> and <<(mouse y) > [-180]> and <(mouse y) < [180]>>> then\n                                if <touching (mouse-pointer v)?> then\n                                    change y by (((-5) - (y position)) / (3))\n                                    set [brightness v] effect to (5)\n                                    if <mouse down?> then\n                                        repeat until <not <mouse down?>>\n                                            change y by (((5) - (y position)) / (2))\n                                        end\n                                        broadcast (map v) and wait\n                                        Create clone [game map]\n                                    end\n                                else\n                                    change y by (((0) - (y position)) / (3))\n                                    set [brightness v] effect to (0)\n                                end\n                            else\n                                change y by (((0) - (y position)) / (3))\n                                set [brightness v] effect to (0)\n                            end\n                        end\n                    else\n                        hide\n                        if <key (m v) pressed?> then\n                            broadcast (map v) and wait\n                            Create clone [game map]\n                            wait until <not <key (m v) pressed?>>\n                        end\n                    end\n                end\n            end\n        else\n            if <(__CloneID) = [game map]> then\n                set [space esc? v] to [1]\n                go to x: (0) y: (-400)\n                clear graphic effects\n                point in direction (90)\n                switch costume to (gamemap v)\n                set size to (100) %\n                Summon MiniMap Players (#PlayersOnline)\n                show\n                forever\n                    if <(----SCENE) = [game]> then\n                        if <(SPACE ESC?) = [0]> then\n                            delete this clone\n                        end\n                        set [space esc? v] to [1]\n                        go to [front v] layer\n                        set [ghost v] effect to (20)\n                        change y by (((0) - (y position)) / (3))\n                        set x to (0)\n                        if <key (space v) pressed?> then\n                            repeat (10)\n                                change [ghost v] effect by (10)\n                            end\n                            set [space esc? v] to [0]\n                            delete this clone\n                        end\n                    end\n                end\n            else\n                if <(__CloneID) = [player minimap]> then\n                    clear graphic effects\n                    go to x: (((~Player X) / (10.3)) + (10)) y: (-400)\n                    point in direction (~Player Direction)\n                    switch costume to (player v)\n                    set size to (100) %\n                    show\n                    repeat (30)\n                        set [ghost v] effect to (20)\n                        change y by ((((~Player Y) / (10.3)) - (y position)) / (3))\n                        set x to (((~Player X) / (10.3)) + (10))\n                        point in direction (~Player Direction)\n                        if <key (space v) pressed?> then\n                            delete this clone\n                        end\n                        if <(SPACE ESC?) = [0]> then\n                            delete this clone\n                        end\n                    end\n                    forever\n                        set size to (100) %\n                        set [ghost v] effect to (20)\n                        go to [front v] layer\n                        go to x: (((~Player X) / (10.3)) + (10)) y: ((~Player Y) / (10.3))\n                        point in direction (~Player Direction)\n                        if <key (space v) pressed?> then\n                            delete this clone\n                        end\n                        if <(SPACE ESC?) = [0]> then\n                            delete this clone\n                        end\n                    end\n                else\n                    if <(__CloneID) = [opponent minimap]> then\n                        clear graphic effects\n                        go to x: (((item ((((__opponent) - (1)) * (&MaxElements)) + (3)) of [#cloudlist v]) / (10.3)) + (10)) y: (-400)\n                        point in direction (item ((((__opponent) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v])\n                        switch costume to (opponent v)\n                        set size to (100) %\n                        show\n                        repeat (30)\n                            change y by ((((item ((((__opponent) - (1)) * (&MaxElements)) + (4)) of [#cloudlist v]) / (10.3)) - (y position)) / (3))\n                            set x to (((item ((((__opponent) - (1)) * (&MaxElements)) + (3)) of [#cloudlist v]) / (10.3)) + (10))\n                            point in direction (item ((((__opponent) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v])\n                            if <key (space v) pressed?> then\n                                delete this clone\n                            end\n                            if <(SPACE ESC?) = [0]> then\n                                delete this clone\n                            end\n                        end\n                        forever\n                            set size to (100) %\n                            set [ghost v] effect to (20)\n                            go to [front v] layer\n                            go to x: (((item ((((__opponent) - (1)) * (&MaxElements)) + (3)) of [#cloudlist v]) / (10.3)) + (10)) y: ((item ((((__opponent) - (1)) * (&MaxElements)) + (4)) of [#cloudlist v]) / (10.3))\n                            point in direction (item ((((__opponent) - (1)) * (&MaxElements)) + (7)) of [#cloudlist v])\n                            if <key (space v) pressed?> then\n                                delete this clone\n                            end\n                            if <(SPACE ESC?) = [0]> then\n                                delete this clone\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Create clone (clone)\nset [__cloneid v] to (clone)\ncreate clone of (_myself_ v)\nset [__cloneid v] to []\n\nwhen I receive [start v]\nset [chat v] to [0]\nset [chat timer v] to [0]\nset [space esc? v] to [0]\nCreate clone [Chat]\nCreate clone [Map]\n\nwhen I receive [kill clones v]\ndelete this clone\n\ndefine (#) Pressed?\nif <key ((#) v) pressed?> then\n    set [chat v] to (#)\n    set [chat timer v] to (timer)\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [space esc? v] to [0]\n    delete this clone\nend\n\nwhen I receive [chat v]\nset [space esc? v] to [0]\nif <<(__CloneID) = [Chat menu]> or <(__CloneID) = [game map]>> then\n    delete this clone\nend\n\nwhen I receive [map v]\nset [space esc? v] to [0]\nif <<(__CloneID) = [Chat menu]> or <(__CloneID) = [game map]>> then\n    delete this clone\nend\n\ndefine Summon MiniMap Players (players online)\nset [__opponent v] to [0]\nCreate clone [player minimap]\nrepeat ((players online) - (1))\n    change [__opponent v] by (1)\n    Create clone [opponent minimap]\nend\n\n@[TurboMode Detector]\n\ndefine Turbomode\nset [_timer v] to (timer)\nrepeat (10)\n    move (0) steps\nend\nif <(timer) > ((_timer) + (0.1))> then\n    set [turbo mode v] to [false]\n    hide\nelse\n    set [turbo mode v] to [true]\n    broadcast (HIDE v)\n    broadcast (KILL CLONES v)\n    show\n    go to [front v] layer\n    stop [all v]\nend\n\nwhen flag clicked\nreset timer\ngo to x: (0) y: (0)\nhide\nswitch costume to (not allowed v)\n\nwhen I receive [menu v]\nforever\n    Turbomode\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen I receive [reset all v]\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nswitch costume to (>thumbnail v)\nset size to (100) %\n\nwhen I receive [menu v]\nforever\n    play sound [Canonblade - This Feeling v] until done\nend\n\nwhen I receive [stop menu music v]\nrepeat (10)\n    change volume by (-7)\nend\nstop [other scripts in sprite v]\nset volume to (0) %\n\nwhen I receive [menu v]\nforever\n    if < (item (1) of [>settings v]) contains [ON]?> then\n        change volume by (((50) - (volume)) / (5))\n        if <(----SCENE) = [edit mode]> then\n            change volume by (((20) - (volume)) / (5))\n        else\n            change volume by (((50) - (volume)) / (5))\n        end\n    else\n        change volume by (((0) - (volume)) / (5))\n    end\nend\n\n@Startup\n\ndefine Create clone (clone)\nset [_cloneid v] to (clone)\ncreate clone of (_myself_ v)\nset [_cloneid v] to []\n\nwhen flag clicked\nhide\nif <(INTRO WATCHED?) = [0]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    Create clone [black]\n    wait (1) seconds\n    Create clone [After]\n    wait (3) seconds\n    Create clone [presents]\nelse\n    broadcast (MENU v)\nend\n\nwhen I start as a clone\nif <(_cloneID) = [black]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (thumbnail v)\n    set [brightness v] effect to (-100)\n    show\nelse\n    if <(_cloneID) = [after]> then\n        go to x: (0) y: (0)\n        point in direction (90)\n        set size to (100) %\n        switch costume to (after over 100 hours of work v)\n        show\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        wait (1) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    else\n        if <(_cloneID) = [presents]> then\n            go to x: (0) y: (0)\n            point in direction (90)\n            set size to (200) %\n            switch costume to (presents v)\n            show\n            set [ghost v] effect to (100)\n            repeat (20)\n                change [ghost v] effect by (-5)\n                change size by (((100) - (size)) / (10))\n            end\n            repeat (50)\n                change size by (((100) - (size)) / (10))\n            end\n            broadcast (0 brightness in intro v)\n            Create clone [Robot Constructor]\n            repeat (50)\n                change size by (((60) - (size)) / (10))\n                change y by (((70) - (y position)) / (10))\n            end\n        else\n            if <(_cloneID) = [Robot Constructor]> then\n                go to x: (0) y: (-100)\n                point in direction (90)\n                set size to (100) %\n                switch costume to (robot constructor v)\n                show\n                set [ghost v] effect to (100)\n                repeat (20)\n                    change [ghost v] effect by (-5)\n                    change y by (((0) - (y position)) / (10))\n                end\n                repeat (50)\n                    change y by (((0) - (y position)) / (10))\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [0 brightness in intro v]\nif <(_cloneID) = [black]> then\n    repeat (20)\n        change [brightness v] effect by (5)\n    end\n    wait (2) seconds\n    set [intro watched? v] to [1]\n    broadcast (MENU v)\n    wait (0.4) seconds\n    broadcast (DELETE INTRO CLONES v)\nend\n\nwhen I receive [delete intro clones v]\ndelete this clone\n\nwhen I receive [reset all v]\nset [intro watched? v] to [0]\n\n