RogueBob
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 178 |
|
|
| 21 Aug 2011 06:12 PM |
Is this the correct path to find out what t-shirt a player has on, in a function?
newPlayer.Character.Torso.roblox.Texture
If so, why doesn't it work, is it a technical issue? |
|
|
| Report Abuse |
|
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 21 Aug 2011 06:24 PM |
You got the concept, but i'm not sure if this will work, you might have to check the hierarchy, I can't since I deleted RBLX on this cp.
Shirt = ""--insert id here game.Players.PlayerAdded:connect(function(s) s.CharacterAdded:connect(function(f) if f.Torso.roblox.Texture == Shirt then --add some more end end)end) |
|
|
| Report Abuse |
|
|
RogueBob
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 178 |
|
|
| 21 Aug 2011 06:56 PM |
This is the whole script if it helps any:
Shirt = "http://www.roblox.com/asset/?id=59678790"--insert id here game.Players.PlayerAdded:connect(function(s) s.CharacterAdded:connect(function(f) if f.Torso.roblox.Texture == Shirt then newPlayer.Character.Humanoid.Health = newPlayer.Character.Humanoid.MaxHealth * 60 newPlayer.Character.Humanoid.MaxHealth = newPlayer.Character.Humanoid.MaxHealth * 60 end 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 |
|
|
|
| 21 Aug 2011 07:02 PM |
"newPlayer.Character.Humanoid.Health = newPlayer.Character.Humanoid.MaxHealth * 60 newPlayer.Character.Humanoid.MaxHealth = newPlayer.Character.Humanoid.MaxHealth * 60"
MaxHealth should go first.
______________________________________ -ElectricBlaze,
roblox.com/my/groups.aspx?gid=372 Join today for a scripting teacher!
|
|
|
| Report Abuse |
|
|