Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

1

Do: weld.Part0 = plr.Character["Left Arm"]

0

Also, you should access the player outside of the function.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.