#please help me

1 messages · Page 1 of 1 (latest)

cedar sapphire
#

local function MatchArmsToPlayer(viewModel)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end

local skinColor = humanoid:GetAppliedDescription().HeadColor
local shirt = character:FindFirstChild("Shirt")
local ViewModelShirt = viewModel:FindFirstChild("Shirt")

if viewModel:FindFirstChild("Right Arm") then
    viewModel["Right Arm"].Color = skinColor
    end
    
if viewModel:FindFirstChild("Left Arm") then
    viewModel["Left Arm"].Color = skinColor
end

if shirt and ViewModelShirt then
    ViewModelShirt.ShirtTemplate = shirt.ShirtTemplate
end

end

why doesn't my shirt template show the org shirt

shut ember
#

Maybe you are reffering to the shirt graphic instead?

cedar sapphire
#

it only happends when i equip the gun that the shirt doesn't show

#

my viewmodels do have a shirt inside of them but i can't figure out the issue

shut ember
#

ohhh i see

cedar sapphire
shut ember
#

yeah sure, what is the rig type of the model, and the character model?

#

they might be different

cedar sapphire
shut ember
#

ohhh alright alright

cedar sapphire
#

the skin color is the thing thats working but not the shirt is kinda weird. Do you think its in the script i made?

shut ember
#

I dont think so, maybe the arms are too far from the torso Try testing without moving the arm first

shut ember
#
local function MatchArmsToPlayer(viewModel)
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    local charShirt = character:FindFirstChildOfClass("Shirt")
    if not humanoid or not charShirt then return end

    local vmShirt = viewModel:FindFirstChildOfClass("Shirt") or Instance.new("Shirt", viewModel)
    vmShirt.ShirtTemplate = charShirt.ShirtTemplate

    if not viewModel:FindFirstChildOfClass("Humanoid") then
        local h = Instance.new("Humanoid", viewModel)
    end

    for _, name in pairs({"Left Arm", "Right Arm"}) do
        local arm = viewModel:FindFirstChild(name)
        if arm then
            arm.Parent = nil
            arm.Parent = viewModel
            
            if arm:IsA("MeshPart") then
                arm.TextureID = ""
            end
        end
    end
end
#

try this

#

this just test if the vm has a humanoid and essentially resets the arm of vm

cedar sapphire
#

alr

#

nope didn't work

shut ember
#

are there any errors?

cedar sapphire
#

nope it doesn't say anything

shut ember
#

dayum

#

are the arms a meshpart?

cedar sapphire
#

nope there are character parts

#

i took them form a rig

#

no wait they are a messh

shut ember
#

there you have it

cedar sapphire
#

so its the mesh parts fault?

shut ember
#

yup

cedar sapphire
#

ohh alr sorry for wasting your time

shut ember
#

no no, thats fine

cedar sapphire
#

brooo im so sorry

shut ember
#

thank you for trusting me

shut ember
cedar sapphire
shut ember
#

np np

#

thats great to know

cedar sapphire
ruby remnant
#

try and add a part instance with the name head in there