first join with any move

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Anargas

Member
Feb 3, 2024
3
0
1
on first join:
on any move:
execute console command "lp user %player% permission set cutsscene.move"
send "" to player
send "©" to player
send "" to player
send "" to player
send "&fПриветствую тебя игрок, ты попал на новый кликер &bMegaMan" to player
wait 140 ticks
execute console command "tp %player% -55 142 211"
send "&fПроведем &bнебольшой&f туториал для тебя!" to player
wait 20 ticks
send "&fЭто — &bлидеры &fпо каким то критериям" to player
wait 40 ticks
execute console command "tp %player% -42 141 227"
send "&fВ инвентаре находятся такие разделы, как: &bквесты, прокачка и подарки" to player
wait 20 ticks
send "&fКогда ты на них нажмешь, появится &bраздел&f с &bвыбранной&f категорией." to player
wait 10 ticks
send "&fНа этом туториал закончен!" to player
send title "&aУдачи!" to player for 3 seconds
execute console command "lp user %player% permission unset cutsscene.move"
 

Attachments

  • 1706960164688.png
    1706960164688.png
    19 KB · Views: 162
and how to make my idea?
set the player's x coordinate, y coordinate, and z coordinate to a variable. (What I mean is, x has it's own variable, y has it's own variable, and z has it's own variable, then check if they are not equal to each other
 
on first join:
on any move:
execute console command "lp user %player% permission set cutsscene.move"
send "" to player
send "©" to player
send "" to player
send "" to player
send "&fПриветствую тебя игрок, ты попал на новый кликер &bMegaMan" to player
wait 140 ticks
execute console command "tp %player% -55 142 211"
send "&fПроведем &bнебольшой&f туториал для тебя!" to player
wait 20 ticks
send "&fЭто — &bлидеры &fпо каким то критериям" to player
wait 40 ticks
execute console command "tp %player% -42 141 227"
send "&fВ инвентаре находятся такие разделы, как: &bквесты, прокачка и подарки" to player
wait 20 ticks
send "&fКогда ты на них нажмешь, появится &bраздел&f с &bвыбранной&f категорией." to player
wait 10 ticks
send "&fНа этом туториал закончен!" to player
send title "&aУдачи!" to player for 3 seconds
execute console command "lp user %player% permission unset cutsscene.move"
Just a suggestion to make your code more effective, try not to use "execute console command" if you can help it. There's lots of expressions already in Skript that allow you to add/remove permissions from players and longer lines can mean slower code. Below I've provided a couple replacements for console commands to shorter expressions.

Code:
execute console command "tp %player% -55 142 211" # 49 characters (Yikes)
teleport player to location(-55, 142, 211) # 42 characters + easier to read (Better)
# Next one requires the add-on SkQuery
execute console command "lp user %player% permission set cutsscene.move # 71 characters (Could be better)
add "cutscene.move" to player's permissions # 43 characters (28 less than the previous)"