
Key Required Patched
(new) auto door opener
Lua Script•50 lines (1188 chars)
local number = "2" -- stage number
function enterKey(rm)
local level = game.Workspace["Room"..rm]
local levelKP = level.CodeDoor.KeyPad
local inptd = levelKP.Input.SurfaceGui.TextLabel
local ans = level.CodeDoor.Code.Value
local function returnCD(name)
print(name)
if tonumber(name) ~= nil then
return levelKP["B"..name].ClickDetector
end
if name == "-" then
return levelKP.Minus.ClickDetector
end
return levelKP[name].ClickDetector
end
fireclickdetector(returnCD("Clear"))
wait(0.000001)
fireclickdetector(returnCD("Clear"))
wait(0.000401)
fireclickdetector(returnCD("Clear"))
wait(0.000301)
fireclickdetector(returnCD("Clear"))
wait(0.000201)
fireclickdetector(returnCD("Clear"))
wait(0.000101)
t={}
ans=tostring(ans)
ans:gsub(".",function(c) table.insert(t,c) end)
for i,v in pairs(t) do
fireclickdetector(returnCD(v))
wait(0.0000401)
end
wait(0.19)
if inptd.Text == ans then
fireclickdetector(returnCD("Enter"))
else
wait(0.000353)
enterKey(number)
end
end
enterKey(number)Features & Information
opens doors for you without you calculating the answer :)
* opens keypad door within a second
* failsafe check (mostly working)
(ui coming soon)
Community Comments (0)
No comments yet for this script.
