How to activate scripts

save your studio file and upload it here

dowload as copy???

1 Like

yup (wordssssssssssssssssdasdss)

Weapon Sim.rbxl (1.3 MB)

1 Like

aight, looks like you had your MarketPlaceService wrong.

It was MarketplaceService and it showed up at the output

imagen

you also got a lot, but a lot of errors at your output, I recommend you solving them :).

so how do i fix that error rrrrrrrrrrrrrrrr

1 Like
local mps = game:GetService("MarketplaceService") --the error was this, you typed "MarketPlaceService" and the actualservice name is "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

is that fixed version…

1 Like

iv noticed that the nuke script broke my datastores

datastores were not working, I got errors at my output referring to the datastores

how can i fix them? ???

is the game published? (wordsds)

weapon one works but coin one doesnt

yes (ignore thumbnail ik its bad its placeholder)
Weapon Simulator - Roblox

what do you get at your output?

my output isnt showing up !!!

for anyone who wants to have their eyes blessed

local mps = game:GetService("MarketplaceService")

function OnDeveloperProductBought(receipt)
   if receipt.ProductId == 1613997626 then
      script.Parent.Anchored = true
	  script.Parent.Parent = workspace
	  script.Parent.Transparency = 1
	  for _, v in script.Parent.Parent.Parent:GetDescendants() do
         if v:IsA("BaseScript") then
            v.Disabled = false
         end
      end
   end
end

mps.ProcessReceipt = OnDeveloperProductBought

can you look through gam ei cant really explain it

you have to check it cause I would have to publish it to check it

when i go to output it isnt showing up