AS you saw roblox added Video Gui, But I dont saw how to use it or some, I dont saw a option for add a video or if video gui its unlocked for all people, Can you help me?
You can find the wiki here: VideoFrame | Documentation - Roblox Creator Hub
I myself am now looking into it, but to the best of my knowledge it was/still is a beta feature? (Please correct my about this if I’m wrong as I very well could be.)
The example code on the wiki:
local screenPart = Instance.new("Part", workspace)
local surfaceGui = Instance.new("SurfaceGui", screenPart)
local videoFrame = Instance.new("VideoFrame", surfaceGui)
videoFrame.Looped = true
videoFrame.Video = "SomeValidAssetID" -- replace this with a real rbxassetid://
while not videoFrame.IsLoaded do
wait()
end
videoFrame:Play()
Seems the same as an ImageLabel or ImageButton just with a video from the library.
Edit: Roblox library for videos: Roblox
I couldn’t find a way to upload videos yet which leads me to believe that it is still a closed beta feature for a select group so people can’t upload inappropriate videos.
Yes they added that feature!
You can open Toolbox and go to “Videos”
Find a video or clip you like and select it!
You can click on a block or wherever you want the video!
If you need help please reply!
Unless your looking for a GUI and not on a part.
SxmplyJxsh âś®
I cannot see the video only hear it
How do you have the video frame set up?
Its Looped And Playing, On a unanchored part, Its the child of a Imagelabel (I also tried without image label)
And if i try the scripted Way Happens the same
local screenPart = Instance.new(“Part”, workspace)
local surfaceGui = Instance.new(“SurfaceGui”, screenPart)
local videoFrame = Instance.new(“VideoFrame”, surfaceGui)
videoFrame.Looped = true
videoFrame.Video = “rbxassetid://5608303923” – replace this with a real rbxassetid://5608303923
while not videoFrame.IsLoaded do
wait()
end
videoFrame:Play()
I just tested a video frame in a ScreenGui and could see it but not hear it. Give me a second to test with a surface GUI. It could be that it’s on a different side of the part than the one you can see.
Just looked at their test code, the VideoFrame is Size 0, 0, 0, 0 by default.
Sorry I dont know so much about lua, How I can Change The size to the new value that the script created?
Add this line after the creation line for it.
videoFrame.Size = UDim2.fromScale(1, 1)
Thanks for help me mrloney1221 and sxmplyJxsh