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
-- 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
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.
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
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 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)
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
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
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
thanks bro! 🙂🙂
Thanks! I was stuck for a moment like "where is the script😭" lmao
-- 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
tysm lol
Tysm i was looking for it!
sussy baka
eyw
you absolute human being i love you so much thank you
Thanks! You deserve an subscriber!
a*
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.
Could you make a video about how to apply this to a startercharacter or player to have 2d sprite movement mechanics?
Could you show how to put a gif onto a screen gui?
Yes, you you can change the image offset with the reactoffset or whatever and just change the script to Change that
If anyone wants to do this in ScreenGui watch this video! :))
UPDATE VIDEO: ua-cam.com/video/pojK0UQDzdI/v-deo.html
can you give us the script?
hi please help I've been trying to do this in a mesh part but it keeps glitching
Thank you so much! This video is truly legit.
no
@@Nos_pnl Well I guess you did something wrong then.
Could you post a tutorial about ray casting
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.
i cant even download a spritesheet it doesnt allow me
Is there a way to add it into a gui for a loading screen?
the guy running looks suspiciously like jerma
how do you get the gif script that you used
how do i find out the rows and columns??
Good tutorial. The development team has many changes A.P.I. on the development side and even some newer tutorials are needed.
Hey idk if ur still active but how do I make it that it only plays when a part is touched and only once?
Tell Me How to Add GIF in BillBoardGUI Next. Please???
I need this too
where is the GIP script?
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.
It is possible to script that with SurfaceGUI, but it will take longer setting it up as a GIF.
@@RadiZach i have no idea. I am just a bad scripter Rl.
@@marmaje69 Oh.
@@marmaje69 I am excellent at scripting, I can show it to you for free, or 5 robux to pay if you want.
does this work with billboardgui?
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!
yes you have to be really gross to do it
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
WOWWW Thanks you working!?!?!?!
i got this gif but it goes blurry and thin
The image goes up and skips to next how do i do this smooth
How can I make this work on a Frame In screengui?
Nice tutorial
this is cool but how do i make it into a rig
Amazing!
cool gif!
Awesome video. Thank you ;)
can i put a gif in the screen gui?
Nice work
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
OMG TYSM FOR THE WEBSITE CUZ I GONNA MAKE ANIMATIONS FOR OBBY CREATOR!!!!!!!1111
TYSM IT WORKS!!!
its possible add them to the sky??? plsssssssssssssssssssssssssss
what is the program you used to split the frames of the image?
Here you are!
Doesn't work my sprite sheet is bugging out
edit: nvm i did something wrong
is it possible to make a gif have "wait()" so it plays after 5 seconds
yes
@@robloxlord_99 ok sweet
Does it have to be a surface gui or does it work with screen gui too?
it works with screen gui too
it took 2 minutes to verify only?
can you tutorial of the gifs but on gui?
Do you mean screen Gui?
@@figotheanimator4883yes
Good vedio bro
Can you make this but for beams? im trying to make a nextbot game and this would be perfect
Does this work with Guis?
Yes it does:)
@@robloxlord_99 how do i get it to work with guis?
wut is the script???
can you give the script i hate typing
how to make a video with keyframes
where gif?
gaming moment
Very amazing!!!!
Thanks!
Does it work in mobile?
Yes:))
" b a n a n a. "
Great video! But why is it not working anymore?
it should work. make sure you watch again
@@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.
Thx ty thanks thankyou
Not what I was looking for
This shit doesn't work.
LOL YOU DID NOT TRY MINE WORKS
To any smart game developers, you already know not to do this but to any new game developers, don't do this.
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
@@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.
@@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)
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
tuysm
cu
m
t ur duck
Thanks!