Ugc limited not working help

Please help Im not sure why its not working it keeps on appearing with “Failed because something went wrong Your account has not been charged”

local truthfull = false
wait(2)

if(game.Players.LocalPlayer:IsInGroup(8299440)) then
	truthfull = true
end


script.Parent.MouseButton1Click:Connect(function()

	if game.Players.LocalPlayer.SavedValues:FindFirstChild("UGCLIMITEDSKINSOWNED") and truthfull == true then

		game:GetService("MarketplaceService"):PromptPurchase(script.Parent.Parent.Parent.Parent.Parent, 14556885912)




	end

end)
1 Like

First off, this belongs in #help-and-feedback:scripting-support, also this is some error which people get

1 Like

Try

game:GetService("MarketplaceService"):PromptPurchase(game:GetService("Players").LocalPlayer, 14556885912)

Also, this should probably be in a server script.

if game.Players.LocalPlayer:IsInGroup(8299440) then
	truthfull = true
end
2 Likes

If it is a place-restricted ugc item, it must be a server script, I just learned this the hard way today haha.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.