Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I can't change the properties of a video, help?

comes up with the error: Playing is not a valid member of Part "Workspace.Tv.Video"

Script:

local Remote = script.Parent
local Tv = game.Workspace.Tv

Remote.ClickDetector.MouseClick:Connect(function()
	Tv.Video.Playing = true
end)

I understand videos in Roblox are new and all but this is something you should be able to do...

1 answer

The Playing property is only there to check if the video is currently playing. To actually play a video you have to use Play(). The correct code for you to use would be:

local Remote = script.Parent
local Tv = game.Workspace.Tv

Remote.ClickDetector.MouseClick:Connect(function()
    Tv.Video:Play()
end)

If you found this answer helpful, I would appreciate it if you accepted it.

Edit: I noticed your path is game.Workspace.Tv which means that you're trying to play a video directly on a part. If you want this to work correctly you need to put a video inside a SurfaceGui

This discussion is preserved as it was. New answers, comments, and votes are closed.