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

Is there a way of adding a video animation to your game?

I doubt there is a video feature in Lua. Is there anyway of adding a video animation into your game? Is Frames Per Second an option? Please list ALL(or if there is too many then, SOME, from most effective to least effective) of the methods of adding a video animation into your game

Please provide a script as an example for each possible method if a script is necessary for that feature.

Please do not misunderstand me and think I am referring to creating a Roblox animation with the animation feature that is on Roblox Studio/Lua. No, I am referring to adding an actual animated video, that was animation from a different program, into my game, by any methods possible, for example fps.

If there is methods, is there a way of examinating the time the video animation is in? Like for example, YouTube and other video programs has a number feature that calculates the minutes and seconds the watcher is on the video. When you pause the video, it shows the time you're on. For example, watching a video, I'm on 3 minutes and 45 seconds ( 3:45 ) By this, I also refer to examinating the time the watcher is on as the video continues.

Simplified, I have 3 questions.

Is there a method of adding a animated video?

Can you calculate the time and seconds the user is on the video as it continues and pauses?

How many methods are there of adding animated videos into your game? Please explain them throughly.

2 comments

1

Outside of having to upload every frame of the video, no.

1 answer

yeah but it is really hard, I wouldn't recommend doing this..

first, you have to make a TON of images, or use cutscene editior then you have to group the images

inside that grouped images do this script

local animate = 1
for _, v in pairs(script.Parent:GetChildren()) do  -- the set of images
	local z = v.ZIndex
	animate = animate + 1
	z.Value = animate.Value
end

(WARNING) making a ton of images is gonna be really tough, it will take a long time AND (ANOTHER WARNING) Untested and you may have to alphabetically order it by names D:

thanks, greatneil80

4 comments

0

That's not how you set properties, man.

0

Can you please explain how this script works and how I add images?

0

Can you please also show an example of you adding about 5 different images to the script?

0

First, alphabetically order any images that can design an animation then either say wait(.05) decal.Texture = Url or use the dumb script i made :3 thats the best i got

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