This is a continuation of my previous post,
My weld constraints just stop working whenever the sleeves are unanchored, the sleeves have to be anchored in order for the weld constraint to work, but that stops any sort of viewmodel animating, which is really bad!
for a better explanation, see one of my replies on this post
local function ClothesToViewmodel(viewmodel: Model)
local activeShirt = char:FindFirstChildOfClass("Shirt")
if not activeShirt then return end
-- we're cloning the sleeves right here, duh!
local sleeves = viewmodelSleevesFolder.BaseShirt:Clone()
sleeves.Parent = viewmodel
-- creating these variables because idk i find it
-- a lot more organized
local leftSleeve = sleeves.Left
local rightSleeve = sleeves.Right
-- the viewmodel arms
local leftArm = viewmodel:FindFirstChild("Left Arm")
local rightArm = viewmodel:FindFirstChild("Right Arm")
-- we create the weld constraints :^)
-- why via a function?
-- that's a really good question! i don't know!
local leftWeld: WeldConstraint = CreateWeldConstraint()
local rightWeld: WeldConstraint = CreateWeldConstraint()
-- parent the welds!
leftWeld.Parent = leftArm
rightWeld.Parent = rightArm
-- oh yeah and also parent the sleeves
sleeves.Parent = viewmodel
-- we set the welds to the left first
leftWeld.Part0 = leftArm
leftWeld.Part1 = leftSleeve
-- then we do so for the right!
rightWeld.Part0 = rightArm
rightWeld.Part1 = rightSleeve
-- oh yeah we also make the sleeves non collideable
leftSleeve.CanCollide = false
rightSleeve.CanCollide = false
-- make the sleeves unanchored so the viewmodel can animate (this doesn't work bruh?)
leftSleeve.Anchored = false
rightSleeve.Anchored = false
end
i’ve decided to go with making models for the player character and the viewmodel
now, for the player character, aligning the position is quite simple, just pivot the clothing to the torso/rootpart
but for the viewmodel, i’m not exactly sure how to do that,
i am using the viewmodels you can find anywhere in the toolbox, they have a fake camera part blah blah blah
now the thing is, if i try to pivot the sleeves to the viewmodel’s primary part, it uhm, it doesn’t really work
this is the only thing i’ve tried so far,
does anyone know how i could get the positions down perfectly?
as far as i know, pivoting the sleeves to the left and right arm respectively would result in the sleeves being on the “forearms”, if that makes sense
open to suggestions