Keeps throwing this:
21:20:26.278 - userId is not a valid member of Part 21:20:26.278 - Stack Begin 21:20:26.278 - Script 'Workspace.Door.DONT DELETE IT', Line 6 21:20:26.279 - Stack End
or this:
21:20:25.397 - Argument 1 missing or nil 21:20:25.397 - Stack Begin 21:20:25.397 - Script 'Workspace.Door.DONT DELETE IT', Line 6 21:20:25.397 - Stack End
local debounce = true
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = hit.Parent.Name
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId,3744704) then
if debounce then
debounce = false
script.Parent.CanCollide = false
wait(2)
script.Parent.CanCollide = true
debounce = true
end
end
end
end)
