im trying to fix an acs cframe issue
problem is that the mag literally is rotated and suddenly just goes into the gun and goes to normal
i cant do cframes so i have no idea on HOW I CAN EVEN FIX IT.
code:
ReloadAnim = function(char, speed, objs)
ts:Create(objs[2],TweenInfo.new(0.3),{C1 = CFrame.new(-0.1, 0, -1.2) * CFrame.Angles(math.rad(-95), math.rad(5), math.rad(-40))}):Play()
ts:Create(objs[3],TweenInfo.new(0.3),{C1 = CFrame.new(0,0,-2.5) * CFrame.Angles(math.rad(-100),math.rad(-3),math.rad(25))}):Play()
wait(0.4)
ts:Create(objs[2],TweenInfo.new(0.3),{C1 = CFrame.new(-1.5, 0, -0.9) * CFrame.Angles(math.rad(-100), math.rad(-20), math.rad(25))}):Play()
wait(0.2)
ts:Create(objs[5].Mag:WaitForChild("Mag"),TweenInfo.new(0.2),{C1 = CFrame.new(0,-2,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))}):Play()
objs[5].Handle:WaitForChild("MagOut"):Play()
wait(0.1)
local MagC = objs[5]:WaitForChild("Mag"):clone()
MagC.Parent = objs[5]
MagC.Name = "MagC"
MagC.Transparency = 0
local MagCW = Instance.new("Motor6D")
MagCW.Part0 = MagC
MagCW.Part1 = objs[3].Parent.Parent:WaitForChild("Left Arm")
MagCW.Parent = MagC
MagCW.C1 = MagC.CFrame:toObjectSpace(objs[3].Parent.Parent:WaitForChild("Left Arm").CFrame)
ts:Create(MagCW,TweenInfo.new(0),{C0 = CFrame.new(-0.2, 0.5, -0.75) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))}):Play()
wait(0.2)
ts:Create(objs[2],TweenInfo.new(0.3),{C1 = CFrame.new(-0.8, 0.2, -0.7) * CFrame.Angles(math.rad(-100), math.rad(0), math.rad(25))}):Play()
ts:Create(objs[3],TweenInfo.new(0.3),{C1 = CFrame.new(-0.6,1,-1.6) * CFrame.Angles(math.rad(-100),math.rad(-3),math.rad(45))}):Play()
wait(0.34)
ts:Create(objs[2],TweenInfo.new(0.3),{C1 = CFrame.new(-0.8, 0.2, -0.9) * CFrame.Angles(math.rad(-100), math.rad(0), math.rad(25))}):Play()
ts:Create(objs[3],TweenInfo.new(0.3),{C1 = CFrame.new(-0.6,1,-1.2) * CFrame.Angles(math.rad(-100),math.rad(-3),math.rad(25))}):Play()
objs[5].Handle:WaitForChild("MagIn"):Play()
wait(0.2)
MagC:Destroy()
ts:Create(objs[5].Mag:WaitForChild("Mag"),TweenInfo.new(0),{C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))}):Play()
objs[5].Mag.Transparency = 0
if (objs[6].Value - (objs[8].Ammo - objs[7].Value)) < 0 then
objs[7].Value = objs[7].Value + objs[6].Value
objs[6].Value = 0
--Evt.Recarregar:FireServer(objs[5].Value)
elseif objs[7].Value <= 0 then
objs[6].Value = objs[6].Value - (objs[8].Ammo - objs[7].Value)
--Evt.Recarregar:FireServer(objs[5].Value)
objs[7].Value = objs[8].Ammo
objs[9] = false
elseif objs[7].Value > 0 and objs[9] and objs[8].IncludeChamberedBullet then
objs[6].Value = objs[6].Value - (objs[8].Ammo - objs[7].Value) - 1
--objs[10].Recarregar:FireServer(objs[6].Value)
objs[7].Value = objs[8].Ammo + 1
elseif objs[7].Value > 0 and objs[9] and not objs[8].IncludeChamberedBullet then
objs[6].Value = objs[6].Value - (objs[8].Ammo - objs[7].Value)
--Evt.Recarregar:FireServer(objs[5].Value)
objs[7].Value = objs[8].Ammo
end
wait(0.3)
end;
video:
robloxapp-20240907-1839436.wmv (551.8 KB)