Images in ipairs

I put my image in tabe and use for in ipairs to get my image to imagelabel but my image keep change same image

local vhs = script.Parent.ImageLabel

local rs = game:GetService("RunService")

local StaticImages = {
	'rbxassetid://7472792778';
	'rbxassetid://10757636219';
	'rbxassetid://520992855';
	'rbxassetid://10195656966';
	'rbxassetid://4689700119';
	'rbxassetid://9470950';
	'rbxassetid://3203623798';
	'rbxassetid://2510585515';
}


while true  do
	for i,v in ipairs(StaticImages) do
		rs.Heartbeat:Connect(function(step)
			vhs.Image = StaticImages[i]
		end)
	end
end```

Why are you using a while loop and RunService.Heartbeat, use either of them.

1 Like

I Forgot
I Found heartbeat i test it

Why are you using a while true loop and heartbeat?

Also give this a shot

while true do
	for i, v in pairs(StaticImages) do
		vhs.Image = v
		task.wait(0.1)
	end
end
1 Like