#Is this how u add keybinds to a frame

1 messages · Page 1 of 1 (latest)

hot verge
dense socket
#

What is responebox??

#

Oh

#

Dude 😭

hot verge
#

is a frame

dense socket
#

Yea but why are you making input a frame

hot verge
#

a textlabel

dense socket
#

Ion think thats how itbworks brochacho...

hot verge
#

oh

dense socket
#

You are making an important value turn into a frame

#

Its imposible

hot verge
#

how bout not

#

now

dense socket
#

I'll cry

#

You need to read input

#

Not change it

hot verge
#

or the textlabel

dense socket
#

Can you explain further?

hot verge
#

wdym by this

hot verge
#

so

#

i want the number 1 to be pressed

#

and when it's pressed

#

the option responebox

#

will trigger and the npc will change it's dialogue like a conversation

dense socket
#

You get option buttons in dialogue.

hot verge
#

if u press 1 u will reset

dense socket
#

?

#

Oh

hot verge
#

2 is nothing happens and he respond with something like

#

"ok"

dense socket
#

Inside the uis do if GPE then return end
Then check of the input is one and inside of that check reset your dialogue

#

Like

hot verge
#

i didn't think dialogue would be this hard

#

the module script just complicates things further

#

my professional friend helped me

dense socket
#
if GPE then return end
if input.KeyCode == Enum.KeyCode.One then
-- your reset function
end
hot verge
#

this assigns it

#

right

dense socket
#

Yea

#

ResetFunction()

#

Like it leads to your function if you have another button that also resets it

#

I mean in ui

hot verge
#

can i use that

#

like

#

input.keycode == enum.keycode.one then

dense socket
#

Oh end it and then start it

hot verge
#

module:require

#

i just want the frame and the text label

dense socket
#

You can add another function to the module that resets it, like insert the functions of ending it and starting it but change it a bit

#

Oh wai

#

I gotta go soz

hot verge