Rs92ks Posted August 25, 2019 Share Posted August 25, 2019 --Numeric password. Min 0 Max 9999 local gg=gg --password is 1839 local password=1839 gg.alert('Password required') local numa=gg.prompt({'1[0; 9]','2[0; 9]','3[0; 9]','4[0; 9]'},nil,{'number','number','number','number'}) if numa==nil then gg.alert('No password') os.exit() end local num=(numa[1]*1000)+(numa[2]*100)+(numa[3]*10)+numa[4] if password~=num then gg.alert('Wrong password') os.exit() end --Your lua script. Remove gg.alert('123456') gg.alert('123456') Seekbar Password.lua Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.