Kitty Cats Doors Script -
reader = SimpleMFRC522() try: while True: uid, text = reader.read() if uid == ALLOWED_UID: print("Kitty detected. Opening door.") unlock_door() time.sleep(1) finally: GPIO.cleanup() Characters: KITTY (curious cat), DOOR (personified), HUMAN (owner).
local function onDoorClick(door) if door:FindFirstChild("Open") then -- Teleport cat (or player) through door local cat = workspace:FindFirstChild("Kitty") if cat then cat.HumanoidRootPart.CFrame = door.Target.CFrame end end end Kitty Cats Doors Script
# Kitty Cat Door Controller import RPi.GPIO as GPIO from mfrc522 import SimpleMFRC522 import time DOOR_SERVO_PIN = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(DOOR_SERVO_PIN, GPIO.OUT) pwm = GPIO.PWM(DOOR_SERVO_PIN, 50) pwm.start(0) reader = SimpleMFRC522() try: while True: uid, text = reader
(to audience) Every door is just a puzzle with a furry solution. (KITTY headbutts the door
(KITTY headbutts the door. Nothing. Then she reaches a paw under the gap and hooks the carpet – pulling the door slightly open.)
def unlock_door(): pwm.ChangeDutyCycle(7.5) # Open position time.sleep(5) pwm.ChangeDutyCycle(2.5) # Closed position