local Button = script.Parent
	local v = script.Parent.Parent
	local close = v.CloseExe
	local exe = v.Extended
	local o = v.OpenExe
	local Open = false
	-------- Others ----------
	local ver = script.Parent.Parent.VersionName
	local rel = script.Parent.Parent.ReleaseDate
	local name = script.Parent.Parent.Name
	local descline = script.Parent.Parent.DescLines
	local t = script.Parent.Parent.DescriptionTitle.UpdateTitle
	local d = script.Parent.Parent.DescriptionTitle.UpdateDesc
	local ud = descline.UpdateDescBottom
	---------------------------------------
	local Line1 = descline.TextLine1
	local Line2 = descline.TextLine2
	local Line3 = descline.TextLine3
	local Line4 = descline.TextLine4
	local Line5 = descline.TextLine5
	local Line6 = descline.TextLine6
	local Line7 = descline.TextLine7
	local Line8 = descline.TextLine8
local Line9 = descline.TextLine9
local c = script.Parent.Parent.Configuration

	function OnClick()
		if Open == false then
			Button.Visible = true
			close.Visible = false
			Line1.Visible = true
			Line2.Visible = true
			Line3.Visible = true
			Line4.Visible = true
			Line5.Visible = true
			Line6.Visible = true
			Line7.Visible = true
			Line8.Visible = true
		Line9.Visible = true
		if c.Line1.Value == "nil" then
			Line1.Visible = false
		end
		if c.Line2.Value == "nil" then
			Line2.Visible = false
		end
		if c.Line3.Value == "nil" then
			Line3.Visible = false
		end
		if c.Line4.Value == "nil" then
			Line4.Visible = false
		end
		if c.Line5.Value == "nil" then
			Line5.Visible = false
		end
		if c.Line6.Value == "nil" then
			Line6.Visible = false
		end
		if c.Line7.Value == "nil" then
			Line7.Visible = false
		end
		if c.Line8.Value == "nil" then
			Line8.Visible = false
		end
		if c.Line9.Value == "nil" then
			Line9.Visible = false
		end
			t.Visible = true
			d.Visible = true
			ud.Visible = true
			exe.Visible = false
			ver.Visible = true
			rel.Visible = true
			o.Visible = true
			o.OpenExtenderHandler.Disabled = false
			print('The extended version of '..name..' has been closed!')
			script.Disabled = true
		end
	end

	script.Parent.MouseButton1Click:Connect(OnClick)

Works, but not how I want it to exactly. The parts similar to

		if c.Line1.Value == "nil" then
			Line1.Visible = false
		end

Aren't doing there job of making certain text labels invisible if a value equals a certain value. How do I fix this?

5 comments

1

Just to your info, I am using these in surface GUIs and using regular scripts. I am also testing this stuff in a live game.

1

uh idk if dis problem but uh maybe it the "nil" 

1

Its not, I use something similar in other scripts, that is a values value, not just an real nil.

0

i think some GUIs use LocalScripts

0

Its a suface gui tho, it doesn't support local scripts