code is this
local id = 7746555
local MarketPlaceService = game:WaitForChild:FindFirstChild("MarketplaceService")
local Players = game:("Players")
local Sword = game.ServerStorage.Sword
local debounce = true
local part = script.Parent
local function onTouched(part)
local player = Players:GetPlayerFromChar(part.Parent.)
if not player then return end
if debounce == true then
if MarketPlaceService:UserOwnerOfGamePass(UserId id) then
local backpack = player.Backpack
debounce = false
Sword:Clone(1).Parent = backpack
wait (1)
debounce = true
end
end
end
part.Touched:Connect(onTouched) == true

2 comments
Doesn’t work
Nevermind