I am currently making a “rasengan”. I want the script to make a clone of the player that plays an animation, however it seems to not load an animation.
Here is the script I made as well.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local debounce = false
ReplicatedStorage.Remotes.Rasengan.OnServerEvent:Connect(function(player)
if debounce then return end
local character = player.Character
local cloneSeal = character.Humanoid:LoadAnimation(script.CloneSeal)
local rasenganHold = character.Humanoid:LoadAnimation(script.RasenganHold)
cloneSeal:Play()
cloneSeal:GetMarkerReachedSignal("Seal"):Connect(function()
debounce = true
character.Archivable = true
local clone = character:Clone()
clone:FindFirstChild("Animate"):Destroy()
clone:FindFirstChild("Health"):Destroy()
clone.Name = character.Name.."'s Clone"
clone.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(3, 0, 0)
clone.Parent = workspace
clone:WaitForChild("Humanoid"):LoadAnimation(script.RasenganForming)
end)
end)