i want this script to activate every script in this model
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
script.Parent.Nuke.Disabled = false
end -- place the end at the correct position
end
mps.ProcessReceipt=OnDeveloperProductBought
Why use multiple scripts instead of using a module script or a function inside of the main script.
Instead of script.Parent.Nuke.Disabled = false make a function for whatever you need then call it instead.
i know what a module script is but i just dont know what to do iv tried for hours im pretty sure that script should work is there anything wrong with it
I don’t have the time to really go into module scripts, someone else can help with that, however, I just wanted to add, that yes module scripts are better, however, when you set a scripts.Disabled = false, it DOES run what is in the script.
this look right???
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
script.Parent.Atom.Enabled = true
end – place the end at the correct position
end