Hello, my friend says his script is working fine.
However, when I test it in my game it doesn't work. Make sure to edit the script to correct variables.
Tell me if it works or what's wrong, thanks.
local badgeID = 2124533582 --Replace the ID With your Badge ID!
local badgeService = game:GetService("BadgeService")
function onEntered(player)
wait(1)
if not badgeService:UserHasBadge(player.UserId, badgeID) then
local gear = game.ServerStorage.SpeedCoil -------Put the name of the gear you have right there so do like ServerStorage.[gearname] but without brackets
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name then
gear:Clone().Parent = plr:WaitForChild("Backpack")
end
end
end)
end)

1 comment
u should put gears in replicatedStorage as that is the area ment for cloning