Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a .gif that will look more realistic...? (Please don't downvote)(Answered)

I just wanted to know, How do you make a .gif that will look more realistic and not like a millisecond behind? Is there a way to make it realistic or is it always going to be this way? Sorry if I am not making this understandable, but I just had a curiosity.

1 answer

✓ Accepted answer

Instead of using Heartbeat, use RenderStepped. Make sure the script is local.


This is your last script but with RenderStepped instead.

Frames = {251495903,251495914,251495930,251495944,251495974} --A Table/Array doesn't NEED to be local.
local frame = 1

game:GetService("RunService").RenderStepped:connect(function()--Local Script!
    script.Parent.Image = "http://www.roblox.com/asset/?id="..Frames[frame]
    frame = frame+1
    if frame > #Frames then
        frame = 1
    end
end)

Hope this helps!

2 comments

1

ugh you beat me.

6

You forgot to explain: Why should he use 'RenderStepped'? What does it do? How does it work? :P

This discussion is preserved as it was. New answers, comments, and votes are closed.