Basically the door works, but its throwing an error and I have a ton of them in game so its a big deal in the console.
Code:
script.Parent.Touched:connect(function(ply)
if game.Players:findFirstChild(ply.Parent.Name) then
if game.Players[ply.Parent.Name]:IsInGroup(3377124)==true then
script.Parent.CanCollide = false
wait(2)
script.Parent.CanCollide = true
end
end
end)
Error:
Workspace.Door.Script:2: attempt to index global 'player' (a nil value) Stack Begin Script 'Workspace.Door.Script', Line 2 Stack End

2 comments
Ahh thank you so much man, good to know for the future
no problem!