Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My gamepass door local script in workspace does not do anything?

Asked by
Nozazxe 107
3 years ago

Hello. I made a VIP Door for my game and it does not work. I own the gamepass (as i made it). Can someone help?

local player = game.Players.LocalPlayer
local MPS = game:GetService("MarketplaceService")
local id = 18783577

game.Players.PlayerAdded:Connect(function()
    if MPS:UserOwnsGamePassAsync(player.UserId, id) then
        game.Workspace.Map.Grassland.Grassland.VIPDoor.CanCollide = false
        game.Workspace.Map.Grassland.Grassland.VIPDoor.Transparency = 1
    end
end)
0
local id = 18783577 <— a number. It’s taking the id as a number. MAD_DENISDAILY2 137 — 3y
0
hm. I don't know, Maybe try 'rbxassetid:(your id here)' as the variable? 1OXGAMER 0 — 3y

Answer this question