``So, this script looks to see if the text of two textbuttons is 'Action & Adventure" and "Easy" when the frame's visible property is changed. It doesn't do anything. if both statements are true, it should make on of two GUIs visible. Help please! I cannot show output, because when I click Play Solo or Run my studio crashes, but I can tell you that the Script Analysis doesn't see anything wrong. Thanks! Here is my LocalScript

wait(1)
player = game.Players.LocalPlayer
gui = player.PlayerGui.ScreenGui
results = gui.results
stepone = results.step1choice
steptwo =results.step1choice
RVisible = results.Visible
TMM = results.TMM.Visible
LD = results.TMM.Visible

results.Changed:connect(function()
	local value = results[RVisible]
	wait(1)
	results.Loading.Visible = true
	if stepone.Text== "Action & Adventure" then
		if steptwo.Text== "Easy" then
			num = math.random(1,2)
			if num== 1 then 
				TMM = true
				
			else
				LD = true
				
			end
		else
			script:Destroy()
		end
	else
		script:Destroy()
	end
end)

Also, this is the second time I have posted this, somebody at least comment! Last time I got 17 views, not a single comment or answer!!!

Here is the Gui Hierachy, as requested

StarterGui
	ScreenGui
		results
			LocalScript
			LD
			TMM
			Loading
			step1choice
			step1choice

2 comments

0

Can you provide a hierarchy of the GUI? The variables you provided are very difficult to read without context.

0

There is the Hierachy!