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

how to accurately position armor on player?

Asked by 6 years ago
Edited 6 years ago

i made a piece of armour, and testing out the left shoulder it doesnt position like how i want it to how its supposed to look; this

how it actually looks; this

what do i do?

edit: this is the script im using;

repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character


local plyr = game.Players.LocalPlayer.Character
local upperLarm = plyr:WaitForChild("LeftUpperArm")
local cloneuperLarm = game.ReplicatedStorage.ArmourLeftArm:Clone()

cloneuperLarm.Parent = plyr
cloneuperLarm.PrimaryPart.CFrame = upperLarm.CFrame

local weld = Instance.new("Weld")
weld.Part0 = upperLarm
weld.Part1 = cloneuperLarm.PrimaryPart
weld.C0 = upperLarm.CFrame:inverse()
weld.C1 = cloneuperLarm.PrimaryPart.CFrame:inverse()
weld.Parent= plyr


0
When I design armor for characters I design them around a base body, like a player rig and the just use welds to attach them. 22ron 0 — 6y
0
correct me if im wrong, but i think i did that in my first pic deerdharok 91 — 6y

1 answer

Log in to vote
0
Answered by
Jellyfosh 125
6 years ago

Use CFrames and Welding.

CFrame will position parts relative to whatever you define, Welds will keep those parts from falling off the character.

0
i edited the question and added the code im using deerdharok 91 — 6y
0
Do you have discord, I have mastered this, I can help you out. Proof: https://www.roblox.com/games/1253364506/Era-Of-Freedom-BETA-19-Progress The clothes you see are welded. AyeJude 41 — 6y
Ad

Answer this question