This script needs to check the text of a textlabel, and make a certain GUI invisible based on that. The output I get when I run a sever is "Easy is not a valid member of Frame" But it is...
gui = game.Players.LocalPlayer.PlayerGui.ScreenGui
Step2 = gui.Step2
Hard = Step2.Hard
Easy = Step2.easy
step1choice = Step2.step1choice
Step2.Changed:connect(function()
local value = Step2.Visible
if step1choice.Text == "Action & Adventure" then
Hard.Visible = false
elseif step1choice.Text == "Building & Comedy" then
Hard.Visible = false
elseif step1choice.Text == "Horror & Scifi" then
Easy.Visible = false
elseif step1choice.Text == "Town & RPG" then
Hard.Visible = false
end
end)
