How to add GIFs in Roblox Studio (tutorial)

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 105

  • @robloxlord_99
    @robloxlord_99  Рік тому +3

    Hello! Thanks a lot for the support ❤
    HERE IS A NEW 2023 UPDATED VERSION WITH CLEAR EXPLANATION :)
    ua-cam.com/video/AJUFpa8kiOk/v-deo.html

  • @VeryRandom_Dude
    @VeryRandom_Dude Рік тому +29

    local Frames = 18 --Amount of frames in gif
    local currentFrame = 1
    local rows = 5
    local columns = 4
    local currentRow,CurrentColumn = 0,0
    local linear = false
    local fps = 30 -- Max 30
    local full60fps = false
    local size = script.Parent.Parent.Size -- The gif should be on the front of the part
    script.Parent.StudsPerTileU = columns*size.X
    script.Parent.StudsPerTileV = rows*size.Y
    while true do
    if not full60fps then wait(1/fps) else game:GetService("RunService").Stepped:Wait() end
    if linear then
    script.Parent.OffsetStudsU = script.Parent.OffsetStudsU + size.X
    if script.Parent.OffsetStudsU > script.Parent.StudsPerTileU then
    script.Parent.OffsetStudsU = 0
    end
    else
    CurrentColumn = CurrentColumn + 1
    if CurrentColumn > columns then
    CurrentColumn = 1
    currentRow = currentRow + 1
    end
    if currentFrame > Frames then
    currentRow,CurrentColumn,currentFrame = 1,1,1
    end
    script.Parent.OffsetStudsU = size.X*(CurrentColumn-1)
    script.Parent.OffsetStudsV = size.Y*(currentRow-1)
    currentFrame = currentFrame+1
    end
    end
    the script if anyone needs it

    • @NotUltimateNoob
      @NotUltimateNoob Рік тому +2

      thanks bro! 🙂🙂

    • @progressman95
      @progressman95 21 день тому

      Thanks! I was stuck for a moment like "where is the script😭" lmao

  • @susman3286
    @susman3286 3 роки тому +23

    -- Script by HungryBoy02
    local Frames = 6*6+3 --Amount of frames in gif
    local currentFrame = 1
    local rows = 7
    local columns = 6
    local currentRow,CurrentColumn = 0,0
    local linear = false
    local fps = 24 -- Max 30
    local full60fps = false
    local size = script.Parent.Parent.Size -- The gif should be on the front of the part
    script.Parent.StudsPerTileU = columns*size.X
    script.Parent.StudsPerTileV = rows*size.Y
    while true do
    if not full60fps then wait(1/fps) else game:GetService("RunService").Stepped:Wait() end
    if linear then
    script.Parent.OffsetStudsU = script.Parent.OffsetStudsU + size.X
    if script.Parent.OffsetStudsU > script.Parent.StudsPerTileU then
    script.Parent.OffsetStudsU = 0
    end
    else
    CurrentColumn = CurrentColumn + 1
    if CurrentColumn > columns then
    CurrentColumn = 1
    currentRow = currentRow + 1
    end
    if currentFrame > Frames then
    currentRow,CurrentColumn,currentFrame = 1,1,1
    end
    script.Parent.OffsetStudsU = size.X*(CurrentColumn-1)
    script.Parent.OffsetStudsV = size.Y*(currentRow-1)
    currentFrame = currentFrame+1
    end
    end
    thank me later

  • @dand_alt779
    @dand_alt779 3 роки тому +2

    Thanks! You deserve an subscriber!

  • @KrisadaLangtang
    @KrisadaLangtang Рік тому +2

    Sir, why does it walk by itself? It doesn't stop at all. It doesn't stop once. Really, to tell the truth, it doesn't stop. It doesn't stop. The one that keeps walking or doesn't hear us, we do it and we don't. Sure, but my dad can help too.

  • @fre_nzy
    @fre_nzy 2 роки тому +4

    Could you make a video about how to apply this to a startercharacter or player to have 2d sprite movement mechanics?

  • @maminkamarek
    @maminkamarek 3 роки тому +6

    Could you show how to put a gif onto a screen gui?

    • @-BigChungus
      @-BigChungus Рік тому

      Yes, you you can change the image offset with the reactoffset or whatever and just change the script to Change that

  • @robloxlord_99
    @robloxlord_99  2 роки тому +7

    If anyone wants to do this in ScreenGui watch this video! :))
    UPDATE VIDEO: ua-cam.com/video/pojK0UQDzdI/v-deo.html

  • @thomazwarner
    @thomazwarner 2 роки тому +1

    hi please help I've been trying to do this in a mesh part but it keeps glitching

  • @yourfellowducky2712
    @yourfellowducky2712 3 роки тому +1

    Thank you so much! This video is truly legit.

    • @Nos_pnl
      @Nos_pnl 10 місяців тому

      no

    • @yourfellowducky2712
      @yourfellowducky2712 10 місяців тому

      @@Nos_pnl Well I guess you did something wrong then.

  • @markandrews1289
    @markandrews1289 3 роки тому +5

    Could you post a tutorial about ray casting

  • @0uey
    @0uey Рік тому

    Is there a way to add a click detector button so I can turn the display on and off. Like with a music player button, you click it and it plays music.

  • @greenfn37-sz8rr
    @greenfn37-sz8rr 4 місяці тому

    i cant even download a spritesheet it doesnt allow me

  • @WafreAlt
    @WafreAlt Рік тому

    Is there a way to add it into a gui for a loading screen?

  • @cookiehawk
    @cookiehawk 11 місяців тому

    the guy running looks suspiciously like jerma

  • @6Stardust9
    @6Stardust9 2 роки тому +1

    how do you get the gif script that you used

  • @dunaor
    @dunaor Рік тому

    how do i find out the rows and columns??

  • @catafest
    @catafest 3 роки тому +3

    Good tutorial. The development team has many changes A.P.I. on the development side and even some newer tutorials are needed.

  • @ClassyBaxy
    @ClassyBaxy 2 роки тому

    Hey idk if ur still active but how do I make it that it only plays when a part is touched and only once?

  • @cyancaelus6456
    @cyancaelus6456 11 місяців тому +1

    Tell Me How to Add GIF in BillBoardGUI Next. Please???

  • @Ghxsys2210
    @Ghxsys2210 3 роки тому +2

    where is the GIP script?

  • @marmaje69
    @marmaje69 3 роки тому +3

    Really useful, i wanted to use this to make matrix monitor (basically monitor with green or blue 1s and 0s) that moves. This makes ut a lot easier.

    • @RadiZach
      @RadiZach 2 роки тому +1

      It is possible to script that with SurfaceGUI, but it will take longer setting it up as a GIF.

    • @marmaje69
      @marmaje69 2 роки тому

      @@RadiZach i have no idea. I am just a bad scripter Rl.

    • @RadiZach
      @RadiZach 2 роки тому

      @@marmaje69 Oh.

    • @RadiZach
      @RadiZach 2 роки тому

      @@marmaje69 I am excellent at scripting, I can show it to you for free, or 5 robux to pay if you want.

  • @Random_Idiot69420
    @Random_Idiot69420 2 роки тому

    does this work with billboardgui?

  • @aviel3807
    @aviel3807 3 роки тому +5

    Hi! I was wondering if you could post a tutorial on how to make a proximity prompt that removes the hats you have on your avatar. Thank you!

    • @tomyyoung2624
      @tomyyoung2624 3 роки тому

      yes you have to be really gross to do it

    • @UnkownUnkown01
      @UnkownUnkown01 2 роки тому

      Just create a proximity prompt, put a script on it and do:
      Local Pps = game:GetService("ProximityPrompt service")
      Local player = game.Players.LocalPlayer
      Pps.PromptTriggered:Connect(function()
      Player.Character.Hat:Destroy()
      end)
      I'm not that good at scripting so if anybody knows more than me and sees something wrong correct me

  • @ruiayonzu
    @ruiayonzu 2 роки тому

    WOWWW Thanks you working!?!?!?!

  • @coolbudYT
    @coolbudYT 3 роки тому

    i got this gif but it goes blurry and thin

  • @denizveoyunculardenizyldz8702
    @denizveoyunculardenizyldz8702 3 роки тому

    The image goes up and skips to next how do i do this smooth

  • @Annexsohn
    @Annexsohn 3 роки тому

    How can I make this work on a Frame In screengui?

  • @trashykrab1261
    @trashykrab1261 3 роки тому

    Nice tutorial

  • @roblox_boi8913
    @roblox_boi8913 Рік тому

    this is cool but how do i make it into a rig

  • @Dawgstonn
    @Dawgstonn 3 роки тому +1

    Amazing!

  • @tomyyoung2624
    @tomyyoung2624 3 роки тому

    cool gif!

  • @Wiqser
    @Wiqser 3 роки тому

    Awesome video. Thank you ;)

  • @user-kr3pk8kj5p
    @user-kr3pk8kj5p 3 роки тому

    can i put a gif in the screen gui?

  • @muhammadtaqawi1999
    @muhammadtaqawi1999 3 роки тому

    Nice work

  • @carsracingworld8595
    @carsracingworld8595 2 роки тому

    hey i did all the stuff but i am not getting the result is there is anyways to test that if it is working or not

  • @mr.potatoflood2171
    @mr.potatoflood2171 3 роки тому

    OMG TYSM FOR THE WEBSITE CUZ I GONNA MAKE ANIMATIONS FOR OBBY CREATOR!!!!!!!1111

  • @just-the-panda
    @just-the-panda 2 роки тому

    TYSM IT WORKS!!!

  • @AlphaGilgamesh
    @AlphaGilgamesh 2 роки тому

    its possible add them to the sky??? plsssssssssssssssssssssssssss

  • @lordgameplayss
    @lordgameplayss 3 роки тому

    what is the program you used to split the frames of the image?

  • @jjeffy10
    @jjeffy10 3 роки тому

    Doesn't work my sprite sheet is bugging out
    edit: nvm i did something wrong

  • @gon.mp4481
    @gon.mp4481 3 роки тому

    is it possible to make a gif have "wait()" so it plays after 5 seconds

  • @tanz1m_52
    @tanz1m_52 2 роки тому

    Does it have to be a surface gui or does it work with screen gui too?

    • @cupman9821
      @cupman9821 2 роки тому

      it works with screen gui too

  • @torenonion
    @torenonion 3 роки тому

    it took 2 minutes to verify only?

  • @Johningss
    @Johningss 3 роки тому +1

    can you tutorial of the gifs but on gui?

  • @A9ime9
    @A9ime9 3 роки тому +1

    Good vedio bro

  • @420_Viper
    @420_Viper 2 роки тому

    Can you make this but for beams? im trying to make a nextbot game and this would be perfect

  • @XewoMae
    @XewoMae 3 роки тому +1

    Does this work with Guis?

    • @robloxlord_99
      @robloxlord_99  3 роки тому

      Yes it does:)

    • @XewoMae
      @XewoMae 3 роки тому

      @@robloxlord_99 how do i get it to work with guis?

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

    wut is the script???

  • @coolbudYT
    @coolbudYT 3 роки тому

    can you give the script i hate typing

  • @Pixelated000
    @Pixelated000 3 роки тому

    how to make a video with keyframes

  • @felixalcatraz7489
    @felixalcatraz7489 2 роки тому

    where gif?

  • @HungryFox02
    @HungryFox02 2 роки тому

    gaming moment

  • @Caracalz
    @Caracalz 3 роки тому

    Very amazing!!!!

  • @Zulma885
    @Zulma885 3 роки тому

    Thanks!

  • @teresaaborita6466
    @teresaaborita6466 2 роки тому

    Does it work in mobile?

  • @ayodam
    @ayodam Рік тому

    " b a n a n a. "

  • @kevinpetrov2023
    @kevinpetrov2023 3 роки тому

    Great video! But why is it not working anymore?

    • @robloxlord_99
      @robloxlord_99  3 роки тому +1

      it should work. make sure you watch again

    • @kevinpetrov2023
      @kevinpetrov2023 3 роки тому +1

      @@robloxlord_99 yes sorry lmao I accidentally didn't display the texture in the front.. my bad! Tysm for this tutorial been using it for long time.

  • @عزةالشحي-و2م
    @عزةالشحي-و2م 3 роки тому

    Thx ty thanks thankyou

  • @benjamin6523
    @benjamin6523 2 роки тому

    Not what I was looking for

  • @hazellovesblindy
    @hazellovesblindy 2 роки тому

    This shit doesn't work.

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

      LOL YOU DID NOT TRY MINE WORKS

  • @beyond_5dtemp
    @beyond_5dtemp 2 роки тому

    To any smart game developers, you already know not to do this but to any new game developers, don't do this.

    • @HungryFox02
      @HungryFox02 2 роки тому

      This was an example of what you can do with texture offsets :P if you want to animate something it's much better to do so in a gui ran on the client so it doesn't cause un-necessary processing on the server. I wasn't expecting nobody to know how to make a basic spritesheet so i updated the original forum thread, which can be found here:
      - comment kept getting deleted due to link, the title of the thread is "How to load a Sprite (Animated Gif) in a roblox Gui"
      as for "to any smart game developers, you already know not to do this", i don't understand what you mean, as loading animated sprites this way is objectively better than uploading every frame individually as long as the resolution doesn't exceed 1024 x 1024

    • @beyond_5dtemp
      @beyond_5dtemp 2 роки тому

      @@HungryFox02 The guy actually responded to this saying that he made this video when he was new to game development but appears to have deleted it.

    • @HungryFox02
      @HungryFox02 2 роки тому

      @@beyond_5dtemp yeah, this wasn't ever meant for use in an actual game, it was meant to show people what you can do with texture offsets. I should know seeing as i made the example script used in the video
      notes: a sprite loader is useful for small animated icons, or for lower resolution multi-image videos, it can cut down upload time (Obviously you'd use a gui image for this, not a texture)

    • @robloxlord_99
      @robloxlord_99  2 роки тому +1

      This was just an example on how to use it. Developers can do it in either client or server doesn't matter as long as they learned something from this. And I found it useful

  • @Gwoofus
    @Gwoofus 3 роки тому

    tuysm

  • @thepotatos2077
    @thepotatos2077 Рік тому

    cu

  • @mrchooc2038
    @mrchooc2038 2 роки тому

    Thanks!