How can I weld an arm once a tool gets equipped?

This is my first post here so tell me if I did something wrong please :smiley:

Hi, I was trying to make a game similar to Ragdoll Universe by @Lightning_Splash

I got the “ragdolly character” system to work but ran into an issue…

in game when equipping a tool the character gets from a “floppy arm” state to a welded and rigid state

no tool

tool equipped

I tried recreating this system myself by checking if a tool was added to the character then welding an arm, the script looked something like this

if game.Players.LocalPlayer.Character:FindFirstChildWichIsA("Tool") then
local RA = game.Players.LocalPlayer.Character:FindFirstChild("Right Arm")
local Weld = instance.new("Motor6d",RA)
Weld.Part0 = RA
Weld.Part1 = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
end

I dont exactly remember the script since im on mobile but it looked something like it

Note: I don’t have any association with the studio of Ragdoll Universe this is just how I assumed the equipping system works, also im not trying to steal/recreate the game I just tought making something similar would be pretty cool

Thanks for checking my topic

I believe a tool already gets welded to the characters hand once it’s equipped, if you want to change the way the player is holding the tool, you can either change the position of the handle or use EgoMoose’s Tool Grip Editor plugin.

Well you see the fact is that i can manage to weld the tool, but I discovered that trying to do anything tool-sided (like for example checking if the tool has been activated) with a non-welded arm isnt possible
(also for guns it’d be better to have the arm stable)

UPDATE
umm i found a wayy more simple method of doing this wich is just to add fake arms and make them invisible when equipping a tool

1 Like