This key script is a local script which is placed in replicated first. It works perfectly in test mode but when you actually join it doesn't work. Anybody know why and how to fix it?
game.workspace.BDoor1.Touched:connect(function(hit)
if hit.parent.name == "Key" and hit.Parent.ClassName == "Tool" then
game.workspace.BDoor1.Transparency = 1
game.workspace.BDoor1.CanCollide = false
end
end)

2 comments
Damn, you just barely got there first haha. Upvoted.
haha