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

Have a shop gui that opens in Studio but not Player?

I followed alvinbloxx's "How to make a awesome shop gui" and it opens in ROBLOX Studio when I click it but when I load it in ROBLOX Player it does nothing.

5 comments

1

if u press f9 while in roblox player u can check the server log and see the error

0

Without the code, I can only guess that you probably used a regular script instead of a local script

0

Or the game is in F.E but you passed on the wrong arguments. For example, you passed on the player Mouse instead of the Mouse.Target

0

AlvinBloxx.... no need to say anything else lmfao

0

I used AlvinBloxx when I started out and now I am experienced with knowledge of how to script with FE and currently practicing with aSync

2 answers

hiimgoodpack, your not helping :/

I know you problem cause since I learned how to code by reading codes, I was following alvinblox examples. The problem is that your not using :WaitForChild().

If you have copied what he did correctly in the button's local script just add :WaitForChild for every variable required.

for example you might have these;

local button = script.Parent
local frame = script.Parent.Parent.Parent:WaitForChild('Frame')
local closebutton = script.Parent.Parent.Parent:WaitForChild('CloseButton')

Follow my example and add WaitForChild at near the end so that the object is inside the '' marks.

-- BlackOrange3343

If this helped, make sure to accept answer and upvote :D

You need to use a Local script, so it is on when the player joins or when a specific thing is clicked, it won't automatically go on, it needs to be activated by a script.

1 comment

1

Better idea:PUT IT IN STARTERGUI

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