Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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.

1
if u press f9 while in roblox player u can check the server log and see the error TheScriptKing 102 — 6y
0
Without the code, I can only guess that you probably used a regular script instead of a local script ThePhantomG 30 — 6y
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 ThePhantomG 30 — 6y
0
AlvinBloxx.... no need to say anything else lmfao Pejorem 164 — 6y
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 LastApollo 76 — 6y

Closed as Not Constructive by 2eggnog and DanzLua

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
1
Answered by 6 years ago

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

Ad
Log in to vote
0
Answered by
Smach28 10
6 years ago

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
Better idea:PUT IT IN STARTERGUI hiimgoodpack 2009 — 6y