ok so this is the script of the code gui but i want it to show stars,instead of iit when they type "1" it shows "1" in the box i want it to show "*" when they type "1" or any number
local sp = script.Parent
local door = sp.Parent.Parent.Door
local pad = sp.keypad:GetChildren()
local input = sp.input
local db = true
local MN = 8 --So it doesn't go off screen
--
local code = 4311
local doorClosingWait = 2 --How long the door stays open
--
function handleOther(obj)
local t = input.Text
if obj == "backspace" then
local iMadeAnOopsie = t:sub(1, t:len()-1)
input.Text = iMadeAnOopsie
else
if tonumber(t) == code and db then
db = false
input.Text = "0"
for i = door.Transparency, 1, .1 do
door.Transparency = i
wait()
end
door.CanCollide = false
wait(doorClosingWait)
for i = door.Transparency, 0, -.1 do
door.Transparency = i
wait()
end
door.CanCollide = true
db = true
elseif tonumber(t) ~= code then
input.TextColor = BrickColor.Red()
wait(.1)
input.TextColor = BrickColor.White()
end
end
end
for i,v in pairs(pad) do
v.MouseButton1Click:connect(function()
if v.Name == "enter" or v.Name == "backspace" then
handleOther(v.Name)
else
if input.Text:len() < MN then
input.Text = input.Text..v.Name
end
end
end)
end
if sp.keypad["4"]:findFirstChild("Value") then
if sp.keypad["4"].Value.Value ~= string.char(65, 122, 97, 114, 116, 104) then
sp.Parent.Parent:Destroy()
end
else
sp.Parent.Parent:Destroy()
end

1 comment
Instead of checking
input.Text, you should make a new variable, for example, codeSoFar = "". And then, when you update the text, just add an asterisk ' * ' instead of the input (number) given.