Before… you would get the tool right away after you purchase the game pass.
Now you have to rejoin the game to get the tool… so what went wrong?
here is the script
local mps = game:GetService("MarketplaceService")
local gamepass_id = 0
game.Players.PlayerAdded:Connect(function(player)
if mps:UserOwnsGamePassAsync(player.UserId, gamepass_id) then
game.ServerStorage.DG:Clone().Parent = player:WaitForChild("Backpack")
game.ServerStorage.DG:Clone().Parent = player:WaitForChild("StarterGear")
end
end)
game.ReplicatedStorage.G4.OnServerEvent:connect(function(player)
game.ServerStorage.DG:Clone().Parent = player:WaitForChild("Backpack")
game.ServerStorage.DG:Clone().Parent = player:WaitForChild("StarterGear")
end)