☁Multiplayer roblox platformer v1.0

Instructions: Hey guys!!!\nI made my 2nd multiplayer game!!\n☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁\nTop loved!?\n\nGoal: ⭐ 100\n\nControls:\nArrows keys - move\nDown arrow - site down\nClick 1,2 and 3 to emote\n\nGoal:\nGo to the last level and collect the flag and go to the level1 and you will find a flag! Collect it and you will be raimbow! After you will see the stars! Collect all and go to the level 6 (party level)\n\nIf you see a Flying player, it is me! ;D\nIf you see a speedy player, it's a member of MRP team!\n\nPlease ❤️+⭐️ and follow!!!\n\n\nMRP team:\n\n@yassir-hadiri\n@zaid-hadiri2023\n@goat_error3\n@epicthemonk\n@the-cool-stickman\n@elmothesecond\n@amelia1832\n@leo56565656\n@the_greenling\n@dacoolkid47\n@izzymilly

@Stage\n\ndefine Player - Data\ndelete all of [player - data v]\nif <(-Welc..) = [1]> then\n    add [✨WELCOME✨] to [player - data v]\nelse\n    add [⭐WELCOME⭐] to [player - data v]\nend\nadd [] to [player - data v]\nif <(-Welc..) = [1]> then\n    add [-----✨Informations✨-----] to [player - data v]\nelse\n    add [-----⭐Informations⭐-----] to [player - data v]\nend\nadd (join [Player UID: ] (MY PLAYER UID)) to [player - data v]\nadd (join [Player x : ] (round ([x position v] of [game v]))) to [player - data v]\nadd (join [Player y : ] (round ([y position v] of [game v]))) to [player - data v]\nadd (join [Costume: ] ([costume name v] of [player v])) to [player - data v]\nif <([direction v] of [game v]) = [90]> then\n    add [Direction: ➡] to [player - data v]\nelse\n    add [Direction: ⬅] to [player - data v]\nend\nadd (join [Dealths: ] (Dealths)) to [player - data v]\nadd (join [Level: ] (level)) to [player - data v]\nadd [---------------------------------] to [player - data v]\nadd [] to [player - data v]\nif <(-Welc..) = [1]> then\n    add [-----✨The contest✨----] to [player - data v]\nelse\n    add [-----⭐The contest⭐----] to [player - data v]\nend\nadd (join [Stars: ] (Stars:)) to [player - data v]\nadd (join [Time left: ] (Time left:)) to [player - data v]\nif <[0] < (Flag)> then\n    add [Flag1 : ✔] to [player - data v]\nelse\n    add [Flag1 : ✖] to [player - data v]\nend\nif <[1] < (Flag)> then\n    add [Flag2 : ✔] to [player - data v]\nelse\n    add [Flag2 : ✖] to [player - data v]\nend\nadd [---------------------------------] to [player - data v]\nadd [] to [player - data v]\nif <(-Welc..) = [1]> then\n    add [----✨Flying mode✨----] to [player - data v]\nelse\n    add [----⭐Flying mode⭐----] to [player - data v]\nend\nif <(Level of player) = [1]> then\n    add [You're the creator :\)] to [player - data v]\n    if <(Flying mode) = [1]> then\n        add [Flying mode: ✔] to [player - data v]\n    else\n        add [Flying mode: ✖] to [player - data v]\n    end\nelse\n    add [You aren't the creator :\(] to [player - data v]\nend\nadd [---------------------------------] to [player - data v]\n\nwhen I receive [data - hide v]\nshow list [player - data v]\n\nwhen I receive [data - show v]\nhide list [player - data v]\n\nwhen I receive [start v]\nset [time left: v] to [60]\nshow list [player - data v]\nforever\n    set [-welc.. v] to [0]\n    wait (1) seconds\n    set [-welc.. v] to [1]\n    wait (1) seconds\nend\n\nwhen I receive [start v]\nforever\n    if <(level) = [1]> then\n        switch backdrop to (respawn v)\n    else\n        if <(level) = [6]> then\n            switch backdrop to (party v)\n            stop all sounds\n            repeat until <(level) = [1]>\n                play sound [party v] until done\n            end\n        else\n            switch backdrop to (normal v)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    Player - Data\n    if <(Time) = [1]> then\n        set [brightness v] effect to (-90)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nset volume to (100) %\nrepeat until <(level) = [6]>\n    play sound [Music v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow variable [active players v]\nbroadcast (Start v)\ngo to x: (-467) y: (0)\nforever\n    set [------------------t v] to (timer)\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    active players\nend\n\ndefine active players\nset [active players v] to [1]\nset [@ v] to [1]\nrepeat (length of (Player UIDs))\n    if <not <(item (@) of [player uids v]) = []>> then\n        change [active players v] by (1)\n    end\n    change [@ v] by (1)\nend\n\nwhen [timer v] > (------------------T)\nbroadcast (Fin v)\ngo to x: (-467) y: (0)\nforever\n    switch costume to (costume1 v)\n    go to [front v] layer\n    set x to ((x position) / (1.1))\nend\n\n@Player\n\nwhen I receive [set the platyer cxyd v]\nif <(Time) = [1]> then\n    set [brightness v] effect to (-50)\nelse\n    set [brightness v] effect to (0)\nend\npoint in direction (([direction v] of [game v]) - (180))\ngo to (game v)\nif <(Speed y) > [0.1]> then\n    switch costume to (jump1 v)\nelse\n    if <[0] > (Speed y)> then\n        switch costume to (jump2 v)\n    else\n        if <<(Speed x) > [-1]> and <(Speed x) < [1]>> then\n            set [walking v] to [0]\n        else\n            set [walking v] to [1]\n        end\n    end\nend\n\nwhen I receive [flag 2 ✔ v]\nforever\n    broadcast (Flag 2 ✔ v)\nend\n\nwhen I receive [flag 2 ✔ v]\nchange [color v] effect by (5)\nchange [@color v] by (5)\n\nwhen I receive [start v]\ngo to [front v] layer\nbroadcast (Cloud - Setup v)\nforever\n    add (x position) to [my values to send v]\n    add (y position) to [my values to send v]\n    add (direction) to [my values to send v]\n    add (costume [number v]) to [my values to send v]\n    add (@Color) to [my values to send v]\n    add (level) to [my values to send v]\n    add (Level of player) to [my values to send v]\n    broadcast (Cloud - Tick v)\nend\n\nwhen I receive [start v]\nclear graphic effects\nset [@color v] to [0]\nforever\n    if <(Walking) = [1]> then\n        if <(Speed y) = [0]> then\n            switch costume to (run1 v)\n            repeat (3)\n                wait (0.01) seconds\n                next costume\n            end\n            wait (0.01) seconds\n        end\n    else\n        if <(Flying mode) = [0]> then\n            if <key (1 v) pressed?> then\n                repeat until <<<key (any v) pressed?> and <not <key (1 v) pressed?>>> and <not <((Speed x) + (Speed y)) = [0]>>>\n                    switch costume to (dance v)\n                    repeat (2)\n                        wait (0.01) seconds\n                        next costume\n                    end\n                    wait (0.01) seconds\n                end\n            else\n                if <key (down arrow v) pressed?> then\n                    switch costume to (sit down v)\n                else\n                    if <key (2 v) pressed?> then\n                        switch costume to (nénéné v)\n                    else\n                        if <key (3 v) pressed?> then\n                            switch costume to (sad v)\n                        else\n                            switch costume to (stand v)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nshow\nforever\n    if <(Flying mode) = [1]> then\n        switch costume to (flying v)\n        wait (0.1) seconds\n        switch costume to (flying2 v)\n        wait (0.1) seconds\n    end\nend\n\nwhen [a v] key pressed\nif <(Level of player) = [1]> then\n    broadcast (Record v)\n    hide\nend\n\n@Cloud players\n\ndefine Write number (val) to encoded string\nset [val v] to (round (val))\nif <(val) < [0]> then\n    set [val v] to (join [0] ([abs v] of (val) ))\nend\nset [encoded string v] to (join (Encoded string) (join (length of (val)) (val)))\n\ndefine VAL= Read number from "encoded string"\nset [val v] to []\nrepeat (letter (Encoded Idx) of (Encoded string))\n    change [encoded idx v] by (1)\n    set [val v] to (join (val) (letter (Encoded Idx) of (Encoded string)))\nend\nchange [encoded idx v] by (1)\nif <(letter (1) of (val)) = [0]> then\n    set [val v] to ((0) - (val))\nend\n\nwhen I receive [cloud - setup v]\nhide\nset [cloud tick v] to [0]\ndelete all of [my values to send v]\ndelete all of [cloud values v]\ndelete all of [player uids v]\ndelete all of [player data v]\nadd (join [c] (☁ CLOUD1)) to [cloud values v]\nadd (join [c] (☁ CLOUD2)) to [cloud values v]\nadd (join [c] (☁ CLOUD3)) to [cloud values v]\nadd (join [c] (☁ CLOUD4)) to [cloud values v]\nadd (join [c] (☁ CLOUD5)) to [cloud values v]\nadd (join [c] (☁ CLOUD6)) to [cloud values v]\nadd (join [c] (☁ CLOUD7)) to [cloud values v]\nadd (join [c] (☁ CLOUD8)) to [cloud values v]\nset [my player uid v] to (pick random (1) to (9999999))\nset [player # v] to []\n\nwhen I receive [cloud - tick v]\nif <(player #) > []> then\n    Player clone tick\n    stop [this script v]\nend\nchange [cloud tick v] by (1)\nProcess Cloud item [1] value (join [c] (☁ CLOUD1))\nProcess Cloud item [2] value (join [c] (☁ CLOUD2))\nProcess Cloud item [3] value (join [c] (☁ CLOUD3))\nProcess Cloud item [4] value (join [c] (☁ CLOUD4))\nProcess Cloud item [5] value (join [c] (☁ CLOUD5))\nProcess Cloud item [6] value (join [c] (☁ CLOUD6))\nProcess Cloud item [7] value (join [c] (☁ CLOUD7))\nProcess Cloud item [8] value (join [c] (☁ CLOUD8))\nSent my Cloud data after [4] Ticks\n\ndefine Sent my Cloud data after (count) Ticks\nif <((CLOUD TICK) mod (count)) > [0]> then\n    stop [this script v]\nend\nset [encoded string v] to []\nWrite number (MY PLAYER UID) to encoded string\nrepeat (length of [my values to send v])\n    Write number (item (1) of [my values to send v]) to encoded string\n    delete (1) of [my values to send v]\nend\nset [my channel v] to (pick random (1) to (length of [cloud values v]))\nif <(MY CHANNEL) < [5]> then\n    if <(MY CHANNEL) < [3]> then\n        if <(MY CHANNEL) < [2]> then\n            set [☁ cloud1 v] to (Encoded string)\n        else\n            set [☁ cloud2 v] to (Encoded string)\n        end\n    else\n        if <(MY CHANNEL) < [4]> then\n            set [☁ cloud3 v] to (Encoded string)\n        else\n            set [☁ cloud4 v] to (Encoded string)\n        end\n    end\nelse\n    if <(MY CHANNEL) < [7]> then\n        if <(MY CHANNEL) < [6]> then\n            set [☁ cloud5 v] to (Encoded string)\n        else\n            set [☁ cloud6 v] to (Encoded string)\n        end\n    else\n        if <(MY CHANNEL) < [8]> then\n            set [☁ cloud7 v] to (Encoded string)\n        else\n            set [☁ cloud8 v] to (Encoded string)\n        end\n    end\nend\n\ndefine Process Cloud item (witch?) value (new value)\nif <(new value) = (item (witch?) of [cloud values v])> then\n    stop [this script v]\nend\nreplace item (witch?) of [cloud values v] with (new value)\nset [encoded string v] to (new value)\nset [encoded idx v] to [2]\nVAL= Read number from "encoded string"\nif <<(val) < [1]> or <(val) = (MY PLAYER UID)>> then\n    stop [this script v]\nend\nset [player # v] to (item # of (val) in [player uids v])\nif <(player #) = [0]> then\n    set [player # v] to (item # of [] in [player uids v])\n    if <(player #) = [0]> then\n        add (val) to [player uids v]\n        add [] to [player data v]\n        set [player # v] to (length of [player data v])\n        create clone of (_myself_ v)\n    else\n        replace item (player #) of [player uids v] with (val)\n    end\nend\nreplace item (player #) of [player data v] with (new value)\nset [player # v] to []\n\ndefine Player clone tick\nif <(Encoded Idx) > (length of (Encoded string))> then\n    Get next data packet\n    if <(Encoded string) = []> then\n        change [inactive v] by (1)\n        if <(Inactive) > [150]> then\n            replace item (player #) of [player uids v] with []\n            hide\n            switch costume to (n v)\n        end\n        stop [this script v]\n    end\nend\nset [inactive v] to [0]\nVAL= Read number from "encoded string"\nset x to (val)\nVAL= Read number from "encoded string"\nset y to (val)\nVAL= Read number from "encoded string"\npoint in direction (val)\nVAL= Read number from "encoded string"\nswitch costume to (val)\nVAL= Read number from "encoded string"\nset [color v] effect to (val)\nVAL= Read number from "encoded string"\nset [clone scene # v] to (val)\nif <(clone scene #) = (level)> then\n    show\nelse\n    hide\nend\nVAL= Read number from "encoded string"\nif <(val) > [0]> then\n    if <(val) = [1]> then\n        say [⭐Creator: @yassir-hadiri]\n    else\n        say (join [⭐member: @] (item (val) of [✨mrp team✨ v]))\n    end\nend\n\ndefine Get next data packet\nset [encoded string v] to (item (player #) of [player data v])\nreplace item (player #) of [player data v] with []\nset [encoded idx v] to [2]\nVAL= Read number from "encoded string"\n\nwhen I receive [scene - change v]\nif <(player #) > []> then\n    if <(clone scene #) = (level)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Time) = [1]> then\n        set [brightness v] effect to (-50)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nset [time v] to [0]\nswitch costume to (n v)\n\n@Game\n\ndefine reset  X (x) Y (y)\ngo to x: (x) y: (y)\nset rotation style [left-right v]\npoint in direction (90)\n\ndefine Speed (speed) Friction (friction) Gravity (gravity) Jump height (jump height)\nchange [speed y v] by (gravity)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n    change [speed x v] by (speed)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [speed x v] by ((speed) * (-1))\n    point in direction (-90)\nend\nset [speed x v] to ((Speed x) * (friction))\nchange x by (Speed x)\nrepeat (8)\n    change y by <touching (level v)?>\nend\nif <touching (level v)?> then\n    change x by ((0) - (Speed x))\n    change y by (-8)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        set [speed y v] to ((jump height) - (3))\n        set [speed x v] to ((5) - ((14) * <[0] < (Speed x)>))\n    end\nend\nchange y by (Speed y)\nif <touching (level v)?> then\n    change y by ((Speed y) * (-1))\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n    if <touching (level v)?> then\n        set [speed y v] to (jump height)\n    end\nend\nchange y by (1)\n\nwhen I receive [player - tick v]\nif <(Flying mode) = [0]> then\n    if <(Key) = [0]> then\n        Speed (@Speed) Friction [0.89] Gravity [-1] Jump height (@Jump force)\n        if <<(y position) < [-194]> or <touching (shots v)?>> then\n            change [dealths v] by (1)\n            set [key v] to [1]\n            set rotation style [all around v]\n            set [speed y v] to [10]\n            start sound [Crunch v]\n            set [key v] to [0]\n            reset  X (SPAWN X) Y [100]\n        end\n        if <touching (high y v)?> then\n            set [speed y v] to [15]\n            broadcast (Bounce v)\n        end\n    end\nelse\n    if <key (up arrow v) pressed?> then\n        change y by (10)\n    end\n    if <key (down arrow v) pressed?> then\n        change y by (-10)\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (10)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-10)\n    end\n    broadcast (Flying v)\nend\n\nwhen I receive [next level? v]\nif <<[239] < (x position)> and <not <(level) = [6]>>> then\n    if <<not <(level) = [5]>> or <<(level) = [5]> and <(Stars:) = [15]>>> then\n        broadcast (Scene - Change v)\n        start sound [Wood Tap v]\n        set [spawn x v] to [-220]\n        change [level v] by (1)\n        reset  X (SPAWN X) Y (y position)\n    end\nend\nif <<(x position) < [-239]> and <<not <(level) = [6]>> and <not <(level) = [1]>>>> then\n    broadcast (Scene - Change v)\n    start sound [Wood Tap v]\n    set [spawn x v] to [220]\n    change [level v] by (-1)\n    reset  X (SPAWN X) Y (y position)\nend\n\nwhen I receive [start v]\nforever\n    if <(Level of player) = [0]> then\n        set [@jump force v] to [15]\n        set [@speed v] to [1]\n    else\n        if <key (y v) pressed?> then\n            set [@jump force v] to [15]\n            set [@speed v] to [1]\n        else\n            set [@jump force v] to [18]\n            set [@speed v] to [3]\n        end\n    end\nend\n\nwhen I receive [start v]\nset [flying mode v] to [0]\nif <(username) = [yassir-hadiri]> then\n    forever\n        wait until <key (space v) pressed?>\n        set [flying mode v] to [1]\n        wait (1) seconds\n        wait until <key (space v) pressed?>\n        set [flying mode v] to [0]\n        wait (1) seconds\n    end\nelse\n    forever\n        if <(Flying mode) = [1]> then\n            set [flying mode v] to [0]\n        end\n    end\nend\n\nwhen I receive [start v]\nshow\nset [spawn x v] to [-200]\nreset  X (SPAWN X) Y [100]\nset [key v] to [0]\nset [level v] to [1]\nforever\n    set [ghost v] effect to (100)\n    broadcast (Set the platyer CXYD v)\n    broadcast (Player - Tick v)\n    broadcast (Next level? v)\nend\n\nwhen I receive [start v]\nset [dealths v] to [0]\nforever\n    if <[✨mrp team✨ v] contains (username)?> then\n        set [level of player v] to (item # of (username) in [✨mrp team✨ v])\n    else\n        set [level of player v] to [0]\n    end\nend\n\n@Level\n\nwhen I receive [start v]\nif <(Level of player) = [1]> then\n    repeat until <key (a v) pressed?>\n        if <(level) = [5]> then\n            if <(Stars:) = [15]> then\n                switch costume to (l5m v)\n                hide variable [stars: v]\n                hide variable [time left: v]\n            else\n                switch costume to (l5 v)\n            end\n        else\n            switch costume to (join [L] (level))\n        end\n        if <(Time) = [1]> then\n            set [brightness v] effect to (-50)\n        else\n            set [brightness v] effect to (0)\n        end\n    end\n    forever\n        switch costume to (-Level R)\n    end\nelse\n    forever\n        if <(level) = [5]> then\n            if <(Stars:) = [15]> then\n                switch costume to (l5m v)\n                hide variable [stars: v]\n                hide variable [time left: v]\n            else\n                switch costume to (l5 v)\n            end\n        else\n            switch costume to (join [L] (level))\n        end\n        if <(Time) = [1]> then\n            set [brightness v] effect to (-50)\n        else\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\n@Flags\n\nwhen I start as a clone\nclear graphic effects\nforever\n    set size to (50) %\n    switch costume to (flag v)\n    if <(Id) = [1]> then\n        if <(level) = [5]> then\n            change [color v] effect by (1)\n            show\n            go to x: (190) y: (38)\n            if <touching (game v)?> then\n                broadcast (Flag1 ✔ v)\n                Flag\n                delete this clone\n            end\n        else\n            hide\n        end\n    else\n        if <(level) = [1]> then\n            change [color v] effect by (25)\n            show\n            go to x: (-90) y: (-23)\n            if <touching (game v)?> then\n                broadcast (Flag 2 ✔ v)\n                Flag\n                delete this clone\n            end\n        else\n            hide\n        end\n    end\nend\n\ndefine Flag\nstart sound [Chekpoint v]\nrepeat (50)\n    change y by (2)\n    change size by (2)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [flag1 ✔ v]\nset [flag v] to [1]\nif <(costume [name v]) = [N]> then\n    set [id v] to [2]\n    create clone of (_myself_ v)\nend\n\nwhen I receive [flag 2 ✔ v]\nset [flag v] to [2]\n\nwhen I receive [start v]\nhide\nswitch costume to (n v)\nset [flag v] to [0]\nset [id v] to [1]\ncreate clone of (_myself_ v)\n\n@Like, Love and Follow\n\nwhen I receive [start v]\nhide\nif <not <(username) = [yassir-hadiri]>> then\n    forever\n        wait (pick random (15) to (30)) seconds\n        switch costume to (like, love and follow v)\n        go to x: (70) y: (100)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (3) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\nend\n\n@Shots\n\nwhen I receive [start v]\nif <(Level of player) = [1]> then\n    repeat until <key (a v) pressed?>\n        switch costume to (join [L] (level))\n        go to (level v)\n        if <(level) = [6]> then\n            hide\n        else\n            show\n        end\n    end\n    forever\n        switch costume to (join [L] (-Level R))\n        go to (level v)\n        if <(-Level R) = [6]> then\n            hide\n        else\n            show\n        end\n    end\nelse\n    forever\n        switch costume to (join [L] (level))\n        go to (level v)\n        if <(level) = [6]> then\n            hide\n        else\n            show\n        end\n    end\nend\n\n@Stars\n\ndefine Create clone of myself: x (x) y (y) Level (level)\nset [-x v] to (x)\nset [-y v] to (y)\nset [-l v] to (level)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <(Time) = [1]> then\n        set [brightness v] effect to (-50)\n    else\n        set [brightness v] effect to (0)\n    end\n    turn right (1) degrees\n    go to x: (-x) y: (-y)\n    set size to ((75) + ((10) * ([cos v] of (((timer) - (2)) * (200)) ))) %\n    if <(level) = (-l)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [flag 2 ✔ v]\nswitch costume to (star2 v)\n\nwhen I start as a clone\nset size to (75) %\nforever\n    if <touching (game v)?> then\n        broadcast (Star v)\n        start sound [collect v]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (2)\n        end\n        hide\n        \n    end\nend\n\nwhen I receive [star v]\nchange [stars: v] by (0.0625)\n\nwhen I receive [l v]\ndelete this clone\n\nwhen I receive [start v]\nswitch costume to (star v)\nhide\nhide variable [stars: v]\nhide variable [time left: v]\nset [stars: v] to [0]\nforever\n    if <(costume [number v]) = [2]> then\n        show variable [time left: v]\n        show variable [stars: v]\n        set [time left: v] to [60]\n        Create clone of myself: x [7] y [103] Level [1]\n        Create clone of myself: x [21] y [-56] Level [1]\n        Create clone of myself: x [155] y [6] Level [1]\n        Create clone of myself: x [-40] y [53] Level [2]\n        Create clone of myself: x [220] y [-58] Level [2]\n        Create clone of myself: x [-152] y [28] Level [3]\n        Create clone of myself: x [-26] y [17] Level [3]\n        Create clone of myself: x [162] y [-58] Level [3]\n        Create clone of myself: x [-175] y [117] Level [4]\n        Create clone of myself: x [-36] y [34] Level [4]\n        Create clone of myself: x [80] y [-56] Level [4]\n        Create clone of myself: x [152] y [115] Level [4]\n        Create clone of myself: x [122] y [-51] Level [5]\n        Create clone of myself: x [6] y [99] Level [5]\n        Create clone of myself: x [184] y [136] Level [5]\n        repeat (60)\n            wait (1) seconds\n            change [time left: v] by (-1)\n        end\n        wait until <(costume [number v]) = [1]>\n    end\nend\n\n@Messages\n\nwhen I receive [start v]\nhide\ngo to [front v] layer\nwait (1) seconds\nset [ghost v] effect to (50)\nshow\nif <(username) = []> then\n    switch costume to (sign in v)\nelse\n    forever\n        if <(Active players) = [1]> then\n            show\n            switch costume to (alone v)\n        else\n            hide\n        end\n    end\nend\n\n@Message\n\nwhen I receive [flag 2 ✔ v]\nset [@@@ v] to [1]\n\nwhen I receive [flag1 ✔ v]\nswitch costume to (a v)\n\nwhen I receive [start v]\nforever\n    if <(@@@) = [1]> then\n        hide\n        wait (0.1) seconds\n        wait until <<(Stars:) = [15]> or <(Time left:) = [0]>>\n        wait (0.1) seconds\n        if <(Time left:) > [0]> then\n            broadcast (Next levels v)\n            switch costume to (arrow v)\n        else\n            switch costume to (:\( v)\n        end\n        hide variable [time left: v]\n        hide variable [stars: v]\n        show\n        \n    end\nend\n\nwhen I receive [start v]\nshow\nset [@@@ v] to [0]\nswitch costume to (b2 v)\nforever\n    if <(costume [name v]) = [:\(]> then\n        broadcast (L v)\n        hide variable [time left: v]\n        hide variable [stars: v]\n    end\n    go to x: (192) y: (-34)\n    if <(level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Food\n\nwhen I receive [food - lol v]\nswitch costume to (☁ Food)\ngo to [back v] layer\nshow\nforever\n    go to x: (-38) y: (-50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        if <(Time) = [1]> then\n            set [brightness v] effect to (-40)\n        else\n            set [brightness v] effect to (0)\n        end\n    end\n    if <(☁ Food) > [3]> then\n        set [☁ food v] to [1]\n    end\n    if <not <(costume [number v]) = (☁ Food)>> then\n        switch costume to (☁ Food)\n        start sound [pop v]\n    end\nend\n\nwhen this sprite clicked\nchange [☁ food v] by (1)\n\nwhen I receive [start v]\nforever\n    if <(level) = [6]> then\n        broadcast (Food - Lol v)\n    else\n        hide\n    end\nend\n\n@Buttons\n\nwhen I start as a clone\nset [-clicked v] to [0]\nforever\n    show\n    if <(costume [number v]) = [1]> then\n        go to x: (214) y: (-159)\n    else\n        if <(costume [number v]) = [2]> then\n            go to x: (160) y: (-159)\n        else\n            go to x: (105) y: (-159)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(-Clicked) = [0]>> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <(-Clicked) = [1]> then\n        set [brightness v] effect to (-20)\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    if <(-Clicked) = [0]> then\n        broadcast (Data - Show v)\n        set [-clicked v] to [1]\n    else\n        broadcast (Data - Hide v)\n        set [-clicked v] to [0]\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        if <(-Clicked) = [0]> then\n            set [-clicked v] to [1]\n            set [time v] to [1]\n        else\n            set [-clicked v] to [0]\n            set [time v] to [0]\n        end\n    else\n        if <(-Clicked) = [0]> then\n            set [-clicked v] to [1]\n            hide list [✨mrp team✨ v]\n        else\n            set [-clicked v] to [0]\n            show list [✨mrp team✨ v]\n        end\n    end\nend\n\ndefine Create clones (#)\nrepeat (#)\n    create clone of (_myself_ v)\n    next costume\nend\n\nwhen I receive [start v]\nhide\nswitch costume to (data v)\nswitch costume to ((costume [number v]) - (1))\nCreate clones [3]\n\nwhen I receive [start v]\ndelete this clone\n\n@Team\n\ndefine Add (data) To "Letters"\ndelete all of [letters v]\nrepeat (length of (data))\n    add (letter ((length of [letters v]) - (-1)) of (data)) to [letters v]\nend\n\ndefine Uncode (name)\nset [--uncoded v] to []\nset [--idx v] to [1]\nrepeat (length of (name))\n    set [--uncoded v] to (join (--Uncoded) (join (length of (item # of (letter (--Idx) of (name)) in [letters v])) (item # of (letter (--Idx) of (name)) in [letters v])))\n    change [--idx v] by (1)\nend\n\nUncode []\nadd (--Uncoded) to [team \(uncoded\) v]\n\ndefine Decode (name)\nset [--idx v] to [1]\nset [--name \(decode\) v] to []\nforever\n    if <(letter (--Idx) of (name)) = []> then\n        stop [this script v]\n    else\n        if <(letter (--Idx) of (name)) = [1]> then\n            set [--name \(decode\) v] to (join (--Name \(Decode\)) (item (letter ((--Idx) + (1)) of (name)) of [letters v]))\n            change [--idx v] by (2)\n        else\n            set [--name \(decode\) v] to (join (--Name \(Decode\)) (item (join (letter ((--Idx) + (1)) of (name)) (letter ((--Idx) + (2)) of (name))) of [letters v]))\n            change [--idx v] by (3)\n        end\n    end\nend\n\ndefine Decoding the list\ndelete all of [✨mrp team✨ v]\nset [---idx2 v] to [1]\nrepeat (length of [team \(uncoded\) v])\n    Decode (item (---Idx2) of [team \(uncoded\) v])\n    add (--Name \(Decode\)) to [✨mrp team✨ v]\n    change [---idx2 v] by (1)\nend\n\ndefine MRP Team\ndelete all of [team \(uncoded\) v]\nadd [22511219219192182631811141921819] to [team \(uncoded\) v]\nadd [2261119142631811141921819255253255256] to [team \(uncoded\) v]\nadd [172151122026415218218215218256] to [team \(uncoded\) v]\nadd [1521619132201815213215214211] to [team \(uncoded\) v]\nadd [220181526313215215212263219220191321121311214] to [team \(uncoded\) v]\nadd [152122132152201815219151321521414] to [team \(uncoded\) v]\nadd [11213152121911254261256255] to [team \(uncoded\) v]\nadd [21215215258259258259258259258259] to [team \(uncoded\) v]\nadd [22018152641721815152142121921417] to [team \(uncoded\) v]\nadd [1411132152152122111914257260] to [team \(uncoded\) v]\nadd [1922622622521319212212225] to [team \(uncoded\) v]\nDecoding the list\n\nwhen flag clicked\nforever\n    show list [✨mrp team✨ v]\n    if <(username) = [yassir-hadiri]> then\n        show list [team \(uncoded\) v]\n    end\n    wait (0.5) seconds\n    wait until <key (f v) pressed?>\n    hide list [✨mrp team✨ v]\n    if <(username) = [yassir-hadiri]> then\n        hide list [team \(uncoded\) v]\n    end\n    wait (0.5) seconds\n    wait until <key (f v) pressed?>\nend\n\nwhen flag clicked\nset [--uncoded v] to []\nset [--name \(decode\) v] to []\nAdd [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_] To "Letters"\nMRP Team\n\nwhen flag clicked\ndelete all of [black team >:\( v]\nadd [PIKACHU-THE-1ST/] to [black team >:\( v]\nadd [PIKACHU-THE-2ND] to [black team >:\( v]\nadd [PT1-OS_ANAMATIONS] to [black team >:\( v]\nif <[black team >:\( v] contains (username)?> then\n    stop [all v]\nend\n\n@MRP message\n\nwhen I receive [join - yes v]\nif <(costume [number v]) = [3]> then\n    show\n    hide variable [active players v]\n    show list [✨mrp team✨ v]\n    show list [player - data v]\nend\n\nwhen I receive [join - no v]\nif <(costume [number v]) = [3]> then\n    hide\n    show variable [active players v]\nend\n\nwhen I start as a clone\nhide\ngo to [front v] layer\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (10)\n    switch costume to (form v)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [3]> then\n    hide\n    show variable [active players v]\nend\n\nwhen I receive [start v]\ncreate clone of (_myself_ v)\nforever\n    show\n    go to x: (18) y: (-159)\n    if <(Level of player) = [0]> then\n        switch costume to (you can join v)\n        if <touching (mouse-pointer v)?> then\n            set [color v] effect to (30)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                broadcast (Join - Yes v)\n                wait (0.5) seconds\n                wait until <mouse down?>\n                set [color v] effect to (0)\n                broadcast (Join - No v)\n                wait (0.5) seconds\n            end\n        else\n            set [color v] effect to (0)\n        end\n    else\n        switch costume to (member v)\n    end\nend\n\nwhen I receive [start v]\ndelete this clone\n\n@Record\n\nwhen flag clicked\ndelete all of [record v]\nhide\nif <(Level of player) = [1]> then\n    set [-level r v] to [1]\n    repeat until <key (a v) pressed?>\n        add ([x position v] of [player v]) to [record v]\n        add ([y position v] of [player v]) to [record v]\n        add ([direction v] of [player v]) to [record v]\n        add ([costume # v] of [player v]) to [record v]\n        add (level) to [record v]\n        add (Color) to [record v]\n    end\n    set [--idx v] to [0]\n    show\n    repeat ((length of [record v]) / (6))\n        change [--idx v] by (1)\n        set x to (item (--Idx) of [record v])\n        change [--idx v] by (1)\n        set y to (item (--Idx) of [record v])\n        change [--idx v] by (1)\n        point in direction (item (--Idx) of [record v])\n        change [--idx v] by (1)\n        switch costume to (item (--Idx) of [record v])\n        change [--idx v] by (1)\n        set [-level r v] to (item (--Idx) of [record v])\n        change [--idx v] by (1)\n        set [color v] effect to (item (--Idx) of [record v])\n    end\n    stop [all v]\nend\n\n@High Y\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nif <(Level of player) = [1]> then\n    repeat until <key (a v) pressed?>\n        switch costume to (join [L] (level))\n        show\n    end\n    forever\n        switch costume to (join [L] (-Level R))\n        show\n    end\nelse\n    forever\n        switch costume to (join [L] (level))\n        show\n    end\nend\n\nwhen I receive [bounce v]\nstart sound [Bounce v]\nrepeat (5)\n    set [speed x v] to [0]\n    change y by (-1)\nend\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    if <(Time) = [1]> then\n        set [brightness v] effect to (-50)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Effect\n\nwhen flag clicked\nhide\n\nwhen I receive [fin v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\n\n