I have it connected to a script so when the Gui opens. This one is also a Local script. But here is the whole script.
local pad = game.Workspace.StepOnButtons.OvenOpen1
local closeb = script.Parent.MainFrame.BurgerFrame.CookBurger.TextButton
local frame = script.Parent.MainFrame
pad.Touched:Connect(function(hit)
frame:TweenPosition(UDim2.new(0.263, 0, 0.215, 0), "Out","Elastic")
local plrname = hit.Parent.Name
script.Parent.MainFrame.Countdown.TextLabel.CountdownScript.Disabled = false
game.Workspace[plrname].Humanoid.WalkSpeed = 0
game:GetService("Workspace").StepOnButtons.OvenOpen1.PersonUsingOven.Value = plrname
end)
closeb.MouseButton1Click:Connect(function()
frame:TweenPosition(UDim2.new(0.263, 0, -0.9, 0))
script.Parent.MainFrame.Countdown.TextLabel.CountdownScript.Disabled = true
script.Parent.MainFrame.Countdown.TextLabel.Text = "This will close in: 10"
end)