Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

character wont stand upright while holding tool? (pls help im going insane)

Asked by 5 years ago
Edited 5 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

!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)

0
ohmygod my brain is hurting quinowenryanjen 0 — 5y
0
script pls AltNature 169 — 5y
0
I'm not sure what you mean by 'the character leans back' blocky010101 23 — 5y
0
ok i edited with script quinowenryanjen 0 — 5y
View all comments (5 more)
0
CanCollide = false NickAtNick 163 — 5y
0
Maybe checking the box that says Mass less will work, becuase it is for welds Fad99 286 — 5y
0
just make the tool can not collide Gameplayer365247v2 1055 — 5y
0
If cancollide is enabled, disable it. mrorangethegamer 81 — 5y
0
I think it was because the tool had a humanoid Inside it. Darn it. quinowenryanjen 0 — 5y

Answer this question