|
| 24 Nov 2012 08:14 PM |
When vip shirt is on you and you spawn this doesnt work, how come?
function onPlayerRespawned(newPlayer) wait(1) if newPlayer.Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=98812413" then --Put your shirt's texture after the = clone = game.Lighting.Potion:clone() clone4 = game.Lighting.Potion:clone() clone5 = game.Lighting.WindForce:clone() --put your tool in the Lighting and change "TOOL" to the name of our tool. clone6 = game.Lighting.Potion:clone() clone.Parent = newPlayer.Backpack clone4.Parent = newPlayer.Backpack clone5.Parent = newPlayer.Backpack clone6.parent = newPlayer.Backpack end end
function onPlayerAdded(newPlayer) newPlayer.Changed:connect(function(property) if property == "Character" then onPlayerRespawned(newPlayer) end end) end
game.Players.PlayerAdded:connect(onPlayerAdded) |
|
|
| Report Abuse |
|
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 24 Nov 2012 08:27 PM |
"http://www.roblox.com/asset/?id=98812413" This is a T-shirt, not a texture. Do the id minus one. (98812412) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 24 Nov 2012 08:43 PM |
| You need to post an output. |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2012 08:52 PM |
local Texture = 'http://www.roblox.com/asset/?id=98812413'
Game.Players.PlayerAdded:connect(function(Player) repeat wait() until Player.Character if Player.Character.Torso.roblox.TextureId == Texture then Game.Lighting['weapon name']:Clone().Parent = Player.StarterGear -- repeat above if more than one weapon end end) |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2012 09:38 PM |
What about this ?
function Respawn(p) wait(5) if game:GetService("BadgeService"):UserHasBadge(p.userId, 98812413) then --Tshirt ID local a = game.Lighting:FindFirstChild("WindForce") 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) wait(5) if game:GetService("BadgeService"):UserHasBadge(p.userId, 98812413) then --Tshirt ID local c = game.Lighting:FindFirstChild("Potion") 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 |
|
|