I posted a question yesterday,about a game pass issues that was resolved but a another issue has arisen.
this script
Gamepassid = 5654588 function Click(mouse) player = game.Players.LocalPlayer.Name player2 = game.Players.LocalPlayer if game:GetService("GamePassService"):PlayerHasPass(player2, Gamepassid)then character = player.Character stage = tostring(player.Leaderstats.Steps.Value) stagepart = game.Workspace.Steps:FindFirstChild(stage) stagepos = stagepart.CFrame if game.Workspace.Steps:FindFirstChild(stage)== nil then msg = Instance.new("Hint") msg.Text = "Step still Loading Please try again in a few seconds" else character.HumonoidRootPart.CFrame.Value = stagepos + CFrame.new(0,3,0) end else game:GetService("MarketplaceService"):PromptPurchase(player2,Gamepassid) end end script.Parent.MouseButton1Down:connect(Click)
Gave the following
5654588 is a game pass seen here
I followed the recommend edit form the output
Gamepassid = 5654588 function Click(mouse) player = game.Players.LocalPlayer.Name player2 = game.Players.LocalPlayer if game:GetService("MarketplaceService"):PlayerOwnsAsset(player2, Gamepassid)then character = player.Character stage = tostring(player.Leaderstats.Steps.Value) stagepart = game.Workspace.Steps:FindFirstChild(stage) stagepos = stagepart.CFrame if game.Workspace.Steps:FindFirstChild(stage)== nil then msg = Instance.new("Hint") msg.Text = "Step still Loading Please try again in a few seconds" else character.HumonoidRootPart.CFrame.Value = stagepos + CFrame.new(0,3,0) end else game:GetService("MarketplaceService"):PromptPurchase(player2,Gamepassid) end end script.Parent.MouseButton1Down:connect(Click)
this just says item isn't for sale but the item is for sale.. also i own the item as its my item so it shouldn't even show the buy item dialog.
whats going wrong?
Ok, you're script EDITED THIS IS EDITED ITS JUST HARD TO SEE!
Gamepassid = 5654588 function Click(mouse) player = game.Players.LocalPlayer.Name player2 = game.Players.LocalPlayer if MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamepassId) then --it is no longer PlayerOwnsAsset character = player.Character stage = tostring(player.Leaderstats.Steps.Value) stagepart = game.Workspace.Steps:FindFirstChild(stage) stagepos = stagepart.CFrame if game.Workspace.Steps:FindFirstChild(stage)== nil then msg = Instance.new("Hint") msg.Text = "Step still Loading Please try again in a few seconds" else character.HumonoidRootPart.CFrame.Value = stagepos + CFrame.new(0,3,0) end else game:GetService("MarketplaceService"):PromptGamePassPurchase(player2,Gamepassid) --it is no longer PromptPurchase end end script.Parent.MouseButton1Down:Connect(Click)
ROBLOX Changed how it works, instead of being in library it is now it's own separate thing.
You are trying to sell this
P.S. You can't sell a place. (unless it's paid access)
Hope this helped!