Hey guys. I need some armor for my upcoming RPG, and I'm going to get right to the point:
- No pay
- Any kind of armor is acceptable (light, heavy, mystical, etc...)
- Any theme is alright too
- If you want a specific name for your armor, let me know. I'll fit it in :)
- Your specific piece will be credited in the end
If you're still interested, the way I end up configuring the armor would be a pain for you guys, so I made a quick tutorial:
In order for this to work, you need to create individual armor for each limb, and run the code each time. From there you can just take the armor for each limb and put it into a model, making a full set of armor.
/a/FGGl7
You need to follow five steps in order (sorry)
(Use the pictures to help follow along)
*Anchor all of the parts in the character*
1) Paste this code into a script inside a dummy (there's only one part you need to edit):
local Limb = "Torso" -- Change this to the limb that you're creating armor for
local Character = script.Parent
function WeldParts(Armor, Detail)
local Weld = Instance.new("Weld", Armor)
Weld.Part0 = Armor
Weld.Part1 = Detail
Weld.C0 = CFrame.new()
Weld.C1 = Detail.CFrame:toObjectSpace(Armor.CFrame);
end
function PackNewArmor()
local Armor = Character.Part
local Part = Character[Limb]
for _, Detail in pairs(Armor:GetChildren()) do
WeldParts(Armor, Detail)
end
local Package = Armor:Clone()
local CFV = Instance.new("CFrameValue")
CFV.Name = "C1"
CFV.Value = Armor.CFrame:toObjectSpace(Part.CFrame);
CFV.Parent = Package
Package.Name = Limb
Package.Parent = game.ServerStorage
end
PackNewArmor()
2) Create the new base of the armor inside of the character.
3) Paste individual details of the armor inside of the base.
4) Simply run the place.
5) The code will weld everything together and packages the new piece of armor for the limb. From there you can put it in a model, storing it with the rest of the armor pieces.
Thanks guys. |