So guys this script is on serverscript service and this script works but when i changed the product id it wont work. btw this script is from my other game i just saved it and put it in my new game and change the product id and it wont work heres the script kindly help
local MarketPlace = game:GetService(“MarketplaceService”)
local id1 = 1078134664 --first id Here
local id2 = 1110345355
local id3 = 1111483199
local id4 = 1078134915
local Players = game:GetService(“Players”)
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
MarketPlace.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == id1 then
local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
char.HumanoidRootPart.Position = char.HumanoidRootPart.Position + Vector3.new(0,0,-20)
end
if receiptInfo.ProductId == id2 then
local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
char.HumanoidRootPart.Position = Vector3.new(237.676, 5, -649.793)
end
if receiptInfo.ProductId == id3 then
game.ReplicatedStorage.JumpScare:FireAllClients()
end
if receiptInfo.ProductId == id4 then
player.leaderstats.Donations.Value += 100
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end)
end)