JacobRoblox

Untitled

Apr 3rd, 2020
1,415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. --Script created by Coopss#0001
  2. local Y = -50 --/* Places your head 50 studs below you [Feel free to change to wherever.]
  3.  
  4. local LP = game:GetService('Players').LocalPlayer
  5. if not workspace:FindFirstChild(LP.Name) then LP.CharacterAdded:Wait() end
  6. local Char = workspace[LP.Name]
  7.  
  8. local Hat = Char:FindFirstChildOfClass('Accessory')
  9. local Handle = Hat['Handle']; local Attachment = Handle:FindFirstChildWhichIsA('Attachment')
  10. local ACWeld = Handle:FindFirstChildWhichIsA('Weld')
  11.  
  12. local Var, BPart;
  13. if tostring(ACWeld.Part1) == 'Torso' or tostring(ACWeld.Part1) == 'UpperTorso' then
  14. Var = -Y
  15. BPart = Char['Head']
  16. else
  17. Var = Y
  18. BPart = Char['HumanoidRootPart']
  19. end
  20.  
  21. local RGrip = Instance.new('Weld')
  22. RGrip.Name = 'RightGrip'
  23. RGrip.Part1 = Handle; RGrip.Part0 = BPart
  24. RGrip.Parent = BPart
  25. Attachment.CFrame = CFrame.new(0,0,0);
  26. RGrip.C1 = Handle.CFrame:ToObjectSpace(Char['HumanoidRootPart'].CFrame) RGrip.C0 = CFrame.new(0, Var, 0)
Advertisement
Add Comment
Please, Sign In to add comment