Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 08:12 PM |
Okay, so what I want it to do is, well its a VIP script, if the user has my shirt, than they get to have a iris katana, & 125 health, but! It doesn't work.. =/
Can someone maybe see what's wrong with it, please?
wait() local Character = script.Parent.Parent.Character if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then Character.Humanoid.MaxHealth = 125 Character.Humanoid.Health = 125 for i,v in pairs(script:GetChildren()) do v.Parent = Character.Backpack end end
|
|
|
| Report Abuse |
|
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 08:15 PM |
| I put the script in starter pack, and pasted the iris katana in the script =/ |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2011 08:26 PM |
wait() local Character = script.Parent.Parent.Character if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then Character.Humanoid.MaxHealth = 125 Character.Humanoid.Health = 125 for _, v in pairs(script:GetChildren()) do local c = v:clone() c.Parent = Character.Backpack end end
Also, is this the whole script?
What Pumpkin? |
|
|
| Report Abuse |
|
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 08:48 PM |
| Well, it should be. And nothing happend.. Again. No Iris katana >_< |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 21 Dec 2011 09:09 PM |
game.Players.PlayerAdded:connect(function (NewPlayer) local f = script:clone() f.Parent = NewPlayer if (script.Parent.Parent.Character) then wait() local Character = script.Parent.Parent.Character if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then Character.Humanoid.MaxHealth = 125 Character.Humanoid.Health = 125 for _, v in pairs(script:GetChildren()) do local c = v:clone() c.Parent = Character.Backpack end end end end)
This should be it
What Pumpkin? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 21 Dec 2011 09:11 PM |
^
---------- ~ pwnedu46, the unicorn ~ |
|
|
| Report Abuse |
|
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 09:25 PM |
| @sam, would i put it in starter gui, or starterpack? and would i insert the katana into the script? |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 09:32 PM |
| Sorry lowcart I'll try yours |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2011 09:36 PM |
@Lowcart Lol you didn't even read it. Backpack is in the ipairs loop.
Also, pen, this should work anywhere at all
game.Players.PlayerAdded:connect(function (NewPlayer) local f = script:clone() f.Parent = NewPlayer if (script.Parent.Parent.Character) then wait() local Character = NewPlayer if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then Character.Humanoid.MaxHealth = 125 Character.Humanoid.Health = 125 for _, v in pairs(script:GetChildren()) do local c = v:clone() c.Parent = Character.Backpack end end end end) |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 09:39 PM |
| @Sam, I tried yours. Yet to try Low's, none have worked so far, btw should I insert it in StarterGui, workspace, or StarterPack? my guess is starterpack. |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 21 Dec 2011 09:43 PM |
@Lowcart
Character = NewPlayer = The player, not the character.
lololololol |
|
|
| Report Abuse |
|
|
Lowcart
|
  |
| Joined: 12 Sep 2011 |
| Total Posts: 1323 |
|
| |
|
|
| 21 Dec 2011 09:45 PM |
@Lowcart Me Because Character is all on the right side of the keyboard, where as player is all over the map (i.e. I can type character using the left hand only once, where as player uses the left hand a few times) |
|
|
| Report Abuse |
|
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
|
| 21 Dec 2011 09:47 PM |
@Sam,
@Low
could you guys try getting it to work in one of your games? i've been trying for an hour no luck... Use for the VIP shirt one of you shirts just for a test [IF YOU WOULD LIKE TO HELP] |
|
|
| Report Abuse |
|
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
|
| 21 Dec 2011 11:32 PM |
Stupid Noobs... He is missing the function...
function onPlayerEnter(pl) wait() local Character = script.Parent.Parent.Character if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then Character.Humanoid.MaxHealth = 125 Character.Humanoid.Health = 125 for i,v in pairs(script:GetChildren()) do v.Parent = Character.Backpack end end end
game.Players.ChildAdded:connect(onPlayerEnter) |
|
|
| Report Abuse |
|
|