Hex4rr

Roblox CLASSIC Sword Script

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