Hello I have got en error message when i try to make an vip only door with a script the script is located as a local script in starterplayer scripts the proplem is that the door doesnt disaper after you habe bought the gamepass. I hope that somebody can help me.
local player = game.Players.LocalPlayer
local gamepassId = 12345678
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, gamepass) == true
game.Workspace.GamepassDoor.CanCollide = false then
game.Workspace.GamepassDoor.Transparency = 0.5
end
end
** You are now Level 2! **