The error:
23:05:46.807 - Players.MinecraftButterfly87.PlayerGui.StaffDoorScript:23: attempt to index nil with 'PlayerHasPass'
The LocalScript inside StarterGui:
game.Players.PlayerAdded:Connect(function(player)
if game.MarketplaceService:PlayerOwnsAsset(player,9304750) then
game.Workspace.Backdrop.Obby.VIP.CanCollide = false
end
end)
What should I do to fix this error and make the door's CanCollide property be false for players who own the VIP gamepass?

1 comment
That PlayerHasPass error isn't in the script you posted. I believe that error is from another script. If it's not, then please post that script too.