local allowed, door = {Player = true, DisruptedWings = true}, Instance.new("Part", workspace)
door.Material = Enum.Material.Wood
door.Anchored = true
door.Size = Vector3.new(4, 7, 1)
door.Touched:connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) and allowed[hit.Parent.Name] then
door.CanCollide = false
door.Transparency = 0.5
wait(.5)
door.CanCollide = true
door.Transparency = 0
end
end)
COMMUNITY QUESTION
Restricted Door Script not working and not changing the CanCollide activation. Help?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Please format your code correctly by highlighting it all, and then pressing the 'Lua' button in the top left corner of the frame.
Oh ok, I knew something was wrong. Thanks!