In StarterPlayerScripts I have a localscript and in the workspace i have a part named barrier and if you own a gamepass for it its supposed to make the door have cancollide to false but its not working
-- LocalScript inside StarterPlayerScripts
local MarketPlaceService = game:GetService("MarketplaceService")
local VipDoor = workspace:WaitForChild("Barrier")
local GamepassId = 21923570
if MarketPlaceService:UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId,GamepassId) then
VipDoor.CanCollide = false
else
VipDoor.CanCollide = true
end