#How do i give a gui specifically frame an input
1 messages · Page 1 of 1 (latest)
You add an input UI to the frame, like a TextButton, ImageButton, etc
ight
i want it to have like a numerical input
Textbox https://create.roblox.com/docs/reference/engine/classes/TextBox
But you'll need to use the property changed event for the text, and clear out any non-numeric characters.
how do i change it in a module script
What do you mean "change it"? Why are you adding UI in a module script? What are you even doing
i want to make dialogue
i have a local script
and under it
is a module script
i have it all set up
i just want the two gui frames with text under them to have input
so when the play presses the inputted button
the npc dialogue changes
Show me what you're doing
well how are you putting together the UI? Like where are you building it? Here you're just taking what's passed into the function
the localscript to
wdym
Is "textbox" a box with text and not the UI element "Textbox"?
You should be adding new gui to the thing the local script is on and passing it into the dialogue handler
Textbox is the
uhh
how do i explain it
can i show u
i changed it to frame
so im probs gonna delete it
Is this something you made or did you grab this from somewhere
made
and had help
i took a model that had dialogue and im studying it now
You just need to add a Textbox element in the same way you added a frame.
why?
im doing it
but why
im studying it and does it have to be this complex
You wanted number input didn't you?
It probably isn't the best way of handling UI when you're just starting.
k
i mean i understand it
but all of that
k
i made a text box
only parented to the screen gui
So you just gotta grab it in the local script like you do the others and pass it in to the module script like the others
put a textbox in the local script?
I'm worried you don't really have a good grasp on what you're even doing
maybe you should watch a tutorial that teaches instead?
using a module script is just adding a layer of confusion for you
was told not to do that
ik how the module script operates but i don't know how to add to it correctly
not to watch tutorials?
You need to pass the new element into the dialogue handler's init function
i did that i passed a new element
text box
lemme just show u
the respond one and the resbox one
there are no tutorials on this
I can't find one
that explains the responses part
If you passed the textbox in, now you gotta do stuff with it.
what can i do with a text box?
i read it
what can i do with focus
bro
this is so hard
How do I assign it to numbers
I don’t want it to be focused