Advertisement
DEVJORDAN22

DEVJORDAN22 fe hat PP

Jan 19th, 2024
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. local movers = {}
  2. local tog = true
  3. local move = false
  4. local Player = game:GetService("Players").LocalPlayer
  5. local Character = Player.Character
  6. local mov = {};
  7. local mov2 = {};
  8.  
  9. local Hats = {Hat1 = Character:WaitForChild("MeshPartAccessory"),
  10. -- Hat2 = Character:WaitForChild("Hat2"),
  11. -- Hat3 = Character:WaitForChild("Hat3"),
  12. }
  13.  
  14.  
  15. --Dont touch below
  16.  
  17. for i,v in next, Hats do
  18. v.Handle.AccessoryWeld:Remove()
  19. for _,mesh in next, v:GetDescendants() do
  20. if mesh:IsA("Mesh") or mesh:IsA("Mesh") then -- change mesh to Specialmesh if u want to destroy the mesh
  21. mesh:Remove()
  22. end
  23. end
  24. end
  25.  
  26. function ftp(str)
  27. local pt = {};
  28. if str ~= 'me' and str ~= 'random' then
  29. for i, v in pairs(game.Players:GetPlayers()) do
  30. if v.Name:lower():find(str:lower()) then
  31. table.insert(pt, v);
  32. end
  33. end
  34. elseif str == 'me' then
  35. table.insert(pt, plr);
  36. elseif str == 'random' then
  37. table.insert(pt, game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())]);
  38. end
  39. return pt;
  40. end
  41.  
  42. local function align(i,v)
  43. local att0 = Instance.new("Attachment", i)
  44. att0.Position = Vector3.new(0,0,0)
  45. local att1 = Instance.new("Attachment", v)
  46. att1.Position = Vector3.new(0,0,0)
  47. local AP = Instance.new("AlignPosition", i)
  48. AP.Attachment0 = att0
  49. AP.Attachment1 = att1
  50. AP.RigidityEnabled = false
  51. AP.ReactionForceEnabled = false
  52. AP.ApplyAtCenterOfMass = false
  53. AP.MaxForce = 9999999
  54. AP.MaxVelocity = math.huge
  55. AP.Responsiveness = 65
  56. local AO = Instance.new("AlignOrientation", i)
  57. AO.Attachment0 = att0
  58. AO.Attachment1 = att1
  59. AO.ReactionTorqueEnabled = false
  60. AO.PrimaryAxisOnly = false
  61. AO.MaxTorque = 9999999
  62. AO.MaxAngularVelocity = math.huge
  63. AO.Responsiveness = 50
  64. end
  65.  
  66.  
  67. --Dont touch above
  68.  
  69. align(Hats.Hat1.Handle, Character["Torso"])
  70. -- align(Hats.Hat2.Handle, Character["Torso"])
  71. -- align(Hats.Hat3.Handle, Character["Torso"])
  72.  
  73.  
  74.  
  75.  
  76. Hats.Hat1.Handle.Attachment.Rotation = Vector3.new(-90,0,0)
  77. -- Hats.Hat2.Handle.Attachment.Rotation = Vector3.new(0,0,0)
  78. -- Hats.Hat4.Handle.Attachment.Rotation = Vector3.new(0,0,0)
  79.  
  80.  
  81.  
  82. Character:WaitForChild("Torso"):FindFirstChild("Attachment").Name = "Attachment1" -- make a new attachment to
  83. --Character:WaitForChild("Torso"):FindFirstChild("Attachment").Name = "Attachment2"
  84. --Character:WaitForChild("Torso"):FindFirstChild("Attachment").Name = "Attachment3"
  85.  
  86.  
  87. Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(0, -1.4, -1)
  88. --Character:WaitForChild("Torso").Attachment2.Position = Vector3.new(0, 0, 0)
  89. --Character:WaitForChild("Torso").Attachment3.Position = Vector3.new(0, 0, 0)
  90.  
  91. -- the mid value is up or down it depends it goes down if u have a minus infront of it and up if u dont
  92. -- the last value is forwards or backwards if u put a minus infront of it it goes forward and if u remove the minus it goes backwards
  93. -- the first value is to the side if u dont have minus and to the other side if u have minus im bad at explaining lol
  94. --Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(-0, 0, -0) - position of hat2
  95. -- Position or Rotation
  96.  
  97.  
  98.  
  99.  
  100. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(KeyPressed)
  101. if KeyPressed == "Key" then -- key to play animation
  102. if toggle == false then
  103. Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(0,0,0) -- value for animation -- Position or Rotation
  104. wait(.1)
  105. Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(0,0,0) -- normal value -- Position or Rotation
  106. toggle = true
  107. else
  108.  
  109. toggle = false
  110. end
  111.  
  112. end
  113. end)
  114. --[[
  115. while true do
  116. Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(0,0,0) -- value for loop -- Position or Rotation
  117. wait(.1)
  118. Character:WaitForChild("Torso").Attachment1.Position = Vector3.new(0,0,0) -- value for loop end Position or Rotation
  119. end]]
  120.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement