#I need help with the button connect

69 messages · Page 1 of 1 (latest)

rich widget
#

Send the script

tropic shuttle
tight basalt
#

sometime it happen to my clickin too

rich widget
tight basalt
#

What does that mean? Im new to this

weak needleBOT
#

studio** You are now Level 1! **studio

rich widget
#

The button is located somewhere else

#

Send the whole thing and the location of the button

tight basalt
#

so I can only use once?

rich widget
#

No

#

What is _G trying to do there?

tight basalt
#

global?

rich widget
#

I don't get what you're trying to do

stark socket
#

🙁

#

🙁

rich widget
stark socket
#

StarterGui is a container, thus if you connect any event to it, it won't run

rich widget
#

It did last time I tried

#

You're connecting the button

stark socket
#

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.

rich widget
#

On my phone and I don't quite remember the path, will update it when I get home

tight basalt
#

for a gui

tropic shuttle
#

@tight basalt are you sure Shop button is not nil ?

rich widget
#

They don't even know what that is

tropic shuttle
#
a = 4
print(_G.a) -- 4
stark socket
#

you didnt set it properly

tropic shuttle
sharp groveBOT
#
Program Output
4

tight basalt
tropic shuttle
tight basalt
#

is that when i click it doenst do the animation or the open

tropic shuttle
#

Do assert(_G.ShopButton, "No shop button") just before your mouse enter and tell me if there is the error

tropic shuttle
#

Where do you write

_G.ShopButton = ...
#

Cause it's nil by default

tight basalt
tropic shuttle
tropic shuttle
tight basalt
#

how?

tropic shuttle
#

Just do _G.ShopButton = ... With ... Where is you shop button

tropic shuttle
tropic shuttle
weak needleBOT
#

studio** You are now Level 2! **studio

tight basalt
#

to set like other ui var

#

?

tropic shuttle
#

By setting it

tight basalt
#

how?

tropic shuttle
#

It's litterally the same

tight basalt
#

so shop.something

tropic shuttle
#

No

#

_G.ShopButton

#

=

#

Your stuff

tropic shuttle
# tight basalt

Git dammit just write

_G.ShopButton = script.Parent.ShopButton
... -- the rest of your script
tight basalt
#

mb

tropic shuttle
#

It's alright 👍

tight basalt
#

tysm for your help

tropic shuttle
#

Tell me if it's workinf