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 z=0 local T=0 for P,E in pairs(Loaded_Vid)do T+=1 local K=tostring(T)for T=1,chunk_size,1 do z+=1 local P=0 local o=0 local f=tostring(z)local x=E[K][f]for z=1,x_res,1 do o+=1 local T=tostring(o)local E=0 local K=0 local f=0 local c=false local N=0 if x[T]~=nil then for z in string.gmatch(x[T],"\046")do N+=1 if c==true then if N==1 then elseif N==2 then K=Hex_Dictionary[z]N=0 c=false P+=K end elseif z=="\120"then N=0 P+=1 elseif z=="\042"then c=true else if N==1 then E=Hex_Baked_Dictionary[z]elseif N==2 then K=Hex_Baked_Dictionary[z]else f=Hex_Baked_Dictionary[z]N=0 P+=1 local o=Color3.fromRGB(E,K,f)VideoScreen[T][P].Color=o end end 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)

