#I need help with the button connect
69 messages · Page 1 of 1 (latest)
Looks like the path to your button is incorrect
What does that mean? Im new to this
** You are now Level 1! **
The button is located somewhere else
Send the whole thing and the location of the button
so I can only use once?
global?
I don't get what you're trying to do
?
StarterGui is a container, thus if you connect any event to it, it won't run
Well, from my experience it doesn't work like that, you need to connect it to the one inside PlayerGui. But if it works then it works.
Ah fair nuf, yes I meant that
On my phone and I don't quite remember the path, will update it when I get home
I'm just trying to make a close and open button
for a gui
@tight basalt are you sure Shop button is not nil ?
They don't even know what that is
Global variBles
a = 4
print(_G.a) -- 4
you didnt set it properly
;compile
4
Where do you define you shop button ?
Do assert(_G.ShopButton, "No shop button") just before your mouse enter and tell me if there is the error
Where is it defined in the code ?
Where do you write
_G.ShopButton = ...
Cause it's nil by default
And your MouseButton1Up works ?
Try to redefine it in this script
how?
Just do _G.ShopButton = ... With ... Where is you shop button
But do it in this script
It means that your shop button is nil
Thank you
** You are now Level 2! **
is there a way to not put nil?
to set like other ui var
?
how?
so shop.something
Git dammit just write
_G.ShopButton = script.Parent.ShopButton
... -- the rest of your script
mb
It's alright 👍
But that should work
tysm for your help
Tell me if it's workinf