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

Why doesn't when I have a certain badge, I don't get a tool from server storage?

Asked by 4 years ago

So the tool is the 'bear' and it's located in server storage. The badge is from the game itself to where i'm testing/scripting from. Have I done something wrong?

local BadgeService = game:GetService("BadgeService")
local BadgeId = 2124633857

game:GetService("Players").PlayerAdded:Connect(function(player)
    if BadgeService:UserHasBadge(player.UserId, BadgeId) then
game.ServerStorage.Bear:Clone().Parent = player:WaitForChild("Backpack")
game.ServerStorage.Bear:Clone().Parent = player:WaitForChild("StarterGear")
 end
end)


game.ReplicatedStorage.Give.OnServerEvent:connect(function(player)
game.ServerStorage.Bear:Clone().Parent = player:WaitForChild("Backpack")
game.ServerStorage.Bear:Clone().Parent = player:WaitForChild("StarterGear")
end)

1 answer

Log in to vote
0
Answered by 4 years ago

never mind, it's working lmao

0
I doubt you should be swearing on here, but that's up to the mods. 2Loos 168 — 4y
0
Swearing? ToastyXoYT 5 — 4y
Ad

Answer this question