local MPS=game:GetService("MarketplaceService")
local GP={
Faster = 1,
Higher = 2,
Health = 3,
Force = 4,
Tools = 5,
Jetpack = 6,
Invisiblity = 7,
Ghost = 8,
}
local DP = {
ChangeTeam = 414465411,
}
local Teams = {
Red = "Bright red",
Yellow = "Bright yellow",
Green = "Bright green",
Blue = "Bright blue"
}
function ChangeTeam(player)
local r = math.random(1,#Teams)
for i,v in pairs(Teams) do
if i == r then
player.TeamColor = v
player.Character.Humanoid.Health = 0 -- Kills Player To Respawn
end
end
end
MPS.PromptPurchaseFinished:Connect(function(player, assetId, isPurchased)
-- Dev Products
if assetId == DP.ChangeTeam and isPurchased then
ChangeTeam(player) -- Change Team
end
end)
COMMUNITY QUESTION
Developer Product Purchased, wont do anything. Does it only work in game or is there a error?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
