yougotoof

Untitled

Jul 14th, 2022 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. if game.workspace:FindFirstChild("miscparts191001101010") == nil then
  2. print("--------------------------------------")
  3. print(" HatMover")
  4. print("")
  5. print("This script allows you to move your hats")
  6. print("--------------------------------------")
  7. print("")
  8. print("--------------------------------------")
  9. print("This scripts was made By TheInvisible_")
  10. print("--------------------------------------")
  11. local function align(p,at1,at2,boolers)
  12. local obj1 = game:GetObjects("rbxassetid://5760223514")
  13. for i,v in pairs(obj1) do
  14. v.Parent = p
  15. v.RigidityEnabled = boolers
  16. v.Attachment0 = at1
  17. v.Attachment1 = at2
  18. end
  19. local obj2 = game:GetObjects("rbxassetid://5760225829")
  20. for i,v in pairs(obj2) do
  21. v.Parent = p
  22. v.RigidityEnabled = boolers
  23. v.Attachment0 = at1
  24. v.Attachment1 = at2
  25. end
  26. end
  27.  
  28.  
  29.  
  30. local folder = Instance.new("Folder",workspace)
  31. folder.Name = "miscparts191001101010"
  32.  
  33.  
  34.  
  35. getgenv().makemovers = function(hhandle,pos,ppp1,boolerss,collide)
  36. local boolv
  37. if boolerss == nil or boolerss == "" then
  38. boolv = false
  39. else
  40. boolv = boolerss
  41. end
  42. if hhandle ~= nil then
  43. local part11 = ppp1
  44. local physProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  45. hhandle.CustomPhysicalProperties = physProperties
  46. local RunService = game:GetService("RunService")
  47. local part = Instance.new("Part",folder)
  48. part.Transparency = 1
  49. part.CanCollide = false
  50. part.Name = "Random Generated part"
  51. local Attach1 = Instance.new("Attachment",part)
  52. local Attach2 = Instance.new("Attachment",hhandle)
  53. align(part,Attach2,Attach1,boolv)
  54. hhandle:BreakJoints()
  55. local ok = Instance.new("Motor6D",part)
  56. ok.Part0 = part
  57. ok.Part1 = part11
  58. ok.C0 = pos
  59. hhandle.CanCollide = collide
  60. hhandle.Parent.Name = "ActiveMoverHat"
  61. local bruh do
  62. bruh = game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
  63. part:Destroy()
  64. ok:Destroy()
  65. bruh:Disconnect()
  66. end)
  67. end
  68. else
  69. print("Hat not existing Aborting")
  70. end
  71. end
  72. end
Add Comment
Please, Sign In to add comment