Hello! Im trying to make it so if a player equips the katana then what will happen is if their standing then they will have a standing animation I made looped for how ever long they stand
The Problem is for some reason when I walk then for some reason the animation keeps going and It looks strange, also for some reason it doesnt loop at all.
How do I make it so it has a walking animation whenever it walks? I already made on but Im still slowly learning how to animate so idk how to make it so when I walk WITH the katana then It starts the walking animation.
Script
local remote = script.Parent:WaitForChild("Katana")
remote.OnServerEvent:Connect(function(Player, Value)
local character = workspace:WaitForChild(Player.Name)
if Value == "Equipped" then
print("A Item Has Been Equipped!")
local lookForAnimation = character:FindFirstChild("KatanaEquippedAnimation")
if lookForAnimation then
lookForAnimation:Destroy()
end
local animation = Instance.new("Animation", character)
animation.Name = "KatanaEquippedAnimationV2"
animation.AnimationId = "rbxassetid://6581749713"
local loader = character:WaitForChild("Humanoid"):LoadAnimation(animation)
loader:Loop()
elseif Value == "Attack" then
print("A Player Has Attacked!")
end
end)