basically i want to create a 3d padlock with a code and stuff
like in this video:
https://www.youtube.com/watch?v=PM_4fBBdu34
i havent seen any other tutorials and ive really only seen this be done like three times…
basically i want to create a 3d padlock with a code and stuff
like in this video:
https://www.youtube.com/watch?v=PM_4fBBdu34
i havent seen any other tutorials and ive really only seen this be done like three times…
Just keep track of how many numbers there are for each combination, and then have them able to be selecte and when they are sleect you can rotate the corresponding part of the lock and update its current number
local Lock = {}
Lock.__index = Lock
function Lock.new()
local self = setmetatable({}, Lock)
self.Dials = {
["1"] = 0,
["2"] = 0,
["3"] = 0,
["4"] = 0,
["5"] = 0,
["6"] = 0,
["7"] = 0,
["8"] = 0,
["9"] = 0,
["0"] = 0
}
return self
end
function Lock:UpdateDial(dial)
self.Dials[dial] = (self.Dials[dial] + 1) % 10
end
not gonna lie i dont know what any of that means or what to do with it
Then ask away im here to help!