both in studio and in game it says the same thing "This item is currently not for sale" i'm trying to sell clothing assets in game.
-- Local Script in StarterPlayerScripts
rs = game:GetService("ReplicatedStorage")
player = game:GetService("Players").LocalPlayer
mouse = player:GetMouse()
remotes = rs.Remotes
pp = remotes:WaitForChild("Prompt_Purchase")
mouse.Button1Up:connect(function()
if mouse.Target.Name == "Purchase_Button" then
local property = mouse.Target.Parent.Parent.Figure:FindFirstChild(mouse.Target:FindFirstChildOfClass("StringValue").Name)[mouse.Target:FindFirstChildOfClass("StringValue").Name.."Template"]
local str = tostring(property)
local num = tonumber(str:match("%d+"))
pp:FireServer(num)
end
end)
-- Server Script in ServerScriptService
rs = game:GetService("ReplicatedStorage")
remotes = rs.Remotes
pp = remotes:WaitForChild("Prompt_Purchase")
pp.OnServerEvent:connect(function(player, id)
print(player.Name..", "..id)
game:GetService("MarketplaceService"):PromptPurchase(player, id)
end)

1 comment
I Have the same problem