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 8 years ago

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

I made this SCRIPT :

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

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 :

1script.Parent.Equipped:connect(function(mouse)
2 
3end)
1
Do: weld.Part0 = plr.Character["Left Arm"] FiredDusk 1466 — 8y
0
Also, you should access the player outside of the function. FiredDusk 1466 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

I did it by my self!!!

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

1---Danielkaya script
2-----------------
3Tool.Equipped:connect(function(mouse)
4wait()
5local rarm = script.Parent.Parent["Right Arm"]
6rarm.RightGrip.Part0 = script.Parent.Parent["Left Arm"]
7rarm.RightGrip.Part1 = script.Parent.Handle
8end)

feel free to try it out :D

Ad

Answer this question