åben en frame script

1, lav en screengui

2,put en textbutton i screengui

3, put en frame i screengui

4, put en script i textbutton

5,paste den here kode nedeunder i scripten

hvis det ik virker så download min model tryk på mig

local button = script.Parent.Parent.TextButton
local frame = script.Parent.Parent.Frame

button.MouseButton1Click:Connect(function()
	if frame.Visible == false then
		frame.Visible = true
	else
		frame.Visible = false
	end
end)