spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 19 May 2015 12:03 AM |
local BadgeID = 249843354
local Tools = {"Knife"}
game.Players.PlayerAdded:connect(function(Player) if game:GetService("BadgeService"):UserHasBadge(Player,BadgeID) then Player.CharacterAdded:connect(function(Character) for _,v in ipairs(Tools) do game.ReplicatedStorage:FindFirstChild(v):Clone().Parent = Player.Backpack end end) end end)
|
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 19 May 2015 12:04 AM |
local BadgeID = 249843354
local Tool = "Knife"
game.Players.PlayerAdded:connect(function(Player) if game:GetService("BadgeService"):UserHasBadge(Player,BadgeID) then Player.CharacterAdded:connect(function(Character) game.ReplicatedStorage:FindFirstChild(Tool):Clone().Parent = Player.Backpack end) end end)
|
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 May 2015 12:08 AM |
Events will fire reguardless of whether or not conditionals return true or false.
local bs = game:GetService('BadgeService') local BadgeID = 249843354 local Tools = {"Knife"}
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) if bs:UserHasBadge(Player,BadgeID) then for _,v in ipairs(Tools) do local tool = game.ReplicatedStorage:FindFirstChild(v) if tool then tool:Clone().Parent = Player.Backpack end end end end) end) |
|
|
| Report Abuse |
|
|