CEs.AnimateT.OnClientEvent:connect(function(w,n,a,g)if w:IsDescendantOf(plr.Character)then return end if g then(TweenService:Create(w,TweenInfo.new(a),g)):Play()else(TweenService:Create(w,TweenInfo.new(a),{C1=n})):Play()end end)CEs.AnimateFE.OnClientEvent:connect(function(w,n,a,g,Q,I,C)if I==plr.Character then return end;(TweenService:Create(I.Torso.Neck,TweenInfo.new(n),{C0=OriginalC0*CFrame.Angles(a,g,Q)})):Play();(TweenService:Create(I.Torso.Mweld1,TweenInfo.new(n),{C1=w[1]*CFrame.new(0,C,0)})):Play();(TweenService:Create(I.Torso.Mweld2,TweenInfo.new(n),{C1=w[2]*CFrame.new(0,C,0)})):Play()if w[3]then(TweenService:Create(I["\082\105\103\104\116 \065\114\109"].Mweld3,TweenInfo.new(n),{C1=w[3]*CFrame.new(0,C,0)})):Play()end;(TweenService:Create(I.HumanoidRootPart.Mtweld,TweenInfo.new(n),{C1=w[4]*CFrame.new(0,C,0)})):Play()end)function checktoolsupdatemouse()local w=game.Players.LocalPlayer.Character for w,n in pairs(w:GetChildren())do if n:IsA("\084\111\111\108")then gui.FakeC.Visible=true;(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseIconEnabled=false return end end gui.FakeC.Visible=false;(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).MouseIconEnabled=true end game.Players.LocalPlayer.Character.ChildAdded:Connect(checktoolsupdatemouse)game.Players.LocalPlayer.Character.ChildRemoved:Connect(checktoolsupdatemouse)checktoolsupdatemouse()
-- Animation
CEs.AnimateT.OnClientEvent:connect(function(Part, NCF, Time, O)
	if Part:IsDescendantOf(plr.Character) then
		return
	end

	if O then
		TweenService:Create(Part, TweenInfo.new(Time), O):Play()
	else
		TweenService:Create(Part, TweenInfo.new(Time), { C1 = NCF }):Play()
	end
end)

CEs.AnimateFE.OnClientEvent:connect(function(w, Time, Ans, NAngle, NRotation, Rchr, HigV)
	if Rchr == plr.Character then
		return
	end

	TweenService
		:Create(Rchr.Torso.Neck, TweenInfo.new(Time), { C0 = OriginalC0 * CFrame.Angles(Ans, NAngle, NRotation) })
		:Play()

	TweenService:Create(Rchr.Torso.Mweld1, TweenInfo.new(Time), { C1 = w[1] * CFrame.new(0, HigV, 0) }):Play()

	TweenService:Create(Rchr.Torso.Mweld2, TweenInfo.new(Time), { C1 = w[2] * CFrame.new(0, HigV, 0) }):Play()

	if w[3] then -- Check if there is an extra weld
		TweenService:Create(Rchr["Right Arm"].Mweld3, TweenInfo.new(Time), { C1 = w[3] * CFrame.new(0, HigV, 0) })
			:Play()
	end

	TweenService:Create(Rchr.HumanoidRootPart.Mtweld, TweenInfo.new(Time), { C1 = w[4] * CFrame.new(0, HigV, 0) })
		:Play()
end)

function checktoolsupdatemouse()
	local char = game.Players.LocalPlayer.Character
	for i, v in pairs(char:GetChildren()) do
		if v:IsA("Tool") then
			gui.FakeC.Visible = true
			game:GetService("UserInputService").MouseIconEnabled = false
			return
		end
	end

	gui.FakeC.Visible = false
	game:GetService("UserInputService").MouseIconEnabled = true
end

game.Players.LocalPlayer.Character.ChildAdded:Connect(checktoolsupdatemouse)
game.Players.LocalPlayer.Character.ChildRemoved:Connect(checktoolsupdatemouse)

checktoolsupdatemouse()
