samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 02 Jun 2014 01:20 PM |
| Does anyone know of a way to insert an intvalue into the character before it loads it's parts? |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
| |
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 02 Jun 2014 01:42 PM |
game.Players.PlayerAdded:connect(function() local a = Instance.new('IntValue', p) a.Name = "whateva" a.Value = 69 end) |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 02 Jun 2014 01:46 PM |
| Yeah forget to tell you guys, that way doesn't work. Is there some other way? |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 02 Jun 2014 01:50 PM |
samy i guess it would be useful for you if you don't get it i will help you later..
http://wiki.roblox.com/index.php/CharacterAutoLoads_(Property) http://wiki.roblox.com/index.php/Leaderboards |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 02 Jun 2014 01:55 PM |
Not sure how that's supposed to help. Problem is character loads as entire model instantly, it doesn't stop to let you add stuff. Here's the more specific situation i'm talking about.
> g = Workspace.Player1:GetChildren() for i = 1,#g do if g[i].Name == "Head" then print(g[i].Name, i, g[i].className) end end > Head 1 Part > Head 17 IntValue
via output.
How would i get g[17] to be addressed as g[1]. (Note: g[1]=g[17] does not work)
I'm trying to make player.Head:remove() REMOVE the intvalue before the head yet it always removes the head first. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 01:55 PM |
| Hm. This would be tricky or impossible. I suppose you could try waiting for a model with the player's name which would be the player, then perhaps use the wait for child to wait for a script to load, then insert the value and the rest of the parts will load. This is just a guess by the way. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 01:59 PM |
| Sorry, I was typing whilst you had posted. It's ClassName, not className. |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 02 Jun 2014 02:00 PM |
Both work. I like your idea, but it didn't work. Why is this harder than expected -.- |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 02:00 PM |
| By the way, GetChildren returns a read only table. |
|
|
| Report Abuse |
|
|