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

Animation problemo ?

Asked by
Bulvyte 388 Moderation Voter
7 years ago
Edited 7 years ago

i dunno if this post right or not... but I just made sheathe and unsheathe animations for my sword the thing i don't like is whenever u equip the sword shows up instantly and it just goes static with the hand without any rotations heres what i mean https://gyazo.com/718d628883b497a3ad74340b211e7599 So i want the sword to appear whenever 0.5 seconds pass and make it rotate how the hand does, cuz know it looks like ur cutting ur hands ;-;

Also the sword disappears instantly when u unequip, how can u make it disappear once the animation finishes ?

local player = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.Character
local Humanoid = char.Humanoid
local unsheathe = script.Parent.unsheathe
local sheathe = script.Parent.sheathe

script.Parent.Parent.Equipped:connect(function()
    script.Parent.Parent.Enabled = false
    local animTrack = Humanoid:LoadAnimation(unsheathe)
    animTrack:Play()
    wait(1)
    animTrack:Stop()
end)

script.Parent.Parent.Unequipped:connect(function()
    local animTrack = Humanoid:LoadAnimation(sheathe)
    animTrack:Play()
    wait(0.9)
    animTrack:Stop()
end)

What can i do ?

Answer this question