#shop gui not popping up after dialogue

1 messages · Page 1 of 1 (latest)

sinful grove
#

yeah dont show us the script then¬

earnest saffron
#

and this is the non working messy script

#

please let me know if you need the script copy and pasted as a message

#

if im doing anything wrong when asking for help i apologize im new

simple nacelle
#

How do you define gui?

earnest saffron
# simple nacelle How do you define gui?

i have no idea i just followed a tutorial and the assistant told me there was error in the script and i asked it to fix it for me, this is the gui for the dialogue '

#

and for the shop.

sinful grove
simple nacelle
sinful grove
#

yeah thats the issue

earnest saffron
#

if theres any tutorial videos u guys have to send me id appreciate it, i tried to search but couldnt get anywhere

elder canopyBOT
#

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

simple nacelle
# simple nacelle

The isseus youre using is you using

the gui and shopGui, even there is i assume, nowhere to define it.

earnest saffron
simple nacelle
# sinful grove

you simple need do the same things like this one, but also shopGui i assume

earnest saffron
#

i dont understand, im sorry you dont have to waste ur time on me its okay

simple nacelle
#

In this function

#

gui and shopGui is ALWAYS nil, since you didn't define it

#

So it will NEVER trigger them.

#

So you have to define the variable gui and shopGui.

simple nacelle
#

So you need do:

local playerGui = plr:WaitForChild("PlayerGui")
local gui = playerGui:FindFirstChild("shop")
local shopGui = ??? where is it located?
earnest saffron
#

okay so i should replace this function with the code you sent me?

nocturne cipher
#

no

earnest saffron
#

also the shopGui is located in the StarterGui

nocturne cipher
#

you need to specify where in startergui shopgui is

#

wait

#

were in the same game

#

lemme help

earnest saffron
#

thank u

simple nacelle
#

idk, there is no line count

nocturne cipher
#

syno

earnest saffron
nocturne cipher
#

in every script

earnest saffron
nocturne cipher
#

you're supposed to mention everything that ur using

#

u cant js type shop gui open

earnest saffron
#

this is the specific function with the linecount

nocturne cipher
#

if you dont do local shopgui = location of gui it wont recognise wht ur talking abt

#

whats the name script

nocturne cipher
#

he did?

simple nacelle
#

The location just bit suck

#

Line 22, line 23

nocturne cipher
#

then idk 😭

simple nacelle
#

but he used casesentive

#

in "Shop" instead "shop"

sinful grove
#

this whole script is WAY over complicated

simple nacelle
#

In line 23, change "Shop" to "shop" @earnest saffron

nocturne cipher
#

bro

nocturne cipher
#

all you need to do is make the transparency of the shop after the dialogue visible

earnest saffron
#

its already like that

simple nacelle
#

not the variable name

earnest saffron
#

yeah i found it

#

sorry

nocturne cipher
#

then the rest buttons are a different code

#

you need a currency n stuff

earnest saffron
#

i didnt talk to the npc yet

simple nacelle
#

Idk, well, honestly

#

This Tutorial is so dumb.

#

Idk why the tutorial tell you to clone from StarterGui to PlayerGUI

#

Who doing that?

earnest saffron
#

i just followed whatever cuz im new and have no idea how to script

elder canopyBOT
#

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

nocturne cipher
#

better to use a different one

earnest saffron
#

assistant told me that the script had error and i told it what error and it autofixed it for me

earnest saffron
nocturne cipher
#

also bin we need to add leaderstats or some currency type otherwise the shop is kinda useless

#

fix the shop first tho

earnest saffron
simple nacelle
#

May i ask, where is the script located in?

sinful grove
earnest saffron
#

sorry for the late reply i was looking at something

#

also if we cant figure something out, i can always just delete the dialogue

#

i want to implement it just because it would give more character to the shopkeeper

sinful grove
#

yeah this script is just uneccessarily long tbh

#

its a good idea though

earnest saffron
#

and the assistant for some reason made it this long

#

149 lines