How to make a basic checkpoint system in Roblox Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 61

  • @Avercile172
    @Avercile172  9 หลายเดือนก่อน +8

    FOR ANY POSSIBLE CONFUSION THROUGH THE VIDEO:
    - GetChildren() : A method attached to any object that returns a table with the object's direct descendants (directly a child of, so for instance a child of a child would not be a direct descendant).
    - tonumber() : A global function that converts a string to a number so long as the string is in number form.
    - MoveTo() : A method attached to any model object (for now) that targets the position of the PrimaryPart of that model, and moves the primary parts position to the position inserted into the function as an argument.
    If you still have some confusion, leave a reply and I'll be glad to help out with anything!

    • @ManiMani-lj6ej
      @ManiMani-lj6ej 8 หลายเดือนก่อน

      How to make ai

    • @BoliYT
      @BoliYT 7 หลายเดือนก่อน

      how do hide the stage number people are on without breaking the script

    • @Lakon_Two
      @Lakon_Two 7 หลายเดือนก่อน +1

      can you change the name of checkpoints without it breaking or does it have to be just basic numbers
      example: AA1 or 1AA

    • @Avercile172
      @Avercile172  7 หลายเดือนก่อน +2

      @@Lakon_Two For your case, that would not result in what you want. As long as you write the actual stage number at the start or end, you can use a cool function called string.match(), and it allows you to single out a specific part of a string, and it either returns nil or the string you wanted to single out. So you can use that in your conditional and say if string.match(“string”, “st”) ~= nil bluh bluh bluh. Hopefully that helps you out thanks for watching bro.

    • @Lakon_Two
      @Lakon_Two 7 หลายเดือนก่อน

      @@Avercile172 thanks

  • @speedwerriormusic1282
    @speedwerriormusic1282 4 หลายเดือนก่อน +6

    Your tutoriol IS SO GOOD because you explain what you did unlike other yourubers who just tell you to copy paste

  • @the_formid6728
    @the_formid6728 4 หลายเดือนก่อน +6

    DUDE, why did you give up on your youtube journey, come back !

  • @Tyco1.0
    @Tyco1.0 4 หลายเดือนก่อน +1

    Please continue making your tutorials. You are one of the few where I understand what you are explaining

  • @Carnifier
    @Carnifier 9 หลายเดือนก่อน +2

    Thanks for all the videos you do, they're very helpful. Keep it up

  • @CheckIt0106
    @CheckIt0106 7 หลายเดือนก่อน +1

    This person is fire

  • @Kiehl19
    @Kiehl19 7 หลายเดือนก่อน +1

    yoo Avercile you should make a video where you script our ideas in the game

  • @apanda1128
    @apanda1128 2 หลายเดือนก่อน

    Finally a good tutorial

  • @LeoHakio
    @LeoHakio 3 หลายเดือนก่อน +3

    Pls come back Avecile :(

  • @lolbi-hg7cg
    @lolbi-hg7cg 4 หลายเดือนก่อน

    please come back avercile youre the only one that explains stuff in a way i can understand

  • @danonek07
    @danonek07 8 หลายเดือนก่อน +2

    i have one question, why can't you use hidden statistics? they are better for most cases, for example if we would make inventory, we wan't to make our own gui for showing items. I'm pretty sure you'll do data stores and gui soon, soo i'm simply curious, i never used leaderstats, maybe 6 years ago, but then i didn't know about gui :/
    anyways, have a Great day! and bye!

  • @Golden_Warrior87
    @Golden_Warrior87 3 หลายเดือนก่อน

    come back your videos are so helpful

  • @danonek07
    @danonek07 8 หลายเดือนก่อน +2

    you know, you show one bad practice, you shouldn't do instance.new(object,parent) but set parent after adding propertiess, this makes program don't overwrite propertiess when object in in game
    in addition, you can do this easier without loop, you can do simply:
    ```
    local target = checkpoints[Stage.Value].Position + Vector3.new(0,10,0) -- position above checkplate
    char:setPrimaryPartCFrame(CFrame.new(target))
    ```
    as the checkpoints name is equal to stage value
    Anyways nice tutorial, keep going

    • @Avercile172
      @Avercile172  8 หลายเดือนก่อน +1

      Alright for the first argument I didn’t know that was a way to improve performance, so I’ll be sure to do that from now on. As for the second, sure that’s a way to do it, but I just introduced in pairs loops so I felt inclined to use them. But anyways I appreciate the advice man.

    • @danonek07
      @danonek07 8 หลายเดือนก่อน +1

      @@Avercile172 no problem, everyone make mistakes. You take topic rarely explained, and i'm appreciate that. For next few videos you should explain Client to server, it's very important for graphics, you know, rendering animations, sounds ect. For me you should explain modules too, they are easy, but very usefull when it comes to making working mini-games or actual game. You can make video about vectors, but they need some math and stuff from hight school like trigonometry and functions sometimes, because then they are usefull for some stuff there, especially connected with raycasting. Gui scripting is important too, but it's easy and it's mainly scripting a lot of buttons.
      Another very importannt thing is linear interpolation and tweening, both are kindof the same, but lerps are better for physical objects and creating bezier, when tweening comes in handy when doing gui animations and some client-side part effects.
      Those was only some ideas what you can do, of course scripting that you showed will turn into many directions soon, such as vector-math, gui, visuals or data structures.
      Good luck with all of this, but i believe you'll do it, and finally make usefull scripting tutorial for more advanced stuff, keep going :}

    • @zekernz1019
      @zekernz1019 8 หลายเดือนก่อน +1

      yo can i have your discord? i wanna talk about how i can improve my scripting

    • @danonek07
      @danonek07 8 หลายเดือนก่อน +1

      @@zekernz1019 0786ideal is my nick

    • @danonek07
      @danonek07 8 หลายเดือนก่อน +1

      @@zekernz1019 you should practice a lot, and search dev forum, this is my advice

  • @vijayarathnakar6897
    @vijayarathnakar6897 4 หลายเดือนก่อน +1

    Come back plssss😢😢😢

  • @clublondoncommunity2628
    @clublondoncommunity2628 2 หลายเดือนก่อน +1

    hey guys how can I make it change color as a player touches it?

  • @gg-nv1mq
    @gg-nv1mq 5 หลายเดือนก่อน

    I man I loved your course and there is something that I can’t find well explained on TH-cam and I think you should do a video on it, the OOP pls man it’s really important (everybody says it)

  • @Yuji-j4j
    @Yuji-j4j 5 หลายเดือนก่อน +1

    how i fix that that if i dont spawn an any check point and the stages doesnt work help me out pls😊

  • @Yuji-j4j
    @Yuji-j4j 5 หลายเดือนก่อน +1

    its dont work the 2 step whit the stage i got 5 stage but i spawn randomly an any of them how i fix them pls help

  • @CardFrxend
    @CardFrxend 8 หลายเดือนก่อน +1

    Can you do like a video like how to script certain stuff like a sword with animation and explain how it works, thanks!

    • @danonek07
      @danonek07 8 หลายเดือนก่อน +1

      it's more complex, to script a good sword, you should use modules, on client they will make animations and sounds, when on server they'll calculate damage and cooldown, it's remote event securing too, soo it's harder than "click button to teleport part"

    • @cmptrtube
      @cmptrtube 8 หลายเดือนก่อน +1

      @@danonek07 I played a animation on local and also server event, but strangely playing animations in localscript isn't required to be client script or server event script, I even tested it out and all the other bots I spawned are seeing it. Very strange huh?

    • @danonek07
      @danonek07 8 หลายเดือนก่อน

      @@cmptrtubeyou have to preload animations on client, and then use loops ect to play them on npcs, you also should consider some optimization tricks

    • @cmptrtube
      @cmptrtube 8 หลายเดือนก่อน

      @@danonek07 What you mean by preload?

    • @cmptrtube
      @cmptrtube 8 หลายเดือนก่อน

      @@danonek07 And im not crazy, I just tested it myself, did you ever?

  • @CM99807
    @CM99807 6 หลายเดือนก่อน +1

    For some reason the change stage script isn't working for me I turned on the script analysis and The 3 "player" in
    if player then
    If player.leaderstats.Stage.Value == tonumber (v.name) -1 then
    player.leaderstats.Stage.Value += 1
    end
    end
    are underlined as warnings could you please help
    It's obviously not the whole script but it at least tells you which part I'm talking about

    • @vladtein49
      @vladtein49 6 หลายเดือนก่อน

      make sure that the local player above of this is all like in the video

  • @customgunz00
    @customgunz00 8 หลายเดือนก่อน +1

    good stuff

  • @RealDarkenYT
    @RealDarkenYT 4 หลายเดือนก่อน +1

    Avercile u ok?

  • @TheFakeResraf
    @TheFakeResraf 9 หลายเดือนก่อน +2

    hey for the ChangeStage script it said leaderstats is not a valid member of players.(my username)
    i named the leaderstat folder "leaderstats" tho

  • @Hittzo
    @Hittzo 9 หลายเดือนก่อน +1

    ok

  • @prostobobr123
    @prostobobr123 5 หลายเดือนก่อน +1

    Where is new videos on ur channel ?

  • @PixelVortex_YT
    @PixelVortex_YT 3 หลายเดือนก่อน +1

    Bro plsssss come back I need you to help me script plssss❤❤❤

  • @ImNoobAtRoblox
    @ImNoobAtRoblox 7 หลายเดือนก่อน +1

    W man

  • @not4sin
    @not4sin 6 หลายเดือนก่อน

    can u do more of script tut plsss

  • @Ijustwannalearnhowtoscript
    @Ijustwannalearnhowtoscript 3 หลายเดือนก่อน

    What about datastore

  • @machohamster1664
    @machohamster1664 6 หลายเดือนก่อน

    Im sub

  • @Rogerdog3000
    @Rogerdog3000 7 หลายเดือนก่อน

    Can you pleasse fix the discord link?

  • @gruiathegamer3620
    @gruiathegamer3620 6 หลายเดือนก่อน

    Pls post more script tutorial

  • @yokworried2696
    @yokworried2696 5 หลายเดือนก่อน

    bro i looked for a tut not a how to script

  • @fidosesk
    @fidosesk 8 หลายเดือนก่อน

    dont work

    • @baconph2578
      @baconph2578 7 หลายเดือนก่อน

      it works for me you gotta understand the flow of the script you are doing