In a game that I have made, I wanted to award players who have received badges by putting tools into their starter pack next time they join, I have a script that should work for this but when I go into my game I don't get anything, I looked through the script dozens of times and compared it to similar scripts to see what was wrong but I still can't spot the problem, If anyone can help me then I would be most grateful. Here is the problematic script
local BadgeService = game:GetService("BadgeService")
local BadgeId = 12312321
game:GetService("Players").PlayerAdded:connect(function(player)
if BadgeService:UserHasBadge(player.UserId, BadgeId) then
local tool = game.ServerStorage["Dream Bat"]
tool:clone().Parent = player.Backpack
tool:clone().Parent = player.StarterGear
end
end)
