the easiest solution would be to use :GetDescendants()
local mps = game:GetService("MarketPlaceService")
local plrs = game:GetService("Players")
function OnDeveloperProductBought(receipt) -- use the parantheses and parameters!
if receipt.ProductId == 1613997626 then -- double '=' sign to compare (and put 'then')!
script.Parent.Anchored = true
script.Parent.Parent = workspace
script.Parent.Transparency = 1
-- wait() is unneccessary here
for i, scriptt in ipairs(script.Parent.Parent.Parent:GetDescendants()) do
if scriptt:IsA("Script") then
scriptt.Disabled = false
end
end
end -- place the end at the correct position
end
mps.ProcessReceipt=OnDeveloperProductBought
local mps = game:GetService("MarketPlaceService")
local plrs = game:GetService("Players")
wait(5)
script.Parent.Anchored = true
script.Parent.Parent = workspace
script.Parent.Transparency = 1
-- wait() is unneccessary here
for i, scriptt in ipairs(script.Parent.Parent.Parent:GetDescendants()) do
if scriptt:IsA("Script") then
scriptt.Disabled = false
end
end