How to make a slider in Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • This is a remake of a previous video with better editing and quality. There might be some inconsistencies as I slightly rushed this video. Also you can't really animate something like this alot.
    In this video I show you how to make a slider user interface in Roblox Studio.
    tags:
    #roblox #robloxstudio #tutorial #animated #robloxgui #sliders #slidergui

Комментарии • 82

  • @Agentheo85
    @Agentheo85 8 месяцев назад +27

    I love it, you're not like the others who just give the code, you detail the code well and you explain why you have to do that, it's great

  • @the_real_kyo_kyo
    @the_real_kyo_kyo 3 месяца назад +2

    the slider can go past 0 or 100 :/

  • @Simking
    @Simking 8 месяцев назад +18

    It would be a great video if it was not for the tts voice. It was a headache to listen to it, but the tutorial itself is useful.

    • @TaseenA09
      @TaseenA09  8 месяцев назад +12

      I used the wrong one here. Going to use a better TTS next time. This is until I get a microphone.

    • @picsbd
      @picsbd 8 месяцев назад

      You are going to have microphone. Gift from Baba😊😊😊 ​@@TaseenA09

    • @andy-gamer
      @andy-gamer 8 месяцев назад +3

      It didnt bother me maybe im just used to it

    • @buysnoah
      @buysnoah 8 месяцев назад

      ​@@TaseenA09elevenlabs bro

    • @simplicityd8703
      @simplicityd8703 7 месяцев назад

      ...​@@1DontNoclip

  • @lolSMPMinecraft
    @lolSMPMinecraft 2 месяца назад +1

    STOP DOING MAGIC IN THE CODE AND SKIPPING STUFF I CANT FOLLOW and also can you do it slower but ty for the worlds hardest tutorial to follow :)

  • @LoucaLouca74
    @LoucaLouca74 2 месяца назад +1

    imagine i copy the script and it doesnt work XDDD

  • @ajforkk
    @ajforkk 8 месяцев назад +7

    FINALLY.
    a GREAT roblox studio tutorial!
    i hope you get alot of attention from people dude
    you deserve it for making these high quality tutors

  • @raptors_cool
    @raptors_cool 3 дня назад

    Great Video, But for some reason the slider goes outside the bounds, probably a new studio update? Could you remaster this video?

  • @kirbyzaz
    @kirbyzaz 8 месяцев назад +7

    That output breakdown at the start was really something.
    I Love this tutorial so much, it has helped me ALOT, thank you.

  • @PanchoAnimationsOfficialYT
    @PanchoAnimationsOfficialYT 6 месяцев назад +2

    Thank you so much! Very well explained, new sub! :)

  • @sankx_SK
    @sankx_SK 2 месяца назад

    Useful but it was fucking pain that voice, next timw use yours or different one

  • @kiqrocs
    @kiqrocs Месяц назад

    how would i incorporate music volume into this slider

  • @h1reaper
    @h1reaper 8 месяцев назад +3

    THE BEST UI tutorial i'v ever seen

  • @iDemandSky
    @iDemandSky 8 месяцев назад +3

    Very good tutorial of slider buttons!

  • @Martanus
    @Martanus 8 месяцев назад +2

    This is a very very complicated tutorial, i would be able to follow, i dont think its not understandable, but its just me not being experienced enough to follow with understanding. Thank you, still got me inspired.

  • @davidgy
    @davidgy 9 дней назад

    is it possible to make a slider in surfaceguis? i know there is a beta feature but i don’t want to wait until it comes out.

  • @LemonCet
    @LemonCet 8 месяцев назад +2

    dont comment often but this is a good tutorial

  • @k1p.mp4alt
    @k1p.mp4alt 8 месяцев назад +2

    W video man. Ive been wanting to learn this for years since i started coding. :3

  • @Loennou75
    @Loennou75 8 месяцев назад +3

    Cool ! That’s an improved version of the tutorial that made me discover this channel

  • @HomeMadeScripts
    @HomeMadeScripts 2 месяца назад

    How do i make it do something?

  • @asimpleorbasicRobloxdevfrom23
    @asimpleorbasicRobloxdevfrom23 7 месяцев назад +3

    the fastest, easiest, the best tutorial of a slider

  • @blueberrylily5820
    @blueberrylily5820 7 месяцев назад +2

    As a dev myself, be proud of this video! You're doing what most others won't, and I will gladly subscribe and watch future videos!

  • @Thathuman-pf4un
    @Thathuman-pf4un 5 месяцев назад +1

    1k likes

  • @____________________________x
    @____________________________x 8 месяцев назад +2

    das smart, never knew sliders were this tuff to make

  • @Os_m12
    @Os_m12 2 месяца назад

    its going outside the slider

  • @zhouscar459
    @zhouscar459 8 месяцев назад +1

    would've been so simple with roact-hooks

  • @RunningPieBOOM
    @RunningPieBOOM 8 месяцев назад +2

    thank u so much

  • @ThXvi
    @ThXvi Месяц назад

    write me script pls

  • @r1nlyn401
    @r1nlyn401 8 месяцев назад +2

    not sure abt it but mb for someone this way would be easier(btw great tutorial):
    local front = script.Parent.Parent.Frame
    local back = front.Parent
    local isPressed = false
    local mouse = game.Players.LocalPlayer:GetMouse()
    script.Parent.MouseButton1Up:Connect(function()
    isPressed = false
    end)
    script.Parent.MouseLeave:Connect(function()
    isPressed = false
    end)
    script.Parent.MouseButton1Down:Connect(function(x,y)
    isPressed = true
    front.Size = UDim2.new((mouse.X - back.AbsolutePosition.X)/back.AbsoluteSize.X,0, 1,0)
    script.Parent.Text = math.round((mouse.X - back.AbsolutePosition.X)/back.AbsoluteSize.X * 100) .."%"
    end)
    mouse.Move:Connect(function()
    while isPressed do
    wait()
    if (mouse.X - back.AbsolutePosition.X) < 0 or (mouse.X - back.AbsolutePosition.X)/back.AbsoluteSize.X > 1 then continue end
    front.Size = UDim2.new((mouse.X - back.AbsolutePosition.X)/back.AbsoluteSize.X,0, 1,0)
    script.Parent.Text = math.round((mouse.X - back.AbsolutePosition.X)/back.AbsoluteSize.X * 100) .."%"
    end
    end)

    • @TaseenA09
      @TaseenA09  8 месяцев назад +1

      This won't work if the mouse is outside the slider, making it harder to use.

    • @r1nlyn401
      @r1nlyn401 7 месяцев назад

      yes, i wanted this don't work when mouse is ouside the slider, it was my goal, not sure if it's gonna be harder to use..@ot_140

  • @LoucaLouca74
    @LoucaLouca74 2 месяца назад

    can u give me the code pls

  • @Diudo123Amogus
    @Diudo123Amogus 7 месяцев назад +1

    Mine doesn’t work

  • @MintyFox_2009
    @MintyFox_2009 8 месяцев назад +2

    Man this is gonna be so useful, thank you so much dude

  • @Otarplayz
    @Otarplayz 8 месяцев назад +2

    your so underrated this is the first time i found a tutorial this good

  • @yazplayer
    @yazplayer 8 месяцев назад +1

    Oh! i'm your 250th sub! Congrats
    Also the video was good! I was into making a simulator but i got a problem with sliders.

  • @panxel8615
    @panxel8615 8 месяцев назад +2

    Great video. Im not a new programmer but I wanted to see your teaching type and it is decent for a semi rushed video. I hope you get the recognition deserved.

  • @ch1p_k
    @ch1p_k 17 дней назад

    Mine can only be clicked, not slided what might i have done wrong?
    local mouse = game.Players.LocalPlayer:GetMouse()
    local slider = script.Parent
    local fill = script.Parent.Fill
    local trigger = script.Parent.Trigger
    local outputValue = script.Parent.OutputValue
    local outputLabel = script.Parent.Label
    local maxValue = 1 or 100/100
    local startingValue = 0 or 0/100
    fill.Size = UDim2.fromScale(outputValue.Value,1)
    outputLabel.Text = tostring(math.round(outputValue.Value*100))
    local tweenService = game:GetService("TweenService")
    local tweenStyle = TweenInfo.new(0.25,Enum.EasingStyle.Exponential)
    function UpdateSlider()
    local output = math.clamp((mouse.X-slider.AbsolutePosition.x)/slider.AbsoluteSize.X,0,1)

    local outputClamped = startingValue + (output*(maxValue-startingValue))

    if outputValue.Value ~= outputClamped then
    tweenService:Create(fill,tweenStyle,{Size = UDim2.fromScale(output,1)}):Play()
    end

    outputValue.Value = outputClamped
    outputLabel.Text = tostring(math.round(outputValue.Value*100))
    print(output)
    end
    fill:GetPropertyChangedSignal("Size"):Connect(function()
    outputLabel.Text = tostring(math.round(fill.Size.X.Scale*100))
    end)
    local sliderActive = false
    function ActivateSlider()
    sliderActive = true
    while sliderActive do
    UpdateSlider()
    task.wait()
    end
    end
    trigger.MouseButton1Click:Connect(ActivateSlider)
    game:GetService("UserInputService").InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
    sliderActive = false
    end
    end)

    • @_icey
      @_icey 15 дней назад

      Change the "MouseButton1Click" to "MouseButton1Down"

    • @ch1p_k
      @ch1p_k 15 дней назад

      @@_icey yeah the one at the end, i also have an other problem, its kinda broken, if i slide it too much to the right, it will be set to 50, or if i set on 50, it will be on 78

    • @_icey
      @_icey 15 дней назад

      @@ch1p_k never had that problem happen to me, not sure what to say about it.

  • @catbeans70
    @catbeans70 8 месяцев назад +1

    Amazing video, I was wanting a video like this for a while. But I did get a bit confused because of how fast the code was getting added

  • @ScripterDan
    @ScripterDan Месяц назад

    V A L U E .

  • @melonelenny7371
    @melonelenny7371 7 месяцев назад +1

    We need more GUI tutorials pls❤

  • @simplicityd8703
    @simplicityd8703 7 месяцев назад +1

    One of the best tutorials i have ever seen! Where were you when i was still learning!?

  • @ilzro
    @ilzro 8 месяцев назад +1

    great tutorial, you probably should use runservice instead of while do though

    • @TaseenA09
      @TaseenA09  8 месяцев назад +3

      Probably, that would make it frame perfect. If I ever remake this again I will consider this.

  • @Bammyy
    @Bammyy 8 месяцев назад +1

    Really well made video, nice.

  • @Yannie_0w0
    @Yannie_0w0 7 месяцев назад +1

    Pro gamer👁️👄👁️

  • @kokobroxd
    @kokobroxd 8 месяцев назад +1

    amazing tutorial

  • @goose13378
    @goose13378 8 месяцев назад +1

    Eccellente! 👌👌

  • @AshwinIslam
    @AshwinIslam 7 месяцев назад +1

    within 20 seconds i already had a good idea on what to do

  • @el_archi_mago
    @el_archi_mago 7 месяцев назад +1

    Detailed, Straight to the point. This is a quality tutorial!

  • @oksaturn
    @oksaturn 2 месяца назад

    This was the hardest tutorial ever, the voice is killing me, and each time he types one word he skips all the way to the end, then half way just changes the code.

  • @Elevatorchannel2
    @Elevatorchannel2 7 месяцев назад

    This is 1 of the hardest tutorials to follow. I don't know why, maybe it's the text to speech or the fact that it's so fast.
    At least you tried, the explanations helped a little. Maybe try slowing the pace down a little, not everyone can type at 300+wpm.
    I ended up using AI to finish this as it did not work. I later found out why, some of the code you wrote changed half way through the video.

  • @LemonAnimates1
    @LemonAnimates1 2 месяца назад

    I can't catch up. It helped, but then it stopped working at the end because i could'nt see line 18.

  • @jasiepesie5804
    @jasiepesie5804 5 месяцев назад

    Great tutorial and easy to follow and modify, thanks! I used it for a vertical throttle slider where the button moves along instead of the bar filling, which wasn't hard to change in this code
    The beep in the intro keeps scaring the # out of me every time tho because it sounds like my alarm clock looll

  • @QUBIQUBED
    @QUBIQUBED 6 месяцев назад

    I like that you explained your strategy at the Beginninf

  • @xooxooo8544
    @xooxooo8544 6 месяцев назад

    The TTS is giving me calliou parody vibes

  • @thetwoeyess
    @thetwoeyess 5 месяцев назад

    You're the first one to be subscribed by me for the first video🎉🎉

  • @СкибидиСигмаЛорд
    @СкибидиСигмаЛорд 4 месяца назад

    I don't know why but slider is going out of the borders lol

  • @visloy9246
    @visloy9246 7 месяцев назад

    got this kinda working but still acting weird
    would be awesome to see a slider tutorial for surfaceguis

  • @jstarandomdude
    @jstarandomdude 7 месяцев назад

    mine works but u cant drag it :(

  • @CheeseY420
    @CheeseY420 2 месяца назад

    W tutorial

  • @davidgy
    @davidgy 5 месяцев назад

    Only underrated people make tutorials that are useful every popular developer just reposts stuff

  • @editorman20
    @editorman20 5 месяцев назад

    really nice tutorial, one of the bests i've seen.
    just one question, how do we make the number scale with the fill with a custom minimum and maximum value?

    • @TaseenA09
      @TaseenA09  5 месяцев назад

      It's actually shown in the video ( 4:18 )

  • @force4874
    @force4874 7 месяцев назад

    can i crop code? plss

  • @adrienneortiz2991
    @adrienneortiz2991 7 месяцев назад

    "Promo SM"

  • @neveezy
    @neveezy 5 месяцев назад

    hey im getting an error with the code. if you could help it would be much appreciated. great video still!

    • @TaseenA09
      @TaseenA09  4 месяца назад

      I can't help if you don't give me the error message.

    • @neveezy
      @neveezy 4 месяца назад

      @@TaseenA09 it says Trigger is not a valid member of Frame "Players.kingmj4444.PlayerGui.ScreenGui.Main.Main.Slider"

    • @neveezy
      @neveezy 4 месяца назад

      @@TaseenA09 it says Trigger is not a valid member of Frame "Players.kingmj4444.PlayerGui.Screengui.Main.Main.Slider"

    • @neveezy
      @neveezy 4 месяца назад

      @@TaseenA09 it says Trigger is not a valid member of Fram "Player.kingmj4444.PlayerGui.ScreenGui.Main.Main.Slider"

    • @neveezy
      @neveezy 4 месяца назад

      @@TaseenA09 my comments keep getting deleted i literally cant