Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

never mind, it's working lmao

2 comments

0

I doubt you should be swearing on here, but that's up to the mods.

0

Swearing?

This discussion is preserved as it was. New answers, comments, and votes are closed.