Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make a Keypad system not working?

Asked by 6 years ago

So I have a game and i'm trying to make a secret room, that is activated with the correct keypad, but whenever i press the button in the surfacegui, it replaces the current text with number, even though the code is suppose to be multiple digits. I'm not going to list every number button, so here's #1:

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.TextBox.Text = .."1"
end)

This TextBox and TextButton are in a surfacegui inside a part, and the local script in inside of the textbutton.

0
That would error. You're trying to concatenate nothing to the string "1". User#19524 175 — 6y
0
Concatenate a blank string. "" You're not concatenating it to anything. User#19524 175 — 6y
0
what does that mean SBlankthorn 329 — 6y
0
Put replace "1" to ("1") turbomegapower12345 48 — 6y
0
No, wrapping strings in brackets is redundant. Its only use is in math. User#19524 175 — 6y

1 answer

Log in to vote
-2
Answered by 6 years ago

Replace the textbox with a textlabel.

0
This should be a comment. User#19524 175 — 6y
Ad

Answer this question