i got a problem that not been before
its just not playing animation like when i reload but it should and shooting problem that weapon have animation that plays but hands not moving(stuck on the idle animation)
i think problem with copying animations but i dont know reason and why this happens (i tried old version of game when this works normally but now its not)
here copy animation script
local char = game.Players.LocalPlayer.Character
local hum = char:WaitForChild("Humanoid")
if workspace.Fps:FindFirstChild("Arms") then
workspace.Fps.Arms:Remove()
end
local fps = arms:Clone()
fps.Parent = workspace.Fps
local tracks = {}
runsrvc.Heartbeat:Connect(function()
local currentPlayingTracks = {}
for _, track in ipairs(hum:GetPlayingAnimationTracks()) do
-- save tracks like in table index = animid, value = track
currentPlayingTracks[track.Animation.AnimationId] = track
end
--for i,v in char:GetChildren() do
-- if not table.find(added, v) then
-- if v:IsA("Clothing") then
-- table.insert(added, v)
-- v:Clone().Parent = fps
-- end
-- end
--end
for anim, clonedTrack in pairs(tracks) do
if not currentPlayingTracks[anim] and not clonedTrack.IsPlaying then
clonedTrack:Stop()
tracks[anim] = nil
end
end
for _, originalTrack in pairs(currentPlayingTracks) do
local anim = originalTrack.Animation.AnimationId
if not tracks[anim] then -- create new track
local newTrack = fps.Humanoid:LoadAnimation(originalTrack.Animation)
tracks[anim] = newTrack
newTrack.Looped = originalTrack.Looped
newTrack.Priority = originalTrack.Priority
newTrack.TimePosition = originalTrack.TimePosition
newTrack:Play()
else
-- update params from original track
local clonedTrack = tracks[anim]
clonedTrack.Looped = originalTrack.Looped
clonedTrack.Priority = originalTrack.Priority
clonedTrack.TimePosition = originalTrack.TimePosition
clonedTrack:AdjustWeight(originalTrack.WeightCurrent)
end
end
end)