Popular Posts

Tuesday, 7 April 2026

HOW TO MAKE A SWORD SWINGING

 how to make a sword swing

1st make your sword
2nd Open Animation Editor: Go to the Plugins tab and open the Animation Editor Create Rig: Select a dummy (R6 or R15) to animate Keyframes: Set up the animation by creating a starting position, a mid-swing point (around 0.06-0.09s), and an ending position Set Priority: Set the animation priority to Action (crucial so the swing overrides walking animations).

3. Scripting the Swing
  • Add Animation Object: Inside the Tool, create an Animation object, name it "SwingAnim," and paste your published animation ID into the AnimationId property.
  • Add Script: Add a Script inside the tool to handle the input and animation.
  • Sample Script:



    local tool = script.Parent
    local anim = tool:WaitForChild("SwingAnim")
    local loadedAnim
    
    tool.Activated:Connect(function()
        local character = tool.Parent
        local humanoid = character:FindFirstChild("Humanoid")
        if humanoid then
            loadedAnim = humanoid:LoadAnimation(anim)
            loadedAnim:Play()
        end
    end)




No comments:

Post a Comment

HOW TO MAKE YOUR OWN HAT THAT CAN BE THROWN (while the hat is still on the head)

how to make your own hat that can be thrown while the hat is still on the head STEP 1: MAKE YOUR OWN HAT! 1: USE PARTS OR MESH TO MAKE IT 2:...