generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
wolfythekid is not online. wolfythekid
Joined: 26 Jan 2011
Total Posts: 4497
30 Mar 2012 11:44 AM
[ Content Deleted ]
Report Abuse
UFAIL2 is not online. 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
wolfythekid is not online. wolfythekid
Joined: 26 Jan 2011
Total Posts: 4497
30 Mar 2012 11:48 AM
[ Content Deleted ]
Report Abuse
UFAIL2 is not online. 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
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
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 is not online. 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
wolfythekid is not online. wolfythekid
Joined: 26 Jan 2011
Total Posts: 4497
31 Mar 2012 02:14 PM
[ Content Deleted ]
Report Abuse
Dajn is not online. 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
wolfythekid is not online. wolfythekid
Joined: 26 Jan 2011
Total Posts: 4497
31 Mar 2012 02:31 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image