How does the R6 Linked Sword animations work? and does anyone have a port of the slash to a actual animation object

I was recoding? rescripting? idk doing scripting again for the good old linked sword
I wanted to port over the animation for slash and lunge(R6) and I am beyond confused

I tried to port it over and I managed to find out all the code it used was this roughly

Slash

script.Parent.Activated:Connect(function()
	local Anim = Instance.new("StringValue")
	Anim.Name = "toolanim"
	Anim.Value = "Slash"
	Anim.Parent = script.Parent
end)

Lunge

Grips = {
	Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
	Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
}

script.Parent.Activated:Connect(function()
	local Anim = Instance.new("StringValue")
	Anim.Name = "toolanim"
	Anim.Value = "Lunge"
	Anim.Parent = script.Parent
	
	wait(0.2)
	script.Parent.Grip = Grips.Out
	wait(0.6)
	script.Parent.Grip = Grips.Up
end)

HOW THE … IS IT ANIMATING
is there documentation for this anywhere because I can’t find it

and does anyone have a port for the slash animation as a actual animation I can use?

This. It uses very old code in the R6 Animate script to animate the tool. You should look there.

1 Like

There is essentially a hard-coded animation within the animate script so that when the tool detects that a stringvalue of the name “toolanim” with the value “Lunge” has been added as a child, it does the animation.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.