sourcingqosa.blogg.se

How to make a gun in roblox studio
How to make a gun in roblox studio






how to make a gun in roblox studio

If child:IsA("Tool") and child:FindFirstChild("BodyAttach") then Local M6D = Instance.new("Motor6D", char.Torso) - or the part that you have decieded Plr.CharacterAdded:Connect(function(char) When the tool was being equipped, connect the Motor6D with the character.

how to make a gun in roblox studio

We can use ChildAdded to keep track of when a tool is being equipped. Then when a player equips the tool, you have to connect the Motor6D with the Player’s Character’s Part so the tool does not fall. While animating, the tool was welded to the character’s torso (or the part that you have deiced on), the same rule applies in game!įirstly, when the player’s character was being added, grant them an initial Motor6D such that it can be used to connect the player and the tool. Part0 to the decieded part (Torso / Right Arm / Others).Īfter connecting, your tool should be sticking to the dummy.(Torso / Arm / Others)Īfter inserting the Motor6D, make sure everything under your tool is UNANCHORED!! The advantage of welding to torso is that you can animate the gun freely instead of having it stick to the Right Arm all the time.Īnd more! You can even animate melee / knife tricks animation with this, without the knife being stick to the Right Arm all the time.Īfter you have decided on which character part to weld on, Click this “+” icon next to the dummy part that you have decided on. since Blender constraints can solve this problem.īenefits of welding to Torso: (Click here to see) This method is highly suggested for people who animates in Blender. Which means the character is no longer “holding” the tool. However, if you choose this method, the tool will NOT move when you animate the right arm. Torso: If you wish the tool to NOT be constrained by the arms, aka being able to move freely when animating, choose Torso. Which means whenever the right arm MOVES in an animation, the tool WILL move accordingly.

how to make a gun in roblox studio

NOTE: The tool moves ACCORDINGLY with the arm if you choose this method. This behaves similar to a typical Roblox tool. Left / Right Arm: If you wish the tool to move along with either one of the arms, choose Left / Right Arm. Here you have to choose WHERE do you want the tool to stick with the character.








How to make a gun in roblox studio