Your GUI is Boring, Lets Animate It

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • get my full Roblox Studio course here:
    linktr.ee/Byte...
    insta (i have cool pigeon photos): / subnautica_man
    discord: / discord
    wondered how to make a main menu in roblox studio? or how to create a shop which has working GUI? ive made lots of 2024 roblox scripting tutorials about all the different bits of roblox to give you some up-to-date information about all of its properties and events.
    my goal is to simply give some insight on how to use the various features and instances roblox studio, and show you some fun stuff you can do with them. thanks for checking out this roblox scripting tutorial :)

КОМЕНТАРІ • 164

  • @byteblox100
    @byteblox100  9 місяців тому +17

    Get all of my knowledge in one package:
linktr.ee/ByteBlox

  • @Zawaito
    @Zawaito 9 місяців тому +86

    "Actually, dont blame roblox... always take accountability"
    Might be the single best piece of advice ever given in the roblox dev community fr. Just found your channel and now i'ma binge watch every single tutorial/guide.

    • @doubledog5187
      @doubledog5187 9 місяців тому +9

      Way too many people on roblox, specifically scripters, blames roblox for it's issues, and never compliments it. They will always be agitated and angry. The best advice I've ever heard in well over 5 years.

    • @Zawaito
      @Zawaito 9 місяців тому

      @@doubledog5187 my only beef with roblox is not updating lua.
      And i dont even mean keep it up to date, but hell, why did we have to stop 1 to 2 updates before GOTO function???

    • @harryvpn1462
      @harryvpn1462 Місяць тому +2

      You dont know how good roblox is until you learn what a pointer is

    • @Zawaito
      @Zawaito Місяць тому

      @@harryvpn1462 enlighten me please

  • @Alleysss
    @Alleysss 9 місяців тому +10

    Even tho I don't make games on roblox it's pretty fun to try out scripts from your videos and play around in roblox studio. Nice work man!

  • @legally4946
    @legally4946 5 місяців тому +6

    i always do
    local uigrid = script.parent
    while true do
    uigrid.Rotation += math.random(1, 5)
    wait(math.random(0.1, 0.5))
    end
    let me know what you guys think about it

    • @byteblox100
      @byteblox100  5 місяців тому +1

      That works, tween service is just better if you want more customization and just smoother animations in general

    • @legally4946
      @legally4946 5 місяців тому

      @@byteblox100 ye fair point

  • @SP.43
    @SP.43 9 місяців тому +19

    Recently discovered your channel. Your videos are good quality and you explain things really well. Good job!

  • @thatidiotoverthere6311
    @thatidiotoverthere6311 Місяць тому

    Are you kidding me? I spend literally ALL night trying to find any Roblox Studio video containing the words “GUI” and “animate” and don’t find a thing, then the next morning I wake up, open UA-cam, and it recommends this. Taking the piss, honestly 😅

  • @MinorInconvenience666
    @MinorInconvenience666 9 місяців тому +147

    Your Video description is boring and repetitive, let's change it!

    • @byteblox100
      @byteblox100  9 місяців тому +67

      It’s fine bro, I’ll fill it up with links eventually lmao

    • @heppecogheron6016
      @heppecogheron6016 9 місяців тому +14

      ​@@byteblox100please send the scam thx

    • @YenNguyen-qj1mo
      @YenNguyen-qj1mo 9 місяців тому +7

      ⁠@vilzio89like the old youtube channel pages from like 2007? that WOULD be really fun! heavy customization nowadays is difficult though, and a lot of the options i.e. code is removed for security purposes. :( there are still niche "oldweb" services for people interested in making their own layout and such (neocities is my first thought) but yeah, i don't really think that social media companies do that as much anymore. :/

    • @AndrieMC
      @AndrieMC 9 місяців тому +1

      ​@@byteblox100Your name is cringe, let's change it!

    • @CiaosonoMemosoo
      @CiaosonoMemosoo 9 місяців тому

      @@AndrieMChow about a big nice cup of mind your fucking business

  • @VukIsProAtBedwars
    @VukIsProAtBedwars Місяць тому

    I probably need this for my next talent hub job

  • @youcai3424
    @youcai3424 8 місяців тому +4

    I am genuinely flabbergasted, I don't understand how I've gone this long without knowing how tweens works. This is so useful.

  • @MajesticUC
    @MajesticUC 9 місяців тому +1

    11:33 You dont actually have to put .Parent.Parent. You could just make a variable for the screenGui
    screengui = plr.PlayerGui:WaitForChild("ScreenGui").
    And then make a variable for the Frame.
    frame = screengui:WaitForChild("Frame")

    • @byteblox100
      @byteblox100  9 місяців тому

      You could, but it’s faster to use Parent.Parent

    • @MajesticUC
      @MajesticUC 9 місяців тому

      @@byteblox100 true but it makes code more readable. If you're going to make tutorials, you should teach your viewers good practices!

    • @byteblox100
      @byteblox100  9 місяців тому

      Using Parent is good practice though. Like unless it’s a lot of parents then yeah, but here it not only shortens the code, but also makes the script work if you place it inside another frame

    • @MajesticUC
      @MajesticUC 9 місяців тому

      @@byteblox100 well you dont typically put scripts in frames. Most scripters ik edit gui from startercharacter or starterplayer. Then you will just access multiple frames and buttons etc from one script which just makes everything a lot more simple

    • @Sadjhj
      @Sadjhj 9 місяців тому

      @@MajesticUCWait, you don’t put the script in the GUI?

  • @ERGO288
    @ERGO288 4 місяці тому

    I don't ever plan on making a game but I just watch you're videos for the entertainment

  • @theunusual_
    @theunusual_ 2 місяці тому

    Average front-end web development be like

  • @miokazqq3671
    @miokazqq3671 8 місяців тому

    As a someone who is new in coding and didn't know anything about Tweens, this video was very helpful. Pretty much i remember everything from your vid while watching it just once and had fun. Thank you

  • @realtoastedsoup
    @realtoastedsoup 9 місяців тому +1

    I wanted to learn how to tween for the better part of roblox development career, this finally explained to me how. And I watch every video from you because it is stuff i would never (mostly) have known about otherwise. Good content.

  • @RaFleStuff
    @RaFleStuff 9 місяців тому +2

    mattbatwings voice

  • @chris_period
    @chris_period 9 місяців тому

    you don't actually have to create a variable for each tween and then play it in a separate line of code!
    i used to do that all the time, but whenever i use a tween only once in my scripts, i just play it on the same line that i created it in.
    so for example (assuming we have a variable for tweenservice already):
    TweenService:Create(script.Parent, TweenInfo.new(1, Enum.EasingStyle.Linear), {Transparency = 0}):Play()
    this way you don't have to create a variable for every tween you make, and you save a line playing tweens.

    • @byteblox100
      @byteblox100  9 місяців тому

      that works, but what if you need to stop the tween? or wait until its completed? you need a variable for that

    • @chris_period
      @chris_period 9 місяців тому

      at that point, yes, you should definitely use a variable instead. dropping the variable is just a neat little shortcut to save a few lines in a big script, but you do have to assign a variable when you're doing more than just playing a tween.

  • @pxz_tm
    @pxz_tm 6 місяців тому

    ur my new fav youtuber

  • @QUBIQUBED
    @QUBIQUBED 9 місяців тому

    Guys do NOT use “-1” for the repeat count, -1 becoming infinity is a bug and can be patched *any time in the future* so instead you should use math.Huge.

    • @alex342gwsturk8
      @alex342gwsturk8 9 місяців тому

      you sure? didnt the roblox documentation show that -1 was infinite?

    • @byteblox100
      @byteblox100  9 місяців тому

      Documentation says -1 is infinite, because it simply adds 1 every time it repeats and stops if the repeat count is equal to current repeats, but because you can’t repeat -1 times, it never stops

    • @Sadjhj
      @Sadjhj 9 місяців тому

      I feel like -1 is better

  • @victorien3704
    @victorien3704 9 місяців тому

    I'm not sure weather you made this video because of my suggestion or not, but either way thank you for this video!

  • @EpicPico0625
    @EpicPico0625 9 місяців тому

    Me when script.Parent.Parent:TweenSize(), script.Parent.Parent:TweenPosition() and script.Parent.Parent:TweenSizeAndPosition()

    • @byteblox100
      @byteblox100  9 місяців тому

      TweenSize() mfs trying to rotate a gradient

  • @missfortune4321
    @missfortune4321 9 місяців тому

    thank you

  • @TheBoxRobot1
    @TheBoxRobot1 8 місяців тому

    Can you make a tutorial like this but make the button follow the person mouse? i had a idea to make the play button follow the mouse but i don't know how to code lol

    • @byteblox100
      @byteblox100  8 місяців тому

      You can detect whenever the mouse position changes, and then get the mouse position. Look it up on google

    • @breaddacat7935
      @breaddacat7935 4 місяці тому

      (localscript)
      local mouse = game.Players.LocalPlayer:GetMouse()
      local ui = (ui here)
      while task.wait() do
      ui.Position = UDim2.new(0, mouse.X, 0, Mouse.Y)
      end

  • @NikPlaysTTE
    @NikPlaysTTE 9 місяців тому

    Can you please make a tutorial on how to make a cut scene

  • @fatmario420
    @fatmario420 9 місяців тому +1

    cool

  • @lanquandude
    @lanquandude 9 місяців тому

    Im literally just watching this for fun, I don't even use Roblox Studio anymore, I use Unreal Engine. This is just fun to watch for some reason.

  • @jesushodar9622
    @jesushodar9622 Місяць тому

    18 minutes just to code 7 lines 💀

    • @therobloxguy87
      @therobloxguy87 Місяць тому

      because hes explaining it and making the gui

  • @blackandmode
    @blackandmode 5 місяців тому

    bro go make a game idc if you dont update it

  • @noobulus_YtReal
    @noobulus_YtReal 9 місяців тому

    most late person ever

  • @BloomyGuy1
    @BloomyGuy1 9 місяців тому

    Your tweens are boring, use spring motion

  • @ShadowClaw_Dev
    @ShadowClaw_Dev 9 місяців тому

    I am better

  • @Player379
    @Player379 5 місяців тому

    doesnt work: Players.alter08084.PlayerGui.ScreenGui.DonationFrame.UIGradient.LocalScript:5: attempt to call a TweenInfo value

    • @byteblox100
      @byteblox100  5 місяців тому

      Make sure that you’re not mixing up “TweenInfo” and “tweenInfo” (which is the variable we made)

  • @asshole124
    @asshole124 9 місяців тому

    i could do 1 line of code

  • @cola_enthusiast
    @cola_enthusiast 3 місяці тому +1

    your video is boring, lets delete it

  • @cross14playsroblox
    @cross14playsroblox 9 місяців тому +4

    you are very good on tutorials

  • @noone-uz9sg
    @noone-uz9sg 9 місяців тому +2

    Can we make one that slides like a loading bar

  • @Vehemenspoltergeist
    @Vehemenspoltergeist 2 місяці тому +1

    Ty for explaining what a tween is, it finally makes sense

  • @manfojo2396
    @manfojo2396 4 місяці тому

    *Thunder* YOU SHOULD OPEN A BLANK PROJECT FILE NOW! *Thunder*

  • @VukIsProAtBedwars
    @VukIsProAtBedwars Місяць тому

    I found a literal UIGradient on the videos time thing

  • @DenerDoes_Stuff
    @DenerDoes_Stuff 8 місяців тому +1

    poopy mayonnaise

  • @milkedRat
    @milkedRat 9 місяців тому +1

  • @SargentMonkey
    @SargentMonkey 7 місяців тому +1

    the whole script is at 16:54 if you wanna get straight into it

  • @r4nd0mStuff
    @r4nd0mStuff 9 місяців тому +1

    Thanks for this vid, was looking for ways to make my game’s bland gui more interesting.

  • @goofy.stickgs
    @goofy.stickgs 19 днів тому

    the intro is so different than the others

  • @sadge6430
    @sadge6430 20 днів тому

    x

  • @SlayTh3DraG0n
    @SlayTh3DraG0n 3 місяці тому

    16:20 bam jum bim

  • @Hexfury
    @Hexfury 2 місяці тому

    Play around with click animations too. TweenService is very fun and powerful ^~^

  • @andreyromashchenko8967
    @andreyromashchenko8967 2 місяці тому

    Im just at 6 minutes and i JUST woke up and im all sleepy, but if youre THAT thorough at explaining everything, then i would consider purchasing your lecture courses. Especially since theyre 50% off for the next 3 days (lol).

  • @Fodnex
    @Fodnex 9 місяців тому

    As a professional roblox scripter i wonder how to make main menu in roblox studio or how to create a shop which has working GUI!

  • @SaahirSCJ
    @SaahirSCJ 5 місяців тому

    7:52

  • @valenvann
    @valenvann 2 місяці тому

    tysm! This video is actually so useful! I love the way you teach these things

  • @not_eagleye
    @not_eagleye 5 місяців тому

    him not adding UI corner for so long 😭😭

  • @SirJo_
    @SirJo_ 9 місяців тому

    Stop bullying the teacher 😡

  • @Sky_Blue_Crew
    @Sky_Blue_Crew 5 місяців тому

    How do you tween the position of the UI?

    • @byteblox100
      @byteblox100  5 місяців тому

      {Position = UDim2.new(xScale, xOffset, yScale, yOffset)}

    • @Sky_Blue_Crew
      @Sky_Blue_Crew 5 місяців тому

      @@byteblox100 Thanks! This is gonna help me with the UI of my game. I was trying to make a "Press E to talk" prompt whenever you're touching a part and this helps a ton for the animation!

  • @neryd1
    @neryd1 9 місяців тому +1

    Ah yes, I can finally make cool UI without having to painstakingly code each position I want it to go to! Jokes aside though, I do think the UDIM2 system is weird, why not use Vector2? That is never used. Anyways this tutorial is great, I learned much more about UI!

    • @alex342gwsturk8
      @alex342gwsturk8 9 місяців тому +1

      the way ui is positioned is a bit odd, there are 2 values for each axis (X and Y), one being scale which scales with screensize, and the other being offset which doesnt scale with screen size

    • @imanoob1234pl
      @imanoob1234pl 9 місяців тому

      @@alex342gwsturk8 scale is useful

    • @Assumptionist
      @Assumptionist 9 місяців тому +1

      Vector2 is used for the AnchorPoint of guiobjects, but the reason a UDim2 exists is because sometimes you want things to scale with the screen size, and sometimes you want things to just be the same size across all screens, so just at a flat pixel constant.
      UDim2 consists of two UDims (hence the name lol), "scale" and "offset." you should usually always use scale, but offset can be very nice for things like separator bars, or even in the roblox topbar, they use offset for the top buttons. it'd look a little funky if the buttons scaled with screen size, so that's why it's like that.
      also, there's two helper functions, UDim2.fromScale() which takes only scale, so it's kinda like initializing a vector2, and there's also UDim2.fromOffset(). very helpful functions so you aren't having to write out UDim2.new(1, 0, 1, 0) all the time.

    • @Brambes05
      @Brambes05 9 місяців тому +1

      Udim2 might seem odd at first but it's the most common way to handle gui it's quite easy if you understand it well for instance if change the size of a frame to Udim2.new(0, 10, 0, 10) it would be exactly 10x10 pixels or if it give it a size of UDim2.new(0.5, 0, 0.5, 0) for a frame's size means it will occupy the same size as half of the screen, both horizontally and vertically.
      Vector2 is mainly used for 2D things like gui and you will see that other then Position and Size other things of gui like the AnchorPoint the AbsoluteSize or AbsolutePosition do use Vector2
      i hope this clears things up. :)

    • @_skribl
      @_skribl 9 місяців тому

      ​@Brambes05 isn't UDim2.new(0.5, 0, 0.5, 0) half the screen size, and UDim2.new(0, 10, 0, 10) equal to ten pixels?
      Not UDim2.new(0, 0.5, 0, 0.5) and UDim2.neq(10, 0, 10, 0), those would be 0.5 pixels in both directions for the 1st and 10 times the screen size for the second

  • @danzstuff
    @danzstuff 9 місяців тому

    Bro i was literally searching for this yesterday how did you know

  • @Chillz_AZY
    @Chillz_AZY 9 місяців тому

    Good job teaching others, i also mastered tweens

  • @xhaphireTF2
    @xhaphireTF2 7 місяців тому

    As always, your videos getting me the feeling "I want to code"

  • @shinyindividual12
    @shinyindividual12 9 місяців тому

    Thats 10 lines

  • @rockyes3239
    @rockyes3239 9 місяців тому

    Holy crap, thanks alot for teaching me tween service, man. It seems to be extremely helpful

  • @samulige
    @samulige 9 місяців тому

    my suggestion is showing how to make gui buttons and buttons in parts, so if u click a part for example it'll print "hey", if u click a gui it'll print "gjoafjkiow"

    • @SuperCliche
      @SuperCliche 9 місяців тому

      it’s simple though, all you need to do is put a local script in the gui button then just detect with button.MouseButton1Click

    • @SuperCliche
      @SuperCliche 9 місяців тому

      for buttons use clickdetectors

    • @pexoz5040
      @pexoz5040 7 місяців тому

      @@SuperCliche u can also use a surface gui and a textbutton in it

  • @unqool
    @unqool 9 місяців тому

    beow juw beow :D
    i love this intro

  • @tomsterbg8130
    @tomsterbg8130 4 місяці тому

    The interesting thing is that by itself tweening is super easy, but once you use it in a project it becomes 10x harder because you now have to actually be good at project management. You can't just slap the tween and expect it to be easy to maintain. That's the pitfall that many people fall in and it's terrible to see. Even if you're good, you may still accidentally entangle your tweens with other code and it instantly becomes a nightmare.

    • @IslamicUploads-vh9zj
      @IslamicUploads-vh9zj 2 місяці тому

      No, it doesn't. I use tweenservice, just add a few variables, if needed. Then remove the end lines. It's not that complicated, if you know what your doing

    • @tomsterbg8130
      @tomsterbg8130 Місяць тому

      @@IslamicUploads-vh9zj Difficulty is relative and even though i've been quite lazy through my experience, i believe that 6 years of knowledge has given me at least a few valid points. Yes, you can manage code well, yes, it can be simple and clean. Yes, you can just make a module that you don't touch and set it to detect descendants of a certain object and search for attributes, in fact that's my current chosen way of development because it allows you to write code in one place and just build functionality independently and all you need is the attributes to be done right. Anyway, one of the points is that, as i say in the original comment combining things in a big project naturally makes it more time-consuming to work with, and even find what you're looking for. This is amplified by the fact that people are adapted to images better than text. In fact i've recently pondered on the topic of visual vs text programming and while text is very controllable and readable, it may be because we just haven't spent enough resources such as time to develop visual ways to code (because visual coding can't replace text as of currently, eventually you need a feature advanced enough that it requires textual code). Plus around the time that i was writing the original comment i was in a time of coming back to development from a year break so i was overwhelmed to a point, leading to twisted perception of what's hard and what's possible. I hope this has been useful in some way because i'm writing it for that very reason, to bring a different perspective and some new knowledge, not to rant randomly and defend myself.

  • @Vorthex3
    @Vorthex3 9 місяців тому

    keep it up!!!

  • @victorien3704
    @victorien3704 9 місяців тому

    Just a small question: what property is size just without it changing to the screen size

    • @byteblox100
      @byteblox100  9 місяців тому

      It would be the x offset and y offset, which are still in the size property

  • @AndrieMC
    @AndrieMC 9 місяців тому

    Your video size is a square, lets change it!

    • @byteblox100
      @byteblox100  9 місяців тому +1

      macbook hustle

    • @AndrieMC
      @AndrieMC 9 місяців тому

      @@byteblox100 Apple = trash, get a real pc and Itll work beautifully

  • @OSFlames
    @OSFlames 6 місяців тому

    Bro did they change tweenservice to tweeninfo or am i trippin'?

    • @randomchannel-kh7oc
      @randomchannel-kh7oc 3 місяці тому +1

      you're just tripping

    • @OSFlames
      @OSFlames 3 місяці тому

      @@randomchannel-kh7oc well yea

    • @OSFlames
      @OSFlames 3 місяці тому

      @@randomchannel-kh7oc I figured it out

  • @ImReallyLemoBloxROFL
    @ImReallyLemoBloxROFL 5 місяців тому

    yk whats boring?

  • @laperiodemasquer4409
    @laperiodemasquer4409 8 місяців тому

    your videos are so good! love everything you've taught so far

  • @mekithuat9832
    @mekithuat9832 9 місяців тому

    So cool! TY!

  • @SamHammie
    @SamHammie 9 місяців тому +3

    Is it possible to tween two values of something that is intrinsically linked independently of one another?
    You mentioned that you can tween GUI size/position and things like RGB color values, so I was wondering if, for example, there's a way to set up two tweens; one for the xScale value of a UDim2 and one for the yScale value, or maybe xScale and xOffset instead, and making them work independently of one another while also making them able to work at the same time.
    One potential application I can think of for this is tweening the R, G, and B values of the UI gradient independently to have it gradually hue shift through all possible colors by setting the R, G, and B values to change at different speeds.

    • @myrukun
      @myrukun 9 місяців тому

      try it out

    • @templatesRNG
      @templatesRNG Місяць тому

      late reply you probably already figured it out but it should work by just changing {Size} to {Size.X.Scale}, {Size.Y.Offset}, etc

  • @jimneycricket
    @jimneycricket 9 місяців тому

    Are you guys going trick or treating

    • @olicon1000
      @olicon1000 9 місяців тому

      Yeah!!! 🍬🎃👻

    • @byteblox100
      @byteblox100  9 місяців тому

      Obviously wtf

    • @Stupidguy5I
      @Stupidguy5I 9 місяців тому

      Are you guys going trick or treating? Are you guys going trick or treating? Are you guys going trick or treating? Are you guys going trick or treating?

  • @randomdude8361-t1i
    @randomdude8361-t1i 5 місяців тому

    I like your teaching style. Like, you are doing fun stuff along with showing script. Godly content

  • @vermamaerodriguez96
    @vermamaerodriguez96 9 місяців тому

    hi (first)