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

Im trying to weld the tool without a handle on the left arm but Its appears not work?

Asked by 2 years ago

NOTE: IM USING R6 FOR THIS

As the name says, Im making a tool where when you equip It, It will appear on the left arm of the R6 rig, but It appears to simply appear where I originally placed It (Im also trying to avoid where the default tool Idle animation plays)

Script:

local tool = script.Parent
local Char = tool.Parent
local Humanoid = Char.Humanoid

tool.Equipped:Connect(function()
    local Weld = Instance.new("Weld")

    Weld.Parent = tool.Stick
    Weld.Part0 = tool.Stick
    Weld.Part1 = Humanoid.Parent["Left Arm"]
    tool.Stick.Position = Humanoid.Parent["Left Arm"].Position
    tool.Stick.Orientation = Humanoid.Parent["Left Arm"].Orientation

    tool.Unequipped:Connect(function()
        Weld:Destroy()
    end)
end)
0
maybe do some research before posting... https://devforum.roblox.com/t/weld-tool-to-the-hand/228537/2 raid6n 2196 — 2y

Answer this question