generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Inserting dem values (!)

Previous Thread :: Next Thread 
samy22 is not online. 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 is not online. samy22
Joined: 28 Sep 2008
Total Posts: 2181
02 Jun 2014 01:36 PM
b1
Report Abuse
robomax11 is not online. 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 is not online. 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 is not online. 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 is not online. 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
WhiteRoseDeath is not online. WhiteRoseDeath
Joined: 01 May 2014
Total Posts: 163
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
WhiteRoseDeath is not online. WhiteRoseDeath
Joined: 01 May 2014
Total Posts: 163
02 Jun 2014 01:59 PM
Sorry, I was typing whilst you had posted. It's ClassName, not className.
Report Abuse
samy22 is not online. 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
WhiteRoseDeath is not online. WhiteRoseDeath
Joined: 01 May 2014
Total Posts: 163
02 Jun 2014 02:00 PM
By the way, GetChildren returns a read only table.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image