My script only has 3 lines, and im not getting any error message(s)
local Id = 5266510 game:GetService("MarketplaceService"):PlayerOwnsAsset(Id) script.Parent.CanCollide = false
My gamepass: https://web.roblox.com/game-pass/5266510/Vip
Script in ServerScriptService
game.Players.PlayerAdded:connect(function(player) local Id = 5266510 -- gamepass ID if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,Id) then -- check if they own it workspace.Part.CanCollide = false -- change part to door name end end)
It'd be much better to use collision groups but here is how to make CanCollide on an object false if they own the gamepass.