Mobile Buttons & Context Input (ContextActionService) - Roblox Advanced Scripting #14

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

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

  • @BrawlDevRBLX
    @BrawlDevRBLX  ปีที่แล้ว +21

    Apologies for the weird edits like speedups and corner zooms. Something happened during the last bits of editing so I just left them as is lol

    • @EpicPico0625
      @EpicPico0625 11 หลายเดือนก่อน +2

      scrill issue
      (Also make a tutorial series about Optimizing, I personally think this is the hardest stage of developing)

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

      The speed up at creating the tool there made sense though, If you don't know how to do that by now idk what to say to you

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

      can i do this without a tool?

    • @darkbard7
      @darkbard7 10 วันที่ผ่านมา

      how do i change the size of it?

  • @mordevifer4461
    @mordevifer4461 11 หลายเดือนก่อน +4

    Really liked the tutorial, it was easy to understand and it didn’t felt long at all; it definitely deserves more recognition. Keep up the good work :)

  • @NotDav28
    @NotDav28 10 หลายเดือนก่อน +6

    I like this guy. He explains the context most of the time at the beginning of the video on what we are about to learn, and then he explains why it happens. Underrated tutorial playlist, Idk why noone liked the video.

  • @mafusaku
    @mafusaku ปีที่แล้ว +7

    NEEDED THIS, THANK U SO MUCH I WAS CONFUSED ON SO LONG!

  • @PurplemanReal1
    @PurplemanReal1 ปีที่แล้ว +5

    Ok hold on why am I actually learning rn, loads of TH-cam videos I watch of scripting, I can't understand as they don't know what they are saying themselves but you actually know what you are saying and doing which is why you so good at explaining this. This allows me/the viewers to learn so well. I must thank you.

    • @jzmil1
      @jzmil1 24 วันที่ผ่านมา

      u still script? how its going?

  • @brezow
    @brezow ปีที่แล้ว +3

    beautiful video like always

  • @nishantbista6353
    @nishantbista6353 11 หลายเดือนก่อน +23

    i ain't go ly, this is better than dev king vid about the contextactionservice

  • @GrindGamerX
    @GrindGamerX ปีที่แล้ว +2

    Love tutorials/videos

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

    these videos are sick man if i ever get my future games to pop off ill put you in my credits :)

  • @Botmatics
    @Botmatics ปีที่แล้ว +3

    This might sound a little far fetched but, will there by any chance come out a video about datastores? For example if you make a value based game and you want to save points you have gained when you left the experience to set to the valu you had when you left the game or if the game crashed or closes itself. Its just something i would find very useful and a pretty big part of making a value-based game.
    Love your videos buddy

    • @BrawlDevRBLX
      @BrawlDevRBLX  ปีที่แล้ว

      For sure! Datastores will be an important concept to discuss, especially for people who are new to them!

    • @Botmatics
      @Botmatics ปีที่แล้ว

      Thats great!@@BrawlDevRBLX

    • @Masqueradix
      @Masqueradix ปีที่แล้ว +1

      Looking forward to it as well

  • @zackiz9830
    @zackiz9830 ปีที่แล้ว +1

    YOUR AMAZING IVE BEEN WITH YOU SINCE THE START AND HELPED ME ALOTM PLEASE REMEMBER ME WHE N YOUR POPULAR

  • @RobloxDevNewbi
    @RobloxDevNewbi 11 หลายเดือนก่อน +1

    Amazing video!

  • @realsuperjuice
    @realsuperjuice ปีที่แล้ว +1

    this is so helpful! tysm

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

    Nice Video Man!

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

    The best part is the button color, Thank you Brawl.

  • @Superdashytb
    @Superdashytb ปีที่แล้ว

    Thx, you help me a lot

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

    Explained super well, thanks!

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

    Thank you so much BrawlDev, you did an amazing job as per usual. Keep it up, man.

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

      I recommend slowing down with the videos so you can apply what you learn so you don't forget. Make sure you fully understand each concept before moving to the next one. 😅

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

      @@BrawlDevRBLX I am lol; thank you so much

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

    THANK YOUUUU

  • @MCS299
    @MCS299 4 หลายเดือนก่อน

    Ultra helpful video, i thought uis and context action service were the same

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

    I tried to practice the things i've learned in this video !
    Basic sprint and Crouch ( Without animation, just makes u slow) with scripts
    local player = game.Players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local isSlowed = false -- Variável para alternar entre estado normal e lento
    local contextInputService = game:GetService("ContextActionService")
    -- Função para correr ao pressionar Shift
    local function run(actionName, inputState)
    if inputState == Enum.UserInputState.Begin then
    humanoid.WalkSpeed = 32
    elseif inputState == Enum.UserInputState.End then
    humanoid.WalkSpeed = 16
    end
    end
    -- Função para alternar entre velocidade lenta e normal com Ctrl
    local function toggleSlow(actionName, inputState)
    if inputState == Enum.UserInputState.Begin then
    if isSlowed then
    humanoid.WalkSpeed = 16
    humanoid.HipHeight = 1.35 / 2
    else
    humanoid.WalkSpeed = 8
    humanoid.HipHeight = 1.35
    end
    isSlowed = not isSlowed -- Alterna o estado
    end
    end
    -- Bind das ações
    contextInputService:BindAction("runAction", run, false, Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift)
    contextInputService:BindAction("toggleSlowAction", toggleSlow, false, Enum.KeyCode.LeftControl, Enum.KeyCode.RightControl)

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

      script muito interessante!

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

    6:27 helped

  • @theMagiDev
    @theMagiDev 9 หลายเดือนก่อน

    this is amazing, but i have a question
    how do you make holding buttons? for example, hold a button/key to block, and release to stop blocking

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

    Thanks bro

  • @ZyanFernando
    @ZyanFernando 11 หลายเดือนก่อน

    :BindActionAtPriority() are like when playing gta5 and press F to get in the car, our character leaves all the work and just goes straight to the driving seat.

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

    thank youuuu I hope you get 100k subs 1 day because without you i would have never learnt Any scripting and just copy paste from other ppls

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

    Can you make a video or send a script on how to use a weapon on mobile (like tap the screen to kill with a sword)

  • @الخلبوصة
    @الخلبوصة 5 หลายเดือนก่อน

    YES

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

    Well, it was pretty hard to understand the main idea at the start of the video, but anyways i got it, thanks!

  • @SkyefabgvYT
    @SkyefabgvYT 11 หลายเดือนก่อน

    Can you make a tutorial how to make a mobile button but when I press it it does the same thing when I press on the computer like if I press Q on my computer it brings up a munu but on mobile I can't since I don't know how to do that. Can you make a video pls

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

      that's what he just showed. bind action to function, assign keys

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

      you can make a function that opens your menu UI and link it to the button

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

    When did you teach UDim2? 23:24

    • @amceyi3amce878
      @amceyi3amce878 8 วันที่ผ่านมา

      I do not know. But, probably in his gui tutorial playlist

  • @unkownz3k919
    @unkownz3k919 วันที่ผ่านมา

    does anyone know if you can make that button from the tool appear bigger, so it can become easier to tap??

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

    currently half way through the video, but i literally cannot figure out why to use this over if statements and UserInputService. maybe when i finish the video itll make sense

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

      okay... so its only for mobile buttons..?

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

    how do you make it so it looks like the jump button?

  • @Kessokubandtactical6383
    @Kessokubandtactical6383 4 หลายเดือนก่อน

    How to scale buttons??

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

    why not delete unused scripts instead?

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

      Because he wanted us to copy code from the original script first

  • @bramvenhorst2028
    @bramvenhorst2028 ปีที่แล้ว

    2nd
    (: