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: Torso Size?

Previous Thread :: Next Thread 
Lordgalaxysmasher is not online. Lordgalaxysmasher
Joined: 25 Jun 2012
Total Posts: 80
20 Jun 2013 10:47 PM
I know some scripters will think this is a breeze but im a terrible scripter :( anyways i was wondering how do you change the size of a players torso? (ill post the script i was doing)
Report Abuse
oldgoo is not online. oldgoo
Joined: 23 Mar 2010
Total Posts: 4844
20 Jun 2013 10:48 PM
Like the mesh or the actual block?
Report Abuse
Croze is not online. Croze
Joined: 21 Mar 2010
Total Posts: 449
20 Jun 2013 10:49 PM
Well you could do game.Workspace.Player1.Torso.Size = Vector3.new(10,10,10) but no matter what size you change it to it will kill your character. I am not familiar with how to keep the player alive when changing the size of any body part.
Report Abuse
Lordgalaxysmasher is not online. Lordgalaxysmasher
Joined: 25 Jun 2012
Total Posts: 80
21 Jun 2013 09:17 AM
If i change the size of my character to the size of my torso would it work if so how do i change the size of my character
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
21 Jun 2013 09:39 AM
This ain't as easy as you think it is but I'll try to figure it out for you, give me 5-10 minutes.
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
21 Jun 2013 10:06 AM
Owkej I give up already.
I do manage to get myself large but my legs and arms don't move and if I jump I fall.
Also you need to remove all Charactermeshes and torsos, bodycolors to get it working.




wait()
player = script.Parent.Parent
character = game.Workspace:FindFirstChild(player.Name)




-----------------------This part removes the meshes and shirts, not working 100%------
junk = character:GetChildren()
for e=1, #junk do
if junk[e].ClassName == 'Pants' or junk.ClassName == 'Shirt' or junk.ClassName == 'ShirtGraphic' or junk.ClassName == 'BodyColors' or junk.ClassName == 'Hat' or junk.ClassName == 'CharacterMesh' then
junk[e]:remove()
end
end
------------------------------------------------------------------------------





parts = script:GetChildren()
for i=1, #parts do
newpart = parts[i]:Clone()
character:FindFirstChild(newpart.Name):remove()
character.Humanoid.Health = 100
newpart.Parent = character
newpart:MakeJoints()
end
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
21 Jun 2013 10:07 AM
If you remove the part that removes junk and manually remove all the junk it should work (without jumping and animation)
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
21 Jun 2013 10:08 AM
Sorry, forgot to add this:

Put the script in StarterGui to test it.
Report Abuse
Lordgalaxysmasher is not online. Lordgalaxysmasher
Joined: 25 Jun 2012
Total Posts: 80
21 Jun 2013 10:18 AM
Does the script require you to put your username in it?
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
21 Jun 2013 10:30 AM
Nope

The line 'player = script.Parent.Parent' will take the player that holds the script.
And the line 'character = game.Workspace:FindFirstChild(player.Name)' looks for the character in workspace which the name of the player.


If you want it to change only you you should change those two lines into:

--remove the first line
character = game.Workspace:FindFirstChild(Lordgalaxysmasher)
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