Basically, I'm tryna make a small fps concept because it is something that I've always wanted to try, so I go to studio, and make some code for the basic framework. I made an animation, and now, I get a warning that the limit for the animation tracks have been exceeded, so no new animations can be made. Here is the code for it btw.
local cam = workspace.CurrentCamera
local run = game:GetService("RunService")
local rp = game:GetService("ReplicatedStorage")
local arms = rp:WaitForChild("Arm Rig").Arms:Clone()
local shoot = rp.Remotes:WaitForChild("Shoot")
local Glock = rp.Guns:WaitForChild("Glock17"):Clone()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local newRightArm = character:WaitForChild("Right Arm"):Clone()
local newLeftArm = character:WaitForChild("Left Arm"):Clone()
local existingRightArm = arms.RightArm:WaitForChild("Right Arm Main")
local existingLeftArm = arms.LeftArm:WaitForChild("Left Arm Main")
local handle = Glock:WaitForChild("Handle")
run.RenderStepped:Connect(function()
arms:SetPrimaryPartCFrame(cam.CFrame * CFrame.new(0,-2,0))
local animation = rp.Animations:WaitForChild("Idle")
local loader = arms:WaitForChild("AnimationController"):LoadAnimation(animation)
loader:Play()
newLeftArm.Parent = arms
newRightArm.Parent = arms
newLeftArm:ClearAllChildren()
newRightArm:ClearAllChildren()
newLeftArm.CanCollide = false
newRightArm.CanCollide = false
newRightArm.Size = Vector3.new(4.65,1.04,0.94)
newLeftArm.Size = Vector3.new(4.65, 1.04, 0.94)
newLeftArm.CFrame = existingLeftArm.CFrame
newRightArm.CFrame = existingRightArm.CFrame
local w = Instance.new("Weld", newLeftArm)
w.Part0 = existingLeftArm
w.Part1 = newLeftArm
local w2 = Instance.new("Weld", newRightArm)
w.Part0 = existingRightArm
w.Part1 = newRightArm
Glock.Parent = arms
handle.CFrame = arms.RightArm.Holder.CFrame
local w3 = Instance.new("Motor6D", handle)
w3.Part0 = arms.RightArm.Holder
w3.Part1 = handle
end)
arms.Parent = cam
This warning wont allow me to load anymore animations on the arm rig, which is gonna be a large problem.
