mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Apr 2013 10:42 PM |
Game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.StarterGear repeat wait() until plr.Backpack local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id. local Jetpack = game.Debris.Jetpack -- here local Medkit = game.Debris.Medkit -- here local Firebrand = game.Debris.Firebrand -- here local char = plr.Character if char ~= nil then if char:FindFirstChild("Shirt Graphic").Graphic == texture then Jetpack:clone().Parent = plr.StarterGear Medkit:clone().Parent = plr.StarterGear Firebrand:clone().Parent = plr.StarterGear wait(1) char:BreakJoints() else print("not vip") end end end)
20:37:53.274 - Workspace.Script:20: attempt to index a nil value 20:37:53.284 - Script "Workspace.Read Me", Line 20 20:37:53.286 - stack end
I've also tried if char:FindFirstChild("Shirt Graphic").Graphic == "Thelinkblah" then --the link is the txture just got lazy to write it right now
Also I've also tried using a variable local shirt = char:FindFirstChild("Shirt Graphic") if shirt.Graphic == texture(also tried "thelinkblah" then ....
Any ideas? |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 06 Apr 2013 11:00 PM |
Game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.StarterGear repeat wait() until plr.Backpack local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id. local Jetpack = game.Debris.Jetpack -- here local Medkit = game.Debris.Medkit -- here local Firebrand = game.Debris.Firebrand -- here local char = plr.Character if char ~= nil then if char:FindFirstChild("Shirt Graphic").Graphic == texture then Workspace.Jetpack:clone().Parent = plr.StarterGear --(Change the workspace here into where your Item is) Workspace.Medkit:clone().Parent = plr.StarterGear Workspace.Firebrand:clone().Parent = plr.StarterGear wait(1) char:BreakJoints() else print("not vip") end end end)
|
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Apr 2013 11:02 PM |
| Thanks fo trying,but that won't make a diffrence, nor work. BUMP please help! |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 06 Apr 2013 11:03 PM |
Line 20 is the end. Also: char:BreakJoints() why would you do this?
Here is it buffed a bit:
Game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.StarterGear repeat wait() until plr.Backpack local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id. local Jetpack = game.Debris:findFirstChild("Jetpack") -- here local Medkit = game.Debris:findFirstChild("Medkit") -- here local Firebrand = game.Debris.Firebrand -- here local char = plr.Character if char then if char:FindFirstChild("Shirt Graphic").Graphic == texture then Jetpack:clone().Parent = plr.StarterGear and plr.BackPack Medkit:clone().Parent = plr.StarterGear and plr.BackPack Firebrand:clone().Parent = plr.StarterGear and plr.BackPack else print("not vip") end end end) |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 06 Apr 2013 11:05 PM |
Game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.StarterGear repeat wait() until plr.Backpack local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id. local Jetpack = game.Debris:findFirstChild("Jetpack") -- here local Medkit = game.Debris:findFirstChild("Medkit") -- here local Firebrand = game.Debris.Firebrand -- here local char = plr.Character if char then if char:FindFirstChild("Shirt Graphic").Graphic == texture then a = Jetpack:clone() a.Parent = plr.StarterGear and plr.BackPack
b = Medkit:clone() b.Parent = plr.StarterGear and plr.BackPack
c=Firebrand:clone() c.Parent = plr.StarterGear and plr.BackPack
else print("not vip") end end end) |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Apr 2013 11:06 PM |
| To get the tools in the bacpack |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Apr 2013 11:08 PM |
| Also the P in BackPack is not capitalized, its lowercase. |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
| |
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 06 Apr 2013 11:08 PM |
| Ye I know. I messed up on the capitalization. My bad. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Apr 2013 11:13 PM |
| Didnt work.. Says there is a error where the if texture == texure then line. |
|
|
| Report Abuse |
|
|