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

My GUI script to open a scrolling frame is not working?

I have tired many times and made sure that all of the gui names are correct but it still does not work, please let me know what is wrong.

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	player.PlayerGui.Shop.ScrollingFrame.Visible = true


end)

2 comments

0

Any errors?

0

The only error I can think of is that you are doing this from a server script. Are you sure you are doing this inside of a local script?

1 answer

Use player:WaitForChild("PlayerGui") not player.PlayerGui in line 4 because PlayerGui inside player loads kinda slow

3 comments

2

this is funny because hes using an event so by the time he clicks that button, it should be able to have loaded the PlayerGui

0

god lol

0

Lol

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