okay this is the Dev Product H]andler script which i am sure works
local MarketplaceService = game:GetService("MarketplaceService")
Event = game.ReplicatedStorage.AutoClicker
function MarketplaceService.ProcessReceipt(receiptInfo)
print(receiptInfo.PlayerId .. " just bought " .. receiptInfo.ProductId)
print (game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId))
Event:FireClient(game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId))
return Enum.ProductPurchaseDecision.PurchaseGranted
end
and this is the localscript
wait(1)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MarketPlace = game:GetService("MarketplaceService")
local ToolEvent = ReplicatedStorage:FindFirstChild("ToolEvent")
local EquipEvent = game.ReplicatedStorage:FindFirstChild("EquipEvent")
local Module = require(ReplicatedStorage.ToolsM)
local player = game.Players.LocalPlayer
local ACEvent = game.ReplicatedStorage:FindFirstChild("AutoClicker")
script.Parent.MouseButton1Click:connect(function()
MarketPlace:PromptProductPurchase(player,314511152)
end)
while wait(cooldown) do
if script.Enabled.Value == true then
ToolEvent:FireServer(Tool)
end
end
local function AuoClick()
if script.Enabled.Value == false then
script.Parent.Text = "Auto Clicker (Enabled)"
script.Enabled.Value = true
local STool = game.Players.LocalPlayer.CurrentTool.Value
Tool = Module.SimpleNamesToNames[STool]
cooldown = 1
wait(60)
script.Enabled.Value = false
script.Parent.Text = "Auto Clicker (Disabled)"
end
end
ACEvent.OnClientEvent:Connect(AuoClick)
i have no idea what could be causing this other than maybe the function so any help will be appreciated

2 comments
connect is deprecated, switch to Connect
just did but it shows the gamepass thing but when i press buy it doesent do anything after that