Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GUI frame is not showing up despite having no errors?

script.Parent.MouseClick:Connect(function()
	local anSwer = game.StarterGui.shopLore.AnswersFrame
	local questions = game.StarterGui.shopLore.QuestionsFrame
	if anSwer.Visible == false then
		anSwer.Visible = true
	end

end)

here is my simple local script. the script is located in a clickdetector which is located in a character model.

the MainGui is located in the starter gui which has 2 frames(AnswersFrame and QuestionsFrame); Answersframe has a text label and image label while questionsframe has 2 text buttons.

rn i only wanna see the answers frame appear, and I think I did the script correctly so I don't get what's going on. Someone correct me pls thanks

1 comment

0

is the transparency 0

1 answer

you were changing it in starter gui which will only show if you reset or rejoin. They should be changed in player gui

you also said it was in a local script, local scripts CANNOT run inside of workspace (probably why you didnt get any errors (script wasnt running)) make this in a server script

script.Parent.MouseClick:Connect(function(player) -- click detector param (player)
--    local anSwer = game.StarterGui.shopLore.AnswersFrame
 --   local questions = game.StarterGui.shopLore.QuestionsFrame
local anSwer = player.PlayerGui.shopLore.AnswersFrame
local questions = player.PlayerGui.shopLore.QuestionsFrame
    if anSwer.Visible == false then
        anSwer.Visible = true
    end

end)

This discussion is preserved as it was. New answers, comments, and votes are closed.