Play_Video_Event.OnClientEvent:Connect(function()print("\112\108\097\121\105\110\103 \118\105\100\101\111 \115\111\111\110")wait(1)game.Workspace.Sound:Play()local a=0 local R=0 for y,k in pairs(Loaded_Vid)do R+=1 local z=tostring(R)for R=1,chunk_size,1 do a+=1 local y=0 local I=0 local D=tostring(a)local Y=k[z][D]for a=1,x_res,1 do I+=1 local R=tostring(I)local k=0 local z=0 local D=0 local f=false local J=0 if Y[R]~=nil then for a in string.gmatch(Y[R],"\046")do J+=1 if f==true then if J==1 then elseif J==2 then z=Hex_Dictionary[a]J=0 f=false y+=z end elseif a=="\120"then J=0 y+=1 elseif a=="\042"then f=true else if J==1 then k=Hex_Baked_Dictionary[a]elseif J==2 then z=Hex_Baked_Dictionary[a]else D=Hex_Baked_Dictionary[a]J=0 y+=1 local I=Color3.fromRGB(k,z,D)VideoScreen[R][y].Color=I end end end end end RunService.Heartbeat:Wait()RunService.Heartbeat:Wait()RunService.Heartbeat:Wait()RunService.Heartbeat:Wait()end end end)
-- white and black
--Play_Video_Event.Event:Connect(function()
--	print("playing video soon")
--	wait(1)
--	game.Workspace.Sound:Play()
--	local frames = 0
--	local chunks = 0
--	for _,v in pairs(Loaded_Vid) do
--		chunks += 1
--		local chunk = tostring(chunks)
--		local pixel = 0
--		for f = 1 , chunk_size do
--			frames += 1
--			local collums = 0
--			local frame = tostring(frames)
--			local current_frame = v[chunk][frame]
--			for i = 1 , x_res do
--				collums += 1
--				local collum = tostring(collums) -- number to string
--				for c in string.gmatch(current_frame[collum], "(%w)") do -- 'w' represents the individual letter returned
--					pixel += 1
--					if pixel == 6913 then
--						pixel = 1
--					end
--					if c == "0" then
--						VideoScreen[collum][pixel].Color = black_color
--					else
--						VideoScreen[collum][pixel].Color = white_color
--					end
--				end
--			end
--			RunService.Heartbeat:Wait()
--			RunService.Heartbeat:Wait()
--			RunService.Heartbeat:Wait()
--			RunService.Heartbeat:Wait()
--		end
--	end
--end)

Play_Video_Event.OnClientEvent:Connect(function()
	print("playing video soon")
	wait(1)
	game.Workspace.Sound:Play()
	local frames = 0
	local chunks = 0
	for _, v in pairs(Loaded_Vid) do
		chunks += 1
		local chunk = tostring(chunks)
		for f = 1, chunk_size do
			frames += 1
			local pixel = 0
			local collums = 0
			local frame = tostring(frames)
			local current_frame = v[chunk][frame]
			for i = 1, x_res do
				collums += 1
				local collum = tostring(collums) -- number to string
				local r = 0
				local g = 0
				local b = 0
				local instrunction = false
				local current = 0
				if current_frame[collum] ~= nil then
					for c in string.gmatch(current_frame[collum], ".") do -- 'w' represents the individual letter returned
						current += 1
						if instrunction == true then
							if current == 1 then
								-- do nothing as it started the instruction
							elseif current == 2 then
								g = Hex_Dictionary[c]
								current = 0
								instrunction = false
								pixel += g
							end
						elseif c == "x" then
							current = 0
							pixel += 1
						elseif c == "*" then
							instrunction = true
						else
							if current == 1 then
								r = Hex_Baked_Dictionary[c]
								-- checks if the frame must be skipped
							elseif current == 2 then
								g = Hex_Baked_Dictionary[c]
							else
								b = Hex_Baked_Dictionary[c]
								current = 0
								pixel += 1
								local color = Color3.fromRGB(r, g, b)
								VideoScreen[collum][pixel].Color = color
							end
						end
					end
				end
				--RunService.Heartbeat:Wait()
			end
			RunService.Heartbeat:Wait()
			RunService.Heartbeat:Wait()
			RunService.Heartbeat:Wait()
			RunService.Heartbeat:Wait()
		end
	end
end)
