Need help with TV script (Uses Video Frames)

I’m trying to make a TV script and need some help. there isn’t an error but it isn’t working right.

local screenPart = script.Parent
local surfaceGui = script.Parent.TVprograms
local videoFrame = Instance.new("VideoFrame", surfaceGui)
local videoFrame2 = Instance.new("VideoFrame", surfaceGui)

videoFrame.Looped = true
videoFrame.Playing = true
videoFrame.Video = "rbxassetid://5670809466" -- replace this with a real rbxassetid://
while not videoFrame.IsLoaded do
	wait()
end

videoFrame:Play()

wait(10)

videoFrame:Destroy()

wait()

videoFrame2.Looped = true
videoFrame2.Playing = true
videoFrame2.Video = "rbxassetid://5608410985" -- replace this with a real rbxassetid://
while not videoFrame2.IsLoaded do
	wait()
end

videoFrame2:Play()
wait(3)
videoFrame2:Destroy()

how can I fix this?

What exactly isn’t working? The video playing?

1 Like

exactly, the video isn’t playing at all.

Maybe try adding a print() underneath

while not videoFrame.IsLoaded do
	wait()
end

To see if the script actually makes it past this point.

1 Like