Hex4rr

middle finger script

Sep 13th, 2020 (edited)
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. -- F to toggle ON
  2. -- H to toggle OFF
  3.  
  4. -- hat (NEEDED!):
  5.  
  6. -- https://web.roblox.com/catalog/4466228735/Bandage
  7.  
  8.  
  9.  
  10. local plr = game.Players.LocalPlayer
  11. local bandage = plr.Character:findFirstChild("Bandage")
  12. local mesh = bandage.Handle.SpecialMesh
  13.  
  14. -- Main Animation. (ID: 182393478)
  15.  
  16. local Anim = Instance.new("Animation")
  17. Anim.AnimationId = "rbxassetid://182393478"
  18. local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  19. track:Play(.1, 1, 1)
  20.  
  21. -- Finger
  22.  
  23. mesh:Destroy()
  24.  
  25. -- Checking Sequence
  26.  
  27. local value = Instance.new("NumberValue")
  28. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  29. if (v:IsA("Accessory")) then
  30. value.Value = value.Value +1
  31. end
  32. end
  33. wait()
  34. print(value.Value)
  35. wait()
  36. if value.Value == 2 then
  37. game.Players.LocalPlayer.Character.Head:Destroy()
  38. spawn(function()
  39. local message = Instance.new("Message",workspace)
  40. message.Text = "ERROR"
  41. wait(1)
  42. message:Destroy()
  43. end)
  44. wait(1)
  45. spawn(function()
  46. local message = Instance.new("Message",workspace)
  47. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  48. wait(4)
  49. message:Destroy()
  50. end)
  51. end
  52.  
  53. if value.Value == 3 then
  54. game.Players.LocalPlayer.Character.Head:Destroy()
  55. spawn(function()
  56. local message = Instance.new("Message",workspace)
  57. message.Text = "ERROR"
  58. wait(1)
  59. message:Destroy()
  60. end)
  61. wait(1)
  62. spawn(function()
  63. local message = Instance.new("Message",workspace)
  64. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  65. wait(4)
  66. message:Destroy()
  67. end)
  68. end
  69.  
  70. if value.Value == 4 then
  71. game.Players.LocalPlayer.Character.Head:Destroy()
  72. spawn(function()
  73. local message = Instance.new("Message",workspace)
  74. message.Text = "ERROR"
  75. wait(1)
  76. message:Destroy()
  77. end)
  78. wait(1)
  79. spawn(function()
  80. local message = Instance.new("Message",workspace)
  81. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  82. wait(4)
  83. message:Destroy()
  84. end)
  85. end
  86.  
  87. if value.Value == 5 then
  88. game.Players.LocalPlayer.Character.Head:Destroy()
  89. spawn(function()
  90. local message = Instance.new("Message",workspace)
  91. message.Text = "ERROR"
  92. wait(1)
  93. message:Destroy()
  94. end)
  95. wait(1)
  96. spawn(function()
  97. local message = Instance.new("Message",workspace)
  98. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  99. wait(4)
  100. message:Destroy()
  101. end)
  102. end
  103.  
  104. if value.Value == 6 then
  105. game.Players.LocalPlayer.Character.Head:Destroy()
  106. spawn(function()
  107. local message = Instance.new("Message",workspace)
  108. message.Text = "ERROR"
  109. wait(1)
  110. message:Destroy()
  111. end)
  112. wait(1)
  113. spawn(function()
  114. local message = Instance.new("Message",workspace)
  115. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  116. wait(4)
  117. message:Destroy()
  118. end)
  119. end
  120.  
  121. if value.Value == 7 then
  122. game.Players.LocalPlayer.Character.Head:Destroy()
  123. spawn(function()
  124. local message = Instance.new("Message",workspace)
  125. message.Text = "ERROR"
  126. wait(1)
  127. message:Destroy()
  128. end)
  129. wait(1)
  130. spawn(function()
  131. local message = Instance.new("Message",workspace)
  132. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  133. wait(4)
  134. message:Destroy()
  135. end)
  136. end
  137.  
  138. if value.Value == 8 then
  139. game.Players.LocalPlayer.Character.Head:Destroy()
  140. spawn(function()
  141. local message = Instance.new("Message",workspace)
  142. message.Text = "ERROR"
  143. wait(1)
  144. message:Destroy()
  145. end)
  146. wait(1)
  147. spawn(function()
  148. local message = Instance.new("Message",workspace)
  149. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  150. wait(4)
  151. message:Destroy()
  152. end)
  153. end
  154.  
  155. if value.Value == 9 then
  156. game.Players.LocalPlayer.Character.Head:Destroy()
  157. spawn(function()
  158. local message = Instance.new("Message",workspace)
  159. message.Text = "ERROR"
  160. wait(1)
  161. message:Destroy()
  162. end)
  163. wait(1)
  164. spawn(function()
  165. local message = Instance.new("Message",workspace)
  166. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  167. wait(4)
  168. message:Destroy()
  169. end)
  170. end
  171.  
  172. if value.Value == 10 then
  173. game.Players.LocalPlayer.Character.Head:Destroy()
  174. spawn(function()
  175. local message = Instance.new("Message",workspace)
  176. message.Text = "ERROR"
  177. wait(1)
  178. message:Destroy()
  179. end)
  180. wait(1)
  181. spawn(function()
  182. local message = Instance.new("Message",workspace)
  183. message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
  184. wait(4)
  185. message:Destroy()
  186. end)
  187. end
  188.  
  189. -- Hat Position
  190.  
  191. local Xval = Instance.new("NumberValue")
  192. local Yval = Instance.new("NumberValue")
  193. local Zval = Instance.new("NumberValue")
  194. local num3 = Instance.new("NumberValue")
  195. local ori = Instance.new("NumberValue")
  196. local an = Instance.new("NumberValue")
  197. local angular = Vector3.new(0,0,0)
  198. ori.Value = 100
  199. num3.Value = 0
  200. Xval.Value = 1.6
  201. Yval.Value = -.35
  202. Zval.Value = -1.45
  203.  
  204. local plr = game.Players.LocalPlayer;
  205.  
  206. -- Toggle ON
  207.  
  208. mouse = plr:GetMouse()
  209. mouse.KeyDown:connect(function(key)
  210.  
  211. if key == "f" then
  212. Xval.Value = 1.6
  213. Yval.Value = -.35
  214. Zval.Value = -1.45
  215. track:Play(.1, 1, 1)
  216. end
  217. end)
  218.  
  219. -- Toggle OFF
  220. mouse.KeyDown:connect(function(key)
  221.  
  222. if key == "h" then
  223. Xval.Value = 0
  224. Yval.Value = -10
  225. Zval.Value = 0
  226. track:Stop()
  227. end
  228. end)
  229.  
  230. local chr = plr.Character;
  231. local hum = chr.Humanoid;
  232. local mov = {};
  233. local mov2 = {};
  234.  
  235. coroutine.resume(coroutine.create(function()
  236. settings().Physics.AllowSleep = false;
  237. game.RunService.RenderStepped:Connect(function()
  238. for i, v in pairs(game.Players:GetPlayers()) do
  239. if v ~= plr then
  240. v.MaximumSimulationRadius = 0.1;
  241. v.SimulationRadius = 0;
  242. else
  243. v.MaximumSimulationRadius = math.pow(math.huge, math.huge);
  244. v.SimulationRadius = math.pow(math.huge, 2);
  245. end
  246. end
  247. end)
  248. end))
  249.  
  250. for _, v in pairs(hum:GetAccessories()) do
  251. local b = v.Handle;
  252. b.CanCollide = false;
  253. b:BreakJoints();
  254. for _, k in pairs(v:GetChildren()) do
  255. if not k:IsA'SpecialMesh' and not k:IsA'Part' then
  256. k:Destroy();
  257. end
  258. end
  259. local still = Instance.new('BodyAngularVelocity', b);
  260. local align = Instance.new('AlignPosition', b);
  261. align.RigidityEnabled = true;
  262. local a0 = Instance.new('Attachment', b);
  263. local a1 = Instance.new('Attachment', chr.Head);
  264. align.Attachment0 = a0;
  265. align.Attachment1 = a1;
  266. table.insert(mov, a1);
  267. table.insert(mov2, still);
  268. end
  269.  
  270. local mode = 1;
  271. local l = 1;
  272. game['Run Service'].RenderStepped:Connect(function()
  273. if mode == 1 then
  274. for _, v in pairs(mov) do
  275. v.Position = Vector3.new(Xval.Value, Yval.Value, Zval.Value);
  276. end
  277. end
  278. end)
  279.  
  280. local function orie()
  281. while wait() do
  282. for _, v in pairs(hum:GetAccessories()) do
  283. local b = v.Handle;
  284. b.Orientation = Vector3.new(plr.Character.Head.Orientation.X ,plr.Character.Head.Orientation.Y ,plr.Character.Head.Orientation.Z + 90)
  285. end
  286. end
  287. end
  288.  
  289. for _, v in pairs(mov2) do
  290. v.AngularVelocity = angular;
  291. end
  292. orie()
Add Comment
Please, Sign In to add comment