I’m currently trying to mimick the animation style from R6 to R15. This runs off the basic sword script Roblox created many years ago.
I want to mimick this | link to youtube as gifs don’t want to load.
Script
local function performNormalAttack()
if owner.Character:FindFirstChild("Humanoid",true) and owner.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
warn(1)
local anim = Instance.new("Animation"); local animator = owner.Character:FindFirstChild("Animator",true)
anim.AnimationId = "rbxassetid://".."73977001082323"
print(2)
local animTrack = animator:LoadAnimation(anim)
print(3)
animTrack:Play()
print("Completed Normal Attack")
return
end
local anim = Instance.new("StringValue")
attackDamage.base = attackDamage.normal
anim.Name = "toolanim"
anim.Value = "Slash"
anim.Parent = tool
end
local function performStrongAttack()
if owner.Character:FindFirstChild("Humanoid",true) and owner.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
local anim = Instance.new("Animation"); local animator = owner.Character:FindFirstChild("Animator",true)
anim.AnimationId = "rbxassetid://".."80965507029818"
local animTrack = animator:LoadAnimation(anim)
animTrack:Play()
print("Completed Strong Attack")
task.wait(0.25)
swordOut()
task.wait(0.75)
swordUp()
attackDamage.base = 0
return
end
local anim = Instance.new("StringValue")
attackDamage.base = attackDamage.strong
anim.Name = "toolanim"
anim.Value = "Lunge"
anim.Parent = tool
task.wait(0.25)
swordOut()
task.wait(0.75)
swordUp()
attackDamage.base = 0
end