!unknown.png (874×417) I'm making this tool and when the player clicks, the arm goes back (im doing this by setting the C0 value in right shoulder) and the character leans forward. I've been trying to stop this from happening for more than an hour now, and i'm getting angry. please help!!
local TweenService = game:GetService("TweenService")
Tool.Equipped:Connect(function(Mouse)
local Shoulder = Character.Torso["Right Shoulder"]
local ShoulderOriginal = Shoulder.C0
local Grip = Character["Right Arm"]:WaitForChild("RightGrip")
local GripOriginal = Grip.C0
Mouse.Button1Down:Connect(function()
TweenService:Create(Shoulder,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{C0 = ShoulderOriginal*CFrame.Angles(0,0,math.pi/2)}):Play()
TweenService:Create(Grip,TweenInfo.new(.5),{C0 = GripOriginal*CFrame.Angles(-math.pi/4,0,0)}):Play()
TweenService:Create(Head,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{Size = Vector3.new(3,6,1)}):Play()
TweenService:Create(HeadWeld,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{C1 = CFrame.new(0,3.5,0)}):Play()
end)
Mouse.Button1Up:Connect(function()
TweenService:Create(Shoulder,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{C0 = ShoulderOriginal}):Play()
TweenService:Create(Grip,TweenInfo.new(.5),{C0 = GripOriginal}):Play()
TweenService:Create(Head,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{Size = Vector3.new(.5,.5,.5)}):Play()
TweenService:Create(HeadWeld,TweenInfo.new(.5,Enum.EasingStyle.Bounce),{C1 = CFrame.new(0,.75,0)}):Play()
end)
end)