Axolotleless

Look system r6

Feb 11th, 2025
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.88 KB | None | 0 0
  1. --LocalScript
  2.  
  3. local Camera = game.Workspace.CurrentCamera
  4. local Player = game.Players.LocalPlayer
  5.  
  6. local char = Player.Character
  7. local origRightS = char:WaitForChild("Torso"):WaitForChild("Right Shoulder").C0
  8. local origLeftS = char:WaitForChild("Torso"):WaitForChild("Left Shoulder").C0
  9. local origNeck = char:WaitForChild("Torso"):WaitForChild("Neck").C0
  10.  
  11. local m = Player:GetMouse()
  12.  
  13. local UIS = game:GetService("UserInputService")
  14.  
  15. local IsEquipped = false
  16.  
  17. game:GetService("RunService").RenderStepped:Connect(function()
  18.     if IsEquipped == true then
  19.  
  20.         if char.Torso:FindFirstChild("Right Shoulder") then
  21.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:Lerp(CFrame.new(1, .65, 0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y), 1.55, 0, 0) , 0.1)
  22.         end
  23.         if char.Torso:FindFirstChild("Left Shoulder") then
  24.             char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:Lerp(CFrame.new(-1, .65, 0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y), -1.55, 0, 0) , 0.1)
  25.         end
  26.         if char.Torso:FindFirstChild("Neck") then
  27.             char.Torso["Neck"].C0 = char.Torso["Neck"].C0:Lerp(CFrame.new(0, 1, 0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y) + 1.55, 3.15, 0), 0.2)
  28.         end
  29.  
  30.     else
  31.  
  32.         if char.Torso:FindFirstChild("Right Shoulder") then
  33.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(origRightS, 0.1)
  34.         end
  35.  
  36.         if char.Torso:FindFirstChild("Left Shoulder") then
  37.             char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(origLeftS, 0.1)
  38.         end
  39.  
  40.         if char.Torso:FindFirstChild("Neck") then
  41.             char.Torso["Neck"].C0 = char.Torso["Neck"].C0:lerp(origNeck, 0.1)
  42.  
  43.         end
  44.     end
  45. end)
  46.  
  47. char.ChildAdded:Connect(function()
  48.     for i,v in pairs(char:GetChildren()) do
  49.         if v:IsA("Tool") then
  50.             if v:FindFirstChild("HoldArmsStill") then
  51.  
  52.             else
  53.                 IsEquipped = true
  54.  
  55.             end
  56.         end
  57.     end
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment