Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Any way to resize/move body parts?

Asked by 7 years ago
Edited 7 years ago

this posted without me even knowing, but anyways ^^^^. im trying to create a script which resizes your body with the same positions your regular body is in, but when i try it, my limb falls off. is there any way to fix this? here is the script:

--First script, starting date 1/2/2017, 10:51 pm, gl me
local weld = Instance.new("Weld")
local z = game.Players.LocalPlayer
local char = z.Character
local h = char.Head
local rleg = char["Right Leg"]
local lleg = char["Left Leg"]
local rarm = char["Right Arm"]
local larm = char["Right Arm"]
local torso = char.Torso
weld.Part0 = rleg
weld.Part1 = torso
rleg.Size = Vector3.new(1.5,7,1.5)
Instance.new("Right Hip", torso)

thank you.

0
You are from v3rmillion arent you.. Coolboyok11 64 — 7y
0
yeah, i have an account there. why? Leanoholic 2 — 7y
0
Bump Leanoholic 2 — 7y

1 answer

Log in to vote
3
Answered by 7 years ago

Roblox wiki is a great place but here is where you can get help if your stuck there so

The Key thing to resizing/moving body parts is welding(I guess)

You want to know how to weld it which is easy

Next lets say i wanted to create a GIANT foot, Like just one GIANT foot ok?

and still be able to use it

I Resize it to 2,4,2 in Vector3 :

local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
Character["Right Leg"].Size = Vector3.new(2,4,2)

So by doing that i resized it and it became huge!!

But then it wasnt connected to me, Wonder why?

Because when resizing or repositioning a Part that is welded by a Joint breaks and is removed

To fix this simply make your own new joint! using Instance.new(""):

local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
Character["Right Leg"].Size = Vector3.new(2,4,2)
local newRH = Instance.new("Motor6D")---Motor6Ds being the joints that Roblox animates.
newRH.Name=("Right Hip")--naming doesnt matter but for roblox to animate the part you name it Right Hip i guess
newRH.Part0=Character.Torso--Main part
newRH.Part1=Character["Right Leg"]--2nd part

Now as you can see i did create a Joint/Weld called Motor6D Roblox uses these to animate and keep you together, without them you'd be small blocks on the ground!

But what i also did was specify the Part0 and Part1

Part0 Being the First base part that connects

And Part1 being the 2nd base part that connects

so now its welded but OH NO WHY IS THE LEG INSIDE MY TORSO!!!??

That is because we didnt specify where the position of the weld should be

We can use CFrame.new()

or some other things

I generally use something that shows the joint's position and i can use a tool to change it then i print its C0 and C1

C0 Determines how the offset point is attached to Part0. C1 Is subtracted from the C0 property to create an offset point for Part1. (Taking from wiki ok? also you should learn this off the wiki it will help you!)

so you need to get your CFrames done correctly

but i dont know how to explain it correctly so i just do this

I use Custom Character creator to bind a joint and then i use edit to see where the joint is

Then i press K and i can now move a joint i click on

I then set the Joint's Position

Now to get its position i print its C0 and C1

you do this by

print(workspace.Dummywhohasweirdleg.Torso["Right Hip"].C0) print(workspace.Dummywhohasweirdleg.Torso["Right Hip"].C1)

And that is all

Please dont forget to accept my answer if you found it useful.

0
Thanks, I am testing it right now. Leanoholic 2 — 7y
0
Nope, leg still falls off. thanks for trying though. Leanoholic 2 — 7y
0
@Coolboyok11 you there? Leanoholic 2 — 7y
Ad

Answer this question