Building experience

I’ve recently started making a game.
as The part of the game I added a television and I want to add a image or a video to it but can’t because I am not experienced much. How do I make it work. image

1 Like

You could insert a SurfaceGui and a Video frame.
image
Then, configure the video
image
You don’t have to use the same properties as me, you should experiment and find the best configuration yourself.

3 Likes

You can try to make SurfaceGui inside the part and then insert image or videoframe inside SurfaceGui. Then add rbxid of the image or videoframe

Thank you for the answer I couldn’t make it myself.

I wanted it work with a click of a button which need more scripting to it so I cant call this solution to this post.

For a button you need a button part and a clickDetector and a script in it .
image

the script itself -

local ClickDetector = script.Parent.ClickDetector
local VideoFrame = script.Parent.Parent.Screen.SurfaceGui.VideoFrame

ClickDetector.MouseClick:Connect(function()
	if VideoFrame.Playing then
		VideoFrame.Playing = false
		VideoFrame.Visible = false
	else
		VideoFrame.TimePosition = 0
		VideoFrame.Playing = true
		VideoFrame.Visible = true
	end
end)
3 Likes

Thank you so much this was really helpful