Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is my mace item for a gamepass not working? (Solved)

Asked by 2 years ago
Edited 2 years ago

It's probably pretty simple and I made a mistake, but why doesn't this script work? it's in ServerScriptService and my mace is in Replicated storage, but if you have the gamepass, it doesnt clone into your inventory, why?

my code:

local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassID = 8381290
game.Players.PlayerAdded:Connect(function(player)
    if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, 8381290) then
        local maceClone = game.ReplicatedStorage.SpikyStick:Clone()
        maceClone.Parent = player.Backpack
        print("Gamepass complete")
        end
    end)

1 answer

Log in to vote
1
Answered by 2 years ago

OH MY GOD I FIGURED IT OUT THE FREAKIN ID HAD A 1 IN THE FRONT

0
idiotic moves lol Xyternal 247 — 2y
0
pro Xapelize 2658 — 2y
Ad

Answer this question