So I wanted to make a video In-Game and make it repeat but the video keeps flickering for some reason, here is the script (the script is not a localscript, it's a normal one)

while true do
	for i = 1,25 do
		for _,v in pairs(script.Parent:GetChildren()) do
			if v:IsA("Decal") then
				v.Texture = string.format("rbxgameasset://Images/d",i)
			end
		end
		wait()
	end
end

I put the video images in rbxgameasset://Images/ thinking that it would preload, it didn't. (note that I have no clue if preloading will solve the flickering issue.) What can I do?

2 comments

0

Yea i think the problem here is the game hasn't preloaded yet (Or it preloaded) Maybe you can slow down the framerate ?

0

I tried making a preload script but I don't know how to preload the assets from rbxgameasset