Need help making a script that allows a user to input a value to change the video frames properties

A continuation of this post: I need help making a GUI that allows user to input a video ID - #8 by captargo24

I need help making a control GUI script that works like the music input ID and it plays for everyone in the server. But in this case the video frame. I made the base for the video to play, made the surface GUI’s and made an int value for it. But that’s where I got stuck. I am a builder, not a coder. I research code and build off of it. I made something similar to this in python and know what I want to do (via IPO chart) but can’t seem to get it to work on Roblox with Lua. Can someone help me or walk me through the steps on how to make a script on how to input and save data on a text box & how to change the properties of the video frame?

Images below are what is done so far

a5 a4 a3 a2

1 Like

@captargo24 Fixing your code:

local rs = game:GetService("ReplicatedStorage")

local videoP1 = rs:WaitForChild("VideoPlay").Value
local videoNum = rs:WaitForChild("VideoValue").Value
local videoVL = rs:WaitForChild("VideoVolume").Value
local videoL = rs:WaitForChild("VideoLoop").Value
local VF = workspace:WaitForChild("VideoScr").SurfaceGui.Frame.VideoFrame

while wait(1) do
     VF.Video = "rbxassetid://" .. videoNum
     VF.Volume = videoVL
     if videoP1 == "T" or "t" then
             VF.Playing = true
     else
             VF.Playing = false
     end

     if videoL == "T" or "t" then
             VF.Looped = true
     else
             VF.Looped = false
     end

I also noticed that you have a LocalScript in a part. LocalScripts only run in client elements, like StarterGUI, StarterPlayer, etc.