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.
(creaking sound) You lack thumbs. You shall not pass. Kitty Cats Doors Script
(to audience) Every door is just a puzzle with a furry solution. for _, door in pairs(doors) do if door:IsA("BasePart")
Clever. But this is only one of seven doors you must defeat. (to audience) Every door is just a puzzle
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 Cat Doors - Simple Roblox Script (LocalScript in StarterPlayerScripts) local player = game.Players.LocalPlayer local mouse = player:GetMouse() -- List of door parts (named in workspace) local doors = workspace:WaitForChild("Doors"):GetChildren()
(meows, then in voiceover) That door. It’s new. Yesterday, the big apes carried it in. Now it hides the room where the shiny fish can lives.