How to make open door with key in Studio lite
HTML-код
- Опубликовано: 13 дек 2024
- Like and Subscribe for more videos 🎅🎁🎄
Script :
SLN_Lite Script
--print("Hello, World!")
local door = script.Parent.Parent
local prox = script.Parent
prox.Triggered:Connect(function(Player)
if Player.Character:FindFirstChild("Key") then
prox.Enabled = false
print("door opened")
door.Transparency = 1 -- Make door invisible
door.CanCollide = false -- Make it so you can't touch the door
-- Suppression de la clé du joueur après l'avoir utilisée
local key = Player.Character:FindFirstChild("Key")
if key then
key:Destroy() -- Supprime la clé
end
else
print("DOESN'T HAVE KEY GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR")
end
end)
Second can I get a hi
@@TherealReldi hi
Hi how I make a roblox survival game plsd