Since Roblox recently added the ability to play videos in-game, I was wondering is there a way to make a script for a GUI that allows the user to input the ID of video (or a diffident one) and the video would change to that video’s ID?
1 Like
You can change a VideoFrame’s video by changing the Video property.
Code sample:
videoFrame.Video = "VideoAssetID" // replace this with a real rbxassetid://
1 Like
ok, I will try that. I am not a good coder but I will make it work. Thanks
I set up some buttons to change the ID in game, if this helps, since if you’re looking to just change the ID its really simple.
game.Workspace.M.SurfaceGui.VideoFrame.Video = "rbxassetid://5608309393"
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)