|
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
(from offstage) Kitty? Are you breaking into the pantry again? Kitty Cats Doors Script
for _, door in pairs(doors) do if door:IsA("BasePart") then door.ClickDetector.MouseClick:Connect(function() onDoorClick(door) end) end end Detects a cat’s microchip and unlocks the door. Kitty Cats Doors Script
To give you a useful answer, I’ve broken this into three possible interpretations. Please clarify if none of these match. Assuming “Kitty Cats Doors” is a mini-game where a cat moves through doors. Kitty Cats Doors Script
def unlock_door(): pwm.ChangeDutyCycle(7.5) # Open position time.sleep(5) pwm.ChangeDutyCycle(2.5) # Closed position
Watch me.
Clever. But this is only one of seven doors you must defeat.
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
(from offstage) Kitty? Are you breaking into the pantry again?
for _, door in pairs(doors) do if door:IsA("BasePart") then door.ClickDetector.MouseClick:Connect(function() onDoorClick(door) end) end end Detects a cat’s microchip and unlocks the door.
To give you a useful answer, I’ve broken this into three possible interpretations. Please clarify if none of these match. Assuming “Kitty Cats Doors” is a mini-game where a cat moves through doors.
def unlock_door(): pwm.ChangeDutyCycle(7.5) # Open position time.sleep(5) pwm.ChangeDutyCycle(2.5) # Closed position
Watch me.
Clever. But this is only one of seven doors you must defeat.