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

How can i make these fake arms have your characters clothes?

Asked by
exarlus 72
6 years ago

Ok so i want to know how i can make the fake arms have the same clothes as your characters arm.

script:

script.Parent.Equipped:connect(function()
local lp = game.Players.LocalPlayer
local p = lp.Character
p:WaitForChild("Body Colors")
larm = p['LeftLowerArm']
rarm = p['RightLowerArm']

l = Instance.new("Part",workspace.CurrentCamera)

l.FormFactor = "Custom"
l.BrickColor = p['Body Colors'].LeftArmColor
l.Material = "SmoothPlastic"
l.CanCollide = false


r = Instance.new("Part",workspace.CurrentCamera)
r.FormFactor = "Custom"
r.BrickColor = p['Body Colors'].RightArmColor
r.Material = "SmoothPlastic"
r.CanCollide = false


script.Parent.left.Value = l
script.Parent.right.Value = r



l.Size = Vector3.new(0.89, 1.94, 0.91)   
l.CFrame  = larm.CFrame

r.Size = Vector3.new(0.89, 1.94, 0.91)
r.CFrame = rarm.CFrame


local lw = Instance.new("Weld",l)
lw.Part0 = l
lw.Part1 = p['LeftLowerArm']


local rw = Instance.new("Weld",r)
rw.Part0 = r
rw.Part1 = p['RightLowerArm']


r.Name = (lp.Name.."'s extra right arm")
l.Name = (lp.Name.."'s extra left arm")
while wait() do
    l.BrickColor = p['Body Colors'].LeftArmColor
    r.BrickColor = p['Body Colors'].RightArmColor
end
script.Parent.MouseButton1Down:connect(function()
    if l.Transparency == 1 then
        l.Transparency = 0
        r.Transparency = 0
    elseif l.Transparency == 0 then 
        l.Transparency = 1
        r.Transparency = 1

    else
    print("ERROR")

    l.Transparency = 0
    r.Transparency = 0
    end
end)

p.Humanoid.Died:connect(function()
    larm.Transparency = 0
    rarm.Transparency = 0
    l:Destroy()
    r:Destroy()
end)
end)

script.Parent.Unequipped:connect(function()
    larm.Transparency = 0
    rarm.Transparency = 0
    l:Destroy()
    r:Destroy()
end)
0
Well, it's actually pretty complicated. Shirts work because the arms are in a model with a humanoid, and everything is in the correct order. Maybe try cloning the whole character and making everything but the arm transparent? ax_gold 360 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Right click on the models name in the explorer. Press Pants and Shirt and enter your id in the pant template or shirt template.

Have fun coding!
0
Not exactly what i was talking about. exarlus 72 — 6y
Ad

Answer this question