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 :-(

3 comments

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.

0

Dx

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.