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)

9 comments

0

ohmygod my brain is hurting

0

script pls

0

I'm not sure what you mean by 'the character leans back'

0

ok i edited with script

0

CanCollide = false

0

Maybe checking the box that says Mass less will work, becuase it is for welds

0

just make the tool can not collide

0

If cancollide is enabled, disable it.

0

I think it was because the tool had a humanoid Inside it. Darn it.