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

My gui function isnt working properly. Help please?

I have a function to open a gui on click but its the same on a different block. so when i click a block the gui opens, but if i click the other block when the gui is open it closes... Help please?

local function Click(player)	
	player.PlayerGui.ropelength.Frame.Visible = not player.PlayerGui.ropelength.Frame.Visible
end
script.Parent.ClickDetector.mouseClick:Connect(Click)

1 answer

Hello, please replace 'mouseClick' to MouseClick due to roblox having capitalization sensitivity. Also make sure to check other as they might be misspelled. I recommend using WaitForChild function. Hope this helps!

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