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

How do I make a tool weld at my left arm?

Asked by 7 years ago

when ever I equip a tool,it AUTOMATICALLY holds the tool in my right arm.

I made this SCRIPT :

script.Parent.Equipped:connect(function(mouse)
    wait(1)
local plr = game.Players.LocalPlayer
local weld = Instance.new("Weld", plr.Character["Left Arm"])
        weld.Part0 = weld.Parent
        weld.Part1 = script.Parent.Handle
        weld.C1 = CFrame.new(0,0,0);
end)

but that script takes my left arm and weld it on my right arm XD I'm so TIRED thinking of how to do this!

can some body teach me how by using this function :

script.Parent.Equipped:connect(function(mouse)

end)
1
Do: weld.Part0 = plr.Character["Left Arm"] FiredDusk 1466 — 7y
0
Also, you should access the player outside of the function. FiredDusk 1466 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

I did it by my self!!!

I made this script inside a LocalScript (inside a tool)

---Danielkaya script
-----------------
Tool.Equipped:connect(function(mouse)
wait()
local rarm = script.Parent.Parent["Right Arm"]
rarm.RightGrip.Part0 = script.Parent.Parent["Left Arm"]
rarm.RightGrip.Part1 = script.Parent.Handle
end)

feel free to try it out :D

Ad

Answer this question