#SURFACE GUI NOT WORKING WHEN BUTTON IS PRESSED

1 messages · Page 1 of 1 (latest)

tacit pulsar
cedar crag
#

Where is the object naped screen1

#

Named*

tacit pulsar
#

in a group here

#

its my first time w surface gui and i need this to work asap

#

its for my friend

cedar crag
#

Then why are you using the path with a surface gui

tacit pulsar
#

wdym by that

cedar crag
#

The path in the script

#

Look at the errror

tacit pulsar
#

idk rlly

#

shall i give u the whole script

cedar crag
#

No, the error says it' all

#

Why are you looking for screen1 in the scrolling frame

tacit pulsar
#

idrk

cedar crag
#

Lemme see the script then

tacit pulsar
#

i also need screen2, screen3 and screen4 to work

#

not just screen1

#

and gears

#

i used basic buttons before but

#

i wanna use gui now

cedar crag
#

Can you just send the first but as screenshots

#

It's hard to read as TXT file

tacit pulsar
#

screenshot the script?

cedar crag
#

Yes

#

The first part

tacit pulsar
#

might be a little too much but these are the first lines

cedar crag
#

Script.parent.parent is the surface gui

#

That's where your looking for the screen

#

Which it is not in the surface gui

tacit pulsar
#

oh..

cedar crag
#

Just use game.workspace then type the rest of the path

tacit pulsar
#

alr lemme try rq

#

i did game.workspace.screens if thats incorrect

cedar crag
#

Yea and then whatever screen you want to access

tacit pulsar
#

how do i do all of them

#

cuz when i try type them it only lets me choose 1

cedar crag
#

The same 4 variable thing you did before

tacit pulsar
#

then i cant add more

cedar crag
#

local S1 = game.workspace.screens.screen1

#

Then do that more times like you did before

cedar crag
#

Yea, it kinda looked AI to me too

#

Vibe coder

tacit pulsar
#

it is

#

not vibe coder tho

#

studio filled in some gaps for me

cedar crag
#

I don't use the AI, it always just messes up

#

It's easier to just do the system however works for you so that it doesn't break

#

Anyways did you do what I said?

tacit pulsar
#

still isnt working i believe

#

what the freak

cedar crag
#

Send me a screenshot of the first 20 lines

tacit pulsar
#

alright

cedar crag
#

And the errors if any

tacit pulsar
#

i think i did this very wrong

#

i am terrible at GUI

cedar crag
#

Bro

#

Replace a1

#

Iops

#

Brih

#

Replace the variables you wrote before

#

With the new ones

#

And use the same name

tacit pulsar
#

to s1?

cedar crag
#

No

#

Replace a4 a5 a6

#

And a7

tacit pulsar
#

okay

cedar crag
#

How much of this code was AI generated

#

Because there are a lot of comments

tacit pulsar
#

idk i didnt make it alone

#

my friend did it

cedar crag
#

Bro so your friend made that using AI

#

How much scripting knowledge do you have

tacit pulsar
#

i didnt even need to make these they just wanted me to tag along w it and now add gui

tacit pulsar
#

little on cframe

#

other things im okay at

cedar crag
#

Imo you should practice more before making complex things like this

tacit pulsar
#

im not using these luckily

pulsar tundraBOT
#

studio** You are now Level 6! **studio

tacit pulsar
#

what do i change them to again

cedar crag
#

The loops?

pulsar tundraBOT
#

studio** You are now Level 6! **studio

tacit pulsar
#

those things

#

what do i add to their place

cedar crag
#

Those are variables

#

Anyways

tacit pulsar
#

oh

#

oosp

cedar crag
#

Replace them with the new path

#

Like I said

tacit pulsar
cedar crag
#

The same path to the screen yes but not the name

#

Just replace the values of a4, a5, a6, a7

#

With the new path

tacit pulsar
#

alright

#

shall i name the other 3 like

#

S2, S3, S4

cedar crag
#

No bro keep the name

tacit pulsar
#

alright

cedar crag
#

I said that like 3 times

#

Does it work?

long shard
#

like wtf

#

also your reusing the same tween info

#

why not just like put it out the function so you can use it anytime???

tacit pulsar
#

give up on this

#

it isnt even for me anyways

long shard
#

also about this

#

what are you trying

#

to find?

#

if its something on the gui then

#

check the playerGUI

#

instead of starterGUI

cedar crag
#

Yea idk man

long shard
#

if you are checking starterGUI

cedar crag
#

AI is why I might stop debugging for people

long shard
#

use :WaitForChild

#

aswell

cedar crag
#

True

long shard
#

cause if you try to find it instantly without it even loading then it would sure cause an error

cedar crag
#

Yea

#

Would definitely Break the whole script

long shard
#

and i did notice your not using :WaitForChild so might aswell try it if it works

tacit pulsar
#

im gonna leave it to my friend to do it

cedar crag
#

Anyways if the next person I help uses AI then I'ma just mind my own business because it's too hard helping non coders debug AI scripts

tacit pulsar
#

they wanted it

long shard
tacit pulsar
#

they just asked me to make gui for them but its on them now

long shard
cedar crag
#

Same