| |
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 30 Mar 2012 11:47 AM |
game.Players.PlayerAdded:connect(function(p) if game:GetService("BadgeService"):UserHasBadge(p.userId, t-shirtId) |
|
|
| Report Abuse |
|
|
| |
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 30 Mar 2012 11:52 AM |
http://wiki.roblox.com/index.php/UserHasBadge_(Method)
It will tell you why. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2012 01:20 PM |
| It's because you don't have to wear the shirt in game then, you just have to own it. |
|
|
| Report Abuse |
|
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 30 Mar 2012 03:06 PM |
This 1 works fine for me
function Respawn(p) wait(1) local Bs = game:GetService('BadgeService') if Bs:UserHasBadge(p.userId, 68058770) then --TexId for the VIP shirt. local a = game.Lighting:FindFirstChild("VIP") -- Make a model in lighting and give it a Name. Change this and you'll have to change the model name for the script to work. if a ~= nil then local b = a:GetChildren() for i=1, #b do b[i]:Clone().Parent = p.Backpack end end end end function Enter(p) p.CharacterAdded:wait() local Bs = game:GetService('BadgeService') if Bs:UserHasBadge(p.userId, 68058770) then --Texture of VIP shirt. local c = game.Lighting:FindFirstChild("VIP") same as before if c ~= nil then local d = c:GetChildren() for i=1, #d do d[i]:Clone().Parent = p.Backpack end end end p.Changed:connect(function (property) if (property == "Character") then Respawn(p) end end) end game.Players.ChildAdded:connect(Enter) |
|
|
| Report Abuse |
|
|
| |
|
Dajn
|
  |
| Joined: 12 Feb 2008 |
| Total Posts: 120 |
|
|
| 31 Mar 2012 02:24 PM |
Were you see the BadgeId change it to your shirtid from your t-shirts. Not the t-shirt texture. |
|
|
| Report Abuse |
|
|
| |
|