Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Play animation and put away sword at same time? [closed]

Asked by 7 years ago

how can i make it so when you press f it plays an animation id and after the animation the sword is on your back? and it doesnt go back in your hand? heres what i have so far

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

Mouse.KeyDown:connect(function(Key)
    Key = Key:lower()
    if Key == 'f' then
        game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).BigSword
    end
end)

Please help :-(

0
No specifics since you only put variables, but I would make it 2 animations, like one is the first half, then put away the sword after a .1 wait and ,after another .1 wait, I would play the second animation. You can maybe just put a wait (however long you into the anim you want it) and do put sword away but idk if that works. camxd01 48 — 7y
0
Dx lukebloxdaily 6 — 7y
0
Use the `Humanoid:LoadAnimation( [ID] )` function to get the AnimatoinTrack, use the `Play` function on the AnimationTrack to play it. You have to actially MAKE the animation first, though. Goulstem 8144 — 7y

Closed as Not Constructive by Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?