I’m attempting to achieve to make a locally-opened door for a game, locally mostly because I really don’t want people to keep opening the door for everyone. This is a localscript under a part as it’s parent.
The code I have currently, is:
local key = game.Players.LocalPlayer.Backpack:FindFirstChild("Key")
if key then
local tag = key:FindFirstChild("canOpen")
if tag then
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false