Advertisement
simhwui

Untitled

Dec 8th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 208.43 KB | None | 0 0
  1. --leaked by LeakingProScripts
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local deb = false
  15. local shot = 0
  16. local l = game:GetService("Lighting")
  17. local rs = game:GetService("RunService").RenderStepped
  18. local stanceToggle = "Normal"
  19. math.randomseed(os.time())
  20. hum.WalkSpeed = 7
  21. char.Health:Destroy()
  22. hum.MaxHealth = 50000
  23. wait(0.1)
  24. hum.Health = 50000
  25. ----------------------------------------------------
  26. char.Shirt:Destroy()
  27. char.Pants:Destroy()
  28. shirt = Instance.new("Shirt", char)
  29. shirt.Name = "Shirt"
  30. pants = Instance.new("Pants", char)
  31. pants.Name = "Pants"
  32. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=213574438"
  33. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=23873109"
  34. ----------------------------------------------------
  35. Debounces = {
  36. on = false;
  37. ks = false;
  38. CanAttack = true;
  39. CanJoke = true;
  40. NoIdl = false;
  41. Slashing = false;
  42. Slashed = false;
  43. Grabbing = false;
  44. Grabbed = false;
  45. }
  46. local Touche = {char.Name, }
  47. ----------------------------------------------------
  48. function lerp(a, b, t) -- Linear interpolation
  49. return a + (b - a)*t
  50. end
  51.  
  52. function slerp(a, b, t) --Spherical interpolation
  53. dot = a:Dot(b)
  54. if dot > 0.99999 or dot < -0.99999 then
  55. return t <= 0.5 and a or b
  56. else
  57. r = math.acos(dot)
  58. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  59. end
  60. end
  61.  
  62. function matrixInterpolate(a, b, t)
  63. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  64. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  65. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  66. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  67. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  68. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  69. local t = v1:Dot(v2)
  70. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  71. return CFrame.new()
  72. end
  73. return CFrame.new(
  74. v0.x, v0.y, v0.z,
  75. v1.x, v1.y, v1.z,
  76. v2.x, v2.y, v2.z,
  77. v3.x, v3.y, v3.z)
  78. end
  79. ----------------------------------------------------
  80. function genWeld(a,b)
  81. local w = Instance.new("Weld",a)
  82. w.Part0 = a
  83. w.Part1 = b
  84. return w
  85. end
  86. function weld(a, b)
  87. local weld = Instance.new("Weld")
  88. weld.Name = "W"
  89. weld.Part0 = a
  90. weld.Part1 = b
  91. weld.C0 = a.CFrame:inverse() * b.CFrame
  92. weld.Parent = a
  93. return weld;
  94. end
  95. ----------------------------------------------------
  96. function Lerp(c1,c2,al)
  97. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  98. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  99. for i,v in pairs(com1) do
  100. com1[i] = v+(com2[i]-v)*al
  101. end
  102. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  103. end
  104. ----------------------------------------------------
  105. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  106. local wld = Instance.new("Weld", wp1)
  107. wld.Part0 = wp0
  108. wld.Part1 = wp1
  109. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  110. end
  111. ----------------------------------------------------
  112. for i,v in pairs(char:children()) do
  113. if v:IsA("Hat") then
  114. v:Destroy()
  115. end
  116. end
  117. for i,v in pairs(hed:children()) do
  118. if v:IsA("Sound") then
  119. v:Destroy()
  120. end
  121. end
  122. ----------------------------------------------------
  123. function HasntTouched(plrname)
  124. local ret = true
  125. for _, v in pairs(Touche) do
  126. if v == plrname then
  127. ret = false
  128. end
  129. end
  130. return ret
  131. end
  132. ----------------------------------------------------
  133. larm.Size = larm.Size * 2
  134. rarm.Size = rarm.Size * 2
  135. lleg.Size = lleg.Size * 2
  136. rleg.Size = rleg.Size * 2
  137. torso.Size = torso.Size * 2
  138. hed.Size = hed.Size * 2
  139. root.Size = root.Size * 2
  140. ----------------------------------------------------
  141. newWeld(torso, larm, -1.5, 0.5, 0)
  142. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  143. newWeld(torso, rarm, 1.5, 0.5, 0)
  144. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  145. newWeld(torso, hed, 0, 1.5, 0)
  146. newWeld(torso, lleg, -0.5, -1, 0)
  147. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  148. newWeld(torso, rleg, 0.5, -1, 0)
  149. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  150. newWeld(root, torso, 0, -1, 0)
  151. torso.Weld.C1 = CFrame.new(0, -1, 0)
  152. ----------------------------------------------------
  153. game:service'InsertService':LoadAsset(63993845):children()[1].Parent=char
  154. char.LavendarPlasmaHood.Handle.Mesh.Scale = char.LavendarPlasmaHood.Handle.Mesh.Scale * 1.8
  155. char.LavendarPlasmaHood.Handle.Mesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  156. hed.face.Texture = "rbxassetid://101605291"
  157. z=Instance.new('Decal',hed)
  158. z.Face = 'Front'
  159. z.Texture='rbxassetid://'
  160. hed.BrickColor = BrickColor.new("White")
  161. lite = Instance.new("PointLight", torso)
  162. lite.Brightness = 14
  163. lite.Range = 10
  164. lite.Color = Color3.new(1, 0, 0)
  165. --[[local hed2 = hed:Clone()
  166. hed2.CanCollide = false
  167. hed2.Parent = char
  168. hed2:ClearAllChildren()
  169. hed2.Transparency = 1
  170. hed2.Name = "DARP"
  171. local w = Instance.new("Weld",hed2)
  172. w.Part0 = hed
  173. w.Part1 = hed2
  174. w.C0 = CFrame.new(0,0,-0.175)
  175. z=Instance.new("SurfaceGui",hed2)
  176. z.Enabled = true
  177. z.Face = "Front"
  178. z.Adornee = hed2
  179. z.CanvasSize = Vector2.new(100,100)
  180. local face = Instance.new("ImageLabel",z)
  181. face.Size = UDim2.new(1,-30,1,0)
  182. face.Position = UDim2.new(0,15,0,0)
  183. face.BackgroundTransparency = 1
  184. face.Image='rbxassetid://46282671']]--
  185. ----------------------------------------------------
  186. local m = Instance.new("Model")
  187. m.Name = "Absolution"
  188. p1 = Instance.new("Part", m)
  189. p1.BrickColor = BrickColor.new("Bright blue")
  190. p1.FormFactor = Enum.FormFactor.Custom
  191. p1.Size = Vector3.new(1, 0.600000024, 1.5)
  192. p1.CFrame = CFrame.new(67.4994888, 12.1560526, 73.0205841, 0.999972522, -3.59117985e-005, -8.00192356e-006, -1.39250187e-005, 0.358383715, -0.933530986, 5.28097153e-005, 0.933500648, 0.358406395)
  193. p1.CanCollide = false
  194. p1.Locked = true
  195. p1.Elasticity = 0
  196. p1.BottomSurface = Enum.SurfaceType.Smooth
  197. p1.TopSurface = Enum.SurfaceType.Smooth
  198. b1 = Instance.new("SpecialMesh", p1)
  199. b1.MeshType = Enum.MeshType.Wedge
  200. b1.Name = "Mesh"
  201. b1.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  202. p2 = Instance.new("Part", m)
  203. p2.BrickColor = BrickColor.new("White")
  204. p2.FormFactor = Enum.FormFactor.Custom
  205. p2.Size = Vector3.new(1, 2.9000001, 1)
  206. p2.CFrame = CFrame.new(67.4995728, 11.7633543, 74.2129135, -1.30959779e-005, 2.79811252e-006, 0.999972522, 0.961226642, 0.275612593, -7.50799518e-006, -0.275637805, 0.96119839, 1.01176247e-005)
  207. p2.CanCollide = false
  208. p2.Locked = true
  209. p2.Elasticity = 0
  210. p2.BottomSurface = Enum.SurfaceType.Smooth
  211. p2.TopSurface = Enum.SurfaceType.Smooth
  212. b2 = Instance.new("BlockMesh", p2)
  213. b2.Name = "Mesh"
  214. b2.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  215. p3 = Instance.new("Part", m)
  216. p3.BrickColor = BrickColor.new("Bright blue")
  217. p3.FormFactor = Enum.FormFactor.Custom
  218. p3.Size = Vector3.new(1, 1.20000005, 2.0999999)
  219. p3.CFrame = CFrame.new(67.4994965, 12.6401453, 73.9670334, 0.999972522, -3.52207899e-005, -8.10639358e-006, -1.61500211e-005, 0.309035271, -0.951007903, 5.24176576e-005, 0.950978875, 0.309059501)
  220. p3.CanCollide = false
  221. p3.Locked = true
  222. p3.Elasticity = 0
  223. p3.BottomSurface = Enum.SurfaceType.Smooth
  224. p3.TopSurface = Enum.SurfaceType.Smooth
  225. b3 = Instance.new("SpecialMesh", p3)
  226. b3.MeshType = Enum.MeshType.Wedge
  227. b3.Name = "Mesh"
  228. b3.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  229. p4 = Instance.new("Part", m)
  230. p4.BrickColor = BrickColor.new("Bright blue")
  231. p4.FormFactor = Enum.FormFactor.Custom
  232. p4.Size = Vector3.new(1, 1.43999994, 2.05000019)
  233. p4.CFrame = CFrame.new(67.4995575, 11.8683414, 76.1565704, 0.999972522, -2.5085672e-005, -1.53700166e-005, -4.86194367e-005, -0.800831437, -0.598821938, 1.9131101e-005, 0.598835468, -0.800796151)
  234. p4.CanCollide = false
  235. p4.Locked = true
  236. p4.Elasticity = 0
  237. p4.BottomSurface = Enum.SurfaceType.Smooth
  238. p4.TopSurface = Enum.SurfaceType.Smooth
  239. b4 = Instance.new("SpecialMesh", p4)
  240. b4.MeshType = Enum.MeshType.Wedge
  241. b4.Name = "Mesh"
  242. b4.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988)
  243. p5 = Instance.new("Part", m)
  244. p5.BrickColor = BrickColor.new("Bright blue")
  245. p5.FormFactor = Enum.FormFactor.Custom
  246. p5.Size = Vector3.new(1, 1.20000005, 3.20000005)
  247. p5.CFrame = CFrame.new(67.4995193, 13.241991, 74.8357468, 0.999972522, -3.59118021e-005, -8.00191992e-006, -1.39250224e-005, 0.358383656, -0.933530807, 5.2809708e-005, 0.933500469, 0.358406246)
  248. p5.CanCollide = false
  249. p5.Locked = true
  250. p5.Elasticity = 0
  251. p5.BottomSurface = Enum.SurfaceType.Smooth
  252. p5.TopSurface = Enum.SurfaceType.Smooth
  253. b5 = Instance.new("SpecialMesh", p5)
  254. b5.MeshType = Enum.MeshType.Wedge
  255. b5.Name = "Mesh"
  256. b5.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  257. p6 = Instance.new("Part", m)
  258. p6.Name = "Handle"
  259. p6.BrickColor = BrickColor.new("White")
  260. p6.FormFactor = Enum.FormFactor.Custom
  261. p6.Size = Vector3.new(1.5999999, 13.6000004, 1)
  262. p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005)
  263. p6.CanCollide = false
  264. p6.Locked = true
  265. p6.Elasticity = 0
  266. p6.BottomSurface = Enum.SurfaceType.Smooth
  267. p6.TopSurface = Enum.SurfaceType.Smooth
  268. b6 = Instance.new("BlockMesh", p6)
  269. b6.Name = "Mesh"
  270. b6.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  271. p7 = Instance.new("Part", m)
  272. p7.BrickColor = BrickColor.new("Bright blue")
  273. p7.FormFactor = Enum.FormFactor.Custom
  274. p7.Size = Vector3.new(1, 1.00999999, 1.05000019)
  275. p7.CFrame = CFrame.new(67.5174179, 10.5228004, 76.3114471, 0.999972522, -2.76626724e-005, -6.72184569e-006, -4.7347472e-005, -0.91489929, -0.403581172, 2.14323372e-005, 0.403602213, -0.914867818)
  276. p7.CanCollide = false
  277. p7.Locked = true
  278. p7.Elasticity = 0
  279. p7.BottomSurface = Enum.SurfaceType.Smooth
  280. p7.TopSurface = Enum.SurfaceType.Smooth
  281. b7 = Instance.new("SpecialMesh", p7)
  282. b7.MeshType = Enum.MeshType.Wedge
  283. b7.Name = "Mesh"
  284. b7.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988)
  285. p8 = Instance.new("Part", m)
  286. p8.BrickColor = BrickColor.new("Bright blue")
  287. p8.FormFactor = Enum.FormFactor.Custom
  288. p8.Size = Vector3.new(1, 1.00999999, 1.05000019)
  289. p8.CFrame = CFrame.new(67.5074387, 8.51285458, 76.8714371, 0.999972522, -2.76626724e-005, -6.72184387e-006, -4.73474684e-005, -0.91489917, -0.403581113, 2.14323354e-005, 0.403602153, -0.914867699)
  290. p8.CanCollide = false
  291. p8.Locked = true
  292. p8.Elasticity = 0
  293. p8.BottomSurface = Enum.SurfaceType.Smooth
  294. p8.TopSurface = Enum.SurfaceType.Smooth
  295. b8 = Instance.new("SpecialMesh", p8)
  296. b8.MeshType = Enum.MeshType.Wedge
  297. b8.Name = "Mesh"
  298. b8.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988)
  299. p9 = Instance.new("Part", m)
  300. p9.BrickColor = BrickColor.new("White")
  301. p9.FormFactor = Enum.FormFactor.Custom
  302. p9.Size = Vector3.new(1, 1.07999957, 1)
  303. p9.CFrame = CFrame.new(67.5095749, 7.1092, 74.5051422, -2.60536999e-005, -5.21559741e-006, 0.999972522, 0.35323599, -0.935490847, -1.50012565e-005, 0.935460567, 0.353258699, 4.2632455e-005)
  304. p9.CanCollide = false
  305. p9.Locked = true
  306. p9.Elasticity = 0
  307. p9.BottomSurface = Enum.SurfaceType.Smooth
  308. p9.TopSurface = Enum.SurfaceType.Smooth
  309. b9 = Instance.new("BlockMesh", p9)
  310. b9.Name = "Mesh"
  311. b9.Scale = Vector3.new(0.550000012, 1, 0.550000012)
  312. p10 = Instance.new("Part", m)
  313. p10.BrickColor = BrickColor.new("White")
  314. p10.FormFactor = Enum.FormFactor.Custom
  315. p10.Size = Vector3.new(1, 1.41999948, 1)
  316. p10.CFrame = CFrame.new(67.489624, 8.67401791, 72.7929764, -9.47785156e-006, -9.42233055e-006, 0.999972522, 0.292371064, 0.956263304, -7.54374832e-006, -0.956253231, 0.292334616, 1.01081387e-005)
  317. p10.CanCollide = false
  318. p10.Locked = true
  319. p10.Elasticity = 0
  320. p10.BottomSurface = Enum.SurfaceType.Smooth
  321. p10.TopSurface = Enum.SurfaceType.Smooth
  322. b10 = Instance.new("BlockMesh", p10)
  323. b10.Name = "Mesh"
  324. b10.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  325. p11 = Instance.new("Part", m)
  326. p11.BrickColor = BrickColor.new("White")
  327. p11.FormFactor = Enum.FormFactor.Custom
  328. p11.Size = Vector3.new(1, 1.50999951, 1)
  329. p11.CFrame = CFrame.new(67.509552, 7.11887455, 70.3475952, -1.87569385e-005, 1.80455972e-005, 0.999972522, -0.36222899, -0.932047009, -9.30004444e-006, 0.932039678, -0.362191886, 4.04359016e-005)
  330. p11.CanCollide = false
  331. p11.Locked = true
  332. p11.Elasticity = 0
  333. p11.BottomSurface = Enum.SurfaceType.Smooth
  334. p11.TopSurface = Enum.SurfaceType.Smooth
  335. b11 = Instance.new("BlockMesh", p11)
  336. b11.Name = "Mesh"
  337. b11.Scale = Vector3.new(0.550000012, 1, 0.550000012)
  338. p12 = Instance.new("Part", m)
  339. p12.Name = "BladeCenter"
  340. p12.BrickColor = BrickColor.new("Bright Red")
  341. p12.Material = Enum.Material.Concrete
  342. p12.FormFactor = Enum.FormFactor.Symmetric
  343. p12.Size = Vector3.new(1, 2, 2)
  344. p12.CFrame = CFrame.new(67.4995346, 6.83217764, 72.2514038, -0.999972522, 2.42275873e-005, 0.000103325896, -8.39982677e-005, 4.44650614e-005, -0.999960959, -4.06451727e-005, -0.999940753, -1.25430051e-005)
  345. p12.CanCollide = false
  346. p12.Locked = true
  347. p12.BottomSurface = Enum.SurfaceType.Smooth
  348. p12.TopSurface = Enum.SurfaceType.Smooth
  349. b12 = Instance.new("SpecialMesh", p12)
  350. b12.MeshType = Enum.MeshType.Brick
  351. b12.Name = "Mesh"
  352. b12.Scale = Vector3.new(0.499999911, 1, 0.699999928)
  353. p13 = Instance.new("Part", m)
  354. p13.BrickColor = BrickColor.new("White")
  355. p13.FormFactor = Enum.FormFactor.Custom
  356. p13.Size = Vector3.new(2.91000009, 4.3300004, 1)
  357. p13.CFrame = CFrame.new(67.5096359, 9.31026554, 73.9751816, 7.60371313e-006, 1.0943455e-005, 0.999972522, -0.119072244, -0.99284631, -7.55448127e-006, 0.992830038, -0.119038157, 1.01703836e-005)
  358. p13.CanCollide = false
  359. p13.Locked = true
  360. p13.Elasticity = 0
  361. p13.BottomSurface = Enum.SurfaceType.Smooth
  362. p13.TopSurface = Enum.SurfaceType.Smooth
  363. b13 = Instance.new("BlockMesh", p13)
  364. b13.Name = "Mesh"
  365. b13.Scale = Vector3.new(1, 1, 0.400000006)
  366. p14 = Instance.new("Part", m)
  367. p14.BrickColor = BrickColor.new("White")
  368. p14.FormFactor = Enum.FormFactor.Custom
  369. p14.Size = Vector3.new(2.5, 2.17999935, 1)
  370. p14.CFrame = CFrame.new(67.4896011, 10.1621294, 72.6420059, -1.55498967e-007, -1.33476442e-005, 0.999972522, -0.462319613, 0.886669755, -7.56198779e-006, -0.886637092, -0.462338567, 1.01078904e-005)
  371. p14.CanCollide = false
  372. p14.Locked = true
  373. p14.Elasticity = 0
  374. p14.BottomSurface = Enum.SurfaceType.Smooth
  375. p14.TopSurface = Enum.SurfaceType.Smooth
  376. b14 = Instance.new("BlockMesh", p14)
  377. b14.Name = "Mesh"
  378. b14.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  379. p15 = Instance.new("Part", m)
  380. p15.BrickColor = BrickColor.new("White")
  381. p15.FormFactor = Enum.FormFactor.Custom
  382. p15.Size = Vector3.new(1.16999996, 4.2699995, 1)
  383. p15.CFrame = CFrame.new(67.5095901, 9.35303593, 70.6884613, -1.24399676e-005, -4.94209144e-006, 0.999972522, 0.645082474, 0.764063478, -7.52419282e-006, -0.764068604, 0.645045042, 1.0099785e-005)
  384. p15.CanCollide = false
  385. p15.Locked = true
  386. p15.Elasticity = 0
  387. p15.BottomSurface = Enum.SurfaceType.Smooth
  388. p15.TopSurface = Enum.SurfaceType.Smooth
  389. b15 = Instance.new("BlockMesh", p15)
  390. b15.Name = "Mesh"
  391. b15.Scale = Vector3.new(1, 1, 0.400000006)
  392. p16 = Instance.new("Part", m)
  393. p16.BrickColor = BrickColor.new("White")
  394. p16.FormFactor = Enum.FormFactor.Custom
  395. p16.Size = Vector3.new(1.68999994, 4.76000023, 1)
  396. p16.CFrame = CFrame.new(67.4996033, 9.63990211, 75.3800278, 2.98175655e-006, 1.30014914e-005, 0.999972522, 0.258795738, -0.965893507, -7.53869244e-006, 0.965865672, 0.258821338, 1.01718706e-005)
  397. p16.CanCollide = false
  398. p16.Locked = true
  399. p16.Elasticity = 0
  400. p16.BottomSurface = Enum.SurfaceType.Smooth
  401. p16.TopSurface = Enum.SurfaceType.Smooth
  402. b16 = Instance.new("BlockMesh", p16)
  403. b16.Name = "Mesh"
  404. b16.Scale = Vector3.new(1, 1, 0.400000006)
  405. p17 = Instance.new("Part", m)
  406. p17.BrickColor = BrickColor.new("White")
  407. p17.FormFactor = Enum.FormFactor.Custom
  408. p17.Size = Vector3.new(1.78999996, 4.21999979, 1)
  409. p17.CFrame = CFrame.new(67.499588, 9.28996372, 69.8789978, -9.50601952e-006, -9.41252802e-006, 0.999972522, 0.293352425, 0.955965877, -7.53842551e-006, -0.955955863, 0.293315947, 1.00904235e-005)
  410. p17.CanCollide = false
  411. p17.Locked = true
  412. p17.Elasticity = 0
  413. p17.BottomSurface = Enum.SurfaceType.Smooth
  414. p17.TopSurface = Enum.SurfaceType.Smooth
  415. b17 = Instance.new("BlockMesh", p17)
  416. b17.Name = "Mesh"
  417. b17.Scale = Vector3.new(1, 1, 0.400000006)
  418. p18 = Instance.new("WedgePart", m)
  419. p18.BrickColor = BrickColor.new("Dark stone grey")
  420. p18.Name = "BladePart1"
  421. p18.Material = Enum.Material.Concrete
  422. p18.Name = "Wedge"
  423. p18.FormFactor = Enum.FormFactor.Symmetric
  424. p18.Size = Vector3.new(1, 4, 2)
  425. p18.CFrame = CFrame.new(67.499321, 6.83199787, 69.4816895, 0.999972522, -3.68033288e-005, -4.22928351e-005, 2.29664256e-005, -1.65102574e-005, 0.999963701, -2.03872096e-005, -0.999943435, -4.84290831e-005)
  426. p18.CanCollide = false
  427. p18.Locked = true
  428. p18.BottomSurface = Enum.SurfaceType.Smooth
  429. p18.TopSurface = Enum.SurfaceType.Smooth
  430. b18 = Instance.new("SpecialMesh", p18)
  431. b18.MeshType = Enum.MeshType.Wedge
  432. b18.Name = "Mesh"
  433. b18.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928)
  434. p19 = Instance.new("WedgePart", m)
  435. p19.BrickColor = BrickColor.new("Bright Red")
  436. p19.Name = "BladePart2"
  437. p19.Material = Enum.Material.Concrete
  438. p19.Name = "Wedge"
  439. p19.FormFactor = Enum.FormFactor.Symmetric
  440. p19.Size = Vector3.new(1, 4, 2)
  441. p19.CFrame = CFrame.new(67.4994736, 6.83213568, 75.0314102, -0.999972522, 3.68059118e-005, -0.000103325001, -8.40002976e-005, -4.4521752e-005, 0.999963701, 2.03864402e-005, 0.999943435, 1.26029336e-005)
  442. p19.CanCollide = false
  443. p19.Locked = true
  444. p19.BottomSurface = Enum.SurfaceType.Smooth
  445. p19.TopSurface = Enum.SurfaceType.Smooth
  446. b19 = Instance.new("SpecialMesh", p19)
  447. b19.MeshType = Enum.MeshType.Wedge
  448. b19.Name = "Mesh"
  449. b19.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928)
  450. p20 = Instance.new("Part", m)
  451. p20.BrickColor = BrickColor.new("White")
  452. p20.FormFactor = Enum.FormFactor.Custom
  453. p20.Size = Vector3.new(2.53000021, 2.39999938, 1)
  454. p20.CFrame = CFrame.new(67.4996414, 7.91898966, 71.4148178, -1.09432585e-005, 7.6432425e-006, 0.999972522, 0.992849231, -0.119072601, -7.55000656e-006, 0.119038492, 0.992832959, 1.01311334e-005)
  455. p20.CanCollide = false
  456. p20.Locked = true
  457. p20.Elasticity = 0
  458. p20.BottomSurface = Enum.SurfaceType.Smooth
  459. p20.TopSurface = Enum.SurfaceType.Smooth
  460. b20 = Instance.new("BlockMesh", p20)
  461. b20.Name = "Mesh"
  462. b20.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  463. p21 = Instance.new("Part", m)
  464. p21.BrickColor = BrickColor.new("Bright blue")
  465. p21.FormFactor = Enum.FormFactor.Custom
  466. p21.Size = Vector3.new(1, 1.43999994, 1.59000015)
  467. p21.CFrame = CFrame.new(67.509613, 9.57073689, 76.6228256, 0.999972522, -2.50856156e-005, -1.53699839e-005, -4.86196222e-005, -0.800835371, -0.598824739, 1.91311228e-005, 0.59883821, -0.800800025)
  468. p21.CanCollide = false
  469. p21.Locked = true
  470. p21.Elasticity = 0
  471. p21.BottomSurface = Enum.SurfaceType.Smooth
  472. p21.TopSurface = Enum.SurfaceType.Smooth
  473. b21 = Instance.new("SpecialMesh", p21)
  474. b21.MeshType = Enum.MeshType.Wedge
  475. b21.Name = "Mesh"
  476. b21.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988)
  477. w1 = Instance.new("Weld", p1)
  478. w1.Name = "Part_Weld"
  479. w1.Part0 = p1
  480. w1.C0 = CFrame.new(-67.5030899, -72.5280457, -14.8209743, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252)
  481. w1.Part1 = p2
  482. w1.C1 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008)
  483. w2 = Instance.new("Weld", p2)
  484. w2.Name = "Part_Weld"
  485. w2.Part0 = p2
  486. w2.C0 = CFrame.new(9.14727688, -74.5847855, -67.5001221, -4.37113883e-008, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-008, -1.2048484e-008)
  487. w2.Part1 = p3
  488. w2.C1 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105)
  489. w3 = Instance.new("Weld", p3)
  490. w3.Name = "Part_Weld"
  491. w3.Part0 = p3
  492. w3.C0 = CFrame.new(-67.5030823, -74.2541809, -10.8368053, 1, -8.59976626e-006, 4.22903977e-005, -3.75621021e-005, 0.30906105, 0.951042175, -2.12490559e-005, -0.951042175, 0.30906105)
  493. w3.Part1 = p4
  494. w3.C1 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637)
  495. w4 = Instance.new("Weld", p4)
  496. w4.Name = "Part_Weld"
  497. w4.Part0 = p4
  498. w4.C0 = CFrame.new(-67.5002975, -36.1002579, 68.1035233, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637)
  499. w4.Part1 = p5
  500. w4.C1 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252)
  501. w5 = Instance.new("Weld", p5)
  502. w5.Name = "Part_Weld"
  503. w5.Part0 = p5
  504. w5.C0 = CFrame.new(-67.5031891, -74.611969, -14.457736, 1, -6.37466928e-006, 4.26825172e-005, -3.75621021e-005, 0.358411252, 0.933563769, -2.12490559e-005, -0.933563769, 0.358411252)
  505. w5.Part1 = p6
  506. w5.C1 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015)
  507. w6 = Instance.new("Weld", p6)
  508. w6.Name = "Part_Weld"
  509. w6.Part0 = p6
  510. w6.C0 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015)
  511. w6.Part1 = p7
  512. w6.C1 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088)
  513. w7 = Instance.new("Weld", p7)
  514. w7.Name = "Part_Weld"
  515. w7.Part0 = p7
  516. w7.C0 = CFrame.new(-67.5183792, -21.1694489, 74.0717163, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088)
  517. w7.Part1 = p8
  518. w7.C1 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088)
  519. w8 = Instance.new("Weld", p8)
  520. w8.Name = "Part_Weld"
  521. w8.Part0 = p8
  522. w8.C0 = CFrame.new(-67.508461, -23.234499, 73.7728119, 1, -3.97989206e-005, 1.13026372e-005, -4.09751265e-005, -0.91493088, 0.403610349, -5.72212457e-006, -0.403610349, -0.91493088)
  523. w8.Part1 = p9
  524. w8.C1 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005)
  525. w9 = Instance.new("Weld", p9)
  526. w9.Name = "Part_Weld"
  527. w9.Part0 = p9
  528. w9.C0 = CFrame.new(-72.2151413, -19.6674671, -67.5124359, -2.77766703e-005, 0.353263557, 0.935524285, -1.84533783e-005, -0.935524285, 0.353263557, 1, -7.4510931e-006, 3.25046385e-005)
  529. w9.Part1 = p10
  530. w9.C1 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008)
  531. w10 = Instance.new("Weld", p10)
  532. w10.Name = "Part_Weld"
  533. w10.Part0 = p10
  534. w10.C0 = CFrame.new(67.0792923, -29.5803547, -67.4901428, -2.24114753e-008, 0.292369425, -0.956305802, 3.04095332e-010, 0.956305802, 0.292369425, 1, 6.26159258e-009, -2.15211493e-008)
  535. w10.Part1 = p11
  536. w10.C1 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005)
  537. w11 = Instance.new("Weld", p11)
  538. w11.Name = "Part_Weld"
  539. w11.Part0 = p11
  540. w11.C0 = CFrame.new(-62.9921722, 32.1197624, -67.5121918, -2.88835581e-005, -0.362230271, 0.932088912, 9.3476192e-006, -0.932088912, -0.362230271, 1, -1.74967965e-006, 3.03080251e-005)
  541. w11.Part1 = p12
  542. w11.C1 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005)
  543. w12 = Instance.new("Weld", p12)
  544. w12.Name = "Part_Weld"
  545. w12.Part0 = p12
  546. w12.C0 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005)
  547. w12.Part1 = p13
  548. w12.C1 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008)
  549. w13 = Instance.new("Weld", p13)
  550. w13.Name = "Part_Weld"
  551. w13.Part0 = p13
  552. w13.C0 = CFrame.new(-72.3439255, 18.054121, -67.5101624, -4.09776035e-008, -0.11906305, 0.992886722, 4.05430745e-010, -0.992886722, -0.11906305, 1, -4.47637571e-009, 4.0734399e-008)
  553. w13.Part1 = p14
  554. w13.C1 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008)
  555. w14 = Instance.new("Weld", p14)
  556. w14.Name = "Part_Weld"
  557. w14.Part0 = p14
  558. w14.C0 = CFrame.new(69.1140671, 24.5752277, -67.4901428, -2.4837334e-008, -0.462350011, -0.886697888, 5.64353009e-010, 0.886697888, -0.462350011, 1, -1.19839818e-008, -2.17623022e-008)
  559. w14.Part1 = p15
  560. w14.C1 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008)
  561. w15 = Instance.new("Weld", p15)
  562. w15.Name = "Part_Weld"
  563. w15.Part0 = p15
  564. w15.C0 = CFrame.new(47.9809418, -52.7511749, -67.5101318, -3.94735267e-008, 0.64509654, -0.764101744, -4.55740418e-010, 0.764101744, 0.64509654, 1, 2.58124242e-008, -2.98677882e-008)
  565. w15.Part1 = p16
  566. w15.C1 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008)
  567. w16 = Instance.new("Weld", p16)
  568. w16.Name = "Part_Weld"
  569. w16.Part0 = p16
  570. w16.C0 = CFrame.new(-75.3105469, -10.1974039, -67.5001221, -4.37113883e-008, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-008, 4.22219593e-008)
  571. w16.Part1 = p17
  572. w16.C1 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008)
  573. w17 = Instance.new("Weld", p17)
  574. w17.Name = "Wedge_Weld"
  575. w17.Part0 = p17
  576. w17.C0 = CFrame.new(64.0820847, -29.3829937, -67.5001373, -4.09009289e-008, 0.293349952, -0.956005633, 4.38312497e-010, 0.956005633, 0.293349952, 1, 1.15792238e-008, -3.92300876e-008)
  577. w17.Part1 = p18
  578. w17.C1 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005)
  579. w18 = Instance.new("Weld", p18)
  580. w18.Name = "Wedge_Weld"
  581. w18.Part0 = p18
  582. w18.C0 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005)
  583. w18.Part1 = p19
  584. w18.C1 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005)
  585. w19 = Instance.new("Weld", p19)
  586. w19.Name = "Part_Weld"
  587. w19.Part0 = p19
  588. w19.C0 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005)
  589. w19.Part1 = p20
  590. w19.C1 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009)
  591. w20 = Instance.new("Weld", p20)
  592. w20.Name = "Part_Weld"
  593. w20.Part0 = p20
  594. w20.C0 = CFrame.new(-16.3677292, -69.9670334, -67.5001678, -1.77821063e-010, 0.992886961, 0.119063012, -1.46926671e-009, -0.119063012, 0.992886961, 1, 1.59595731e-012, 1.47997492e-009)
  595. w20.Part1 = p21
  596. w20.C1 = CFrame.new(-67.5104218, -38.2193756, 67.100563, 1, -4.10709617e-005, 9.00123541e-006, -3.82823673e-005, -0.800855637, 0.598857403, -1.73869594e-005, -0.598857403, -0.800855637)
  597. m.Parent = char
  598. m:MakeJoints()
  599. ----------------------------------------------------
  600. local cor = Instance.new("Part", char.Absolution)
  601. cor.Name = "Thingy"
  602. cor.Locked = true
  603. cor.BottomSurface = 0
  604. cor.CanCollide = false
  605. cor.Size = Vector3.new(1, 13, 1)
  606. cor.Transparency = 1
  607. cor.TopSurface = 0
  608. corw = Instance.new("Weld", cor)
  609. corw.Part0 = rarm
  610. corw.Part1 = cor
  611. corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  612. corw.C1 = CFrame.new(0, 0, 0)
  613. weld1 = Instance.new("Weld", char.Absolution)
  614. weld1.Part0 = cor
  615. weld1.Part1 = p6
  616. weld1.C0 = CFrame.new(0, 0, 0)
  617. ----------------------------------------------------
  618. hitb = Instance.new("Part", char.Absolution)
  619. hitb.Name = "Thingy2"
  620. hitb.Locked = true
  621. hitb.BottomSurface = 0
  622. hitb.CanCollide = false
  623. hitb.Size = Vector3.new(0, 8, 6)
  624. hitb.Transparency = 1
  625. hitb.TopSurface = 0
  626. weld2 = Instance.new("Weld", char.Absolution)
  627. weld2.Part0 = hitb
  628. weld2.Part1 = p12
  629. weld2.C0 = CFrame.new(0, .6, 1)
  630. ----------------------------------------------------
  631. local m = Instance.new("Model")
  632. m.Name = "Claw"
  633. p1 = Instance.new("Part", m)
  634. p1.BrickColor = BrickColor.new("White")
  635. p1.FormFactor = Enum.FormFactor.Custom
  636. p1.Size = Vector3.new(1.5, 0.5, 0.5)
  637. p1.CFrame = CFrame.new(2.91120553, 6.79703379, -19.5339718, -0.205515206, -0.209888965, 0.955883741, 0.52527827, -0.847774804, -0.0732159689, 0.825741529, 0.487057745, 0.284480691)
  638. p1.CanCollide = false
  639. p1.Locked = true
  640. p1.BottomSurface = Enum.SurfaceType.Smooth
  641. p1.TopSurface = Enum.SurfaceType.Smooth
  642. b1 = Instance.new("BlockMesh", p1)
  643. b1.Name = "Mesh"
  644. p2 = Instance.new("WedgePart", m)
  645. p2.BrickColor = BrickColor.new("White")
  646. p2.Name = "Wedge"
  647. p2.FormFactor = Enum.FormFactor.Custom
  648. p2.Size = Vector3.new(3, 1, 0.5)
  649. p2.CFrame = CFrame.new(2.94872427, 6.13246727, -16.5004997, -5.96046448e-008, -4.47034836e-008, -1.00000358, -1.3615936e-005, 0.99999994, 4.47034836e-008, 1.00000358, 1.41002238e-005, 0)
  650. p2.CanCollide = false
  651. p2.Locked = true
  652. p2.BottomSurface = Enum.SurfaceType.Smooth
  653. p2.TopSurface = Enum.SurfaceType.Smooth
  654. p3 = Instance.new("Part", m)
  655. p3.BrickColor = BrickColor.new("White")
  656. p3.FormFactor = Enum.FormFactor.Custom
  657. p3.Size = Vector3.new(1.5, 0.5, 0.5)
  658. p3.CFrame = CFrame.new(1.84869456, 6.79700661, -18.5422173, -5.06400113e-008, 1.07230136e-007, 1.00000715, -0.499905825, -0.866079628, -1.1125789e-007, 0.86608547, -0.499910295, -2.17476881e-008)
  659. p3.CanCollide = false
  660. p3.Locked = true
  661. p3.BottomSurface = Enum.SurfaceType.Smooth
  662. p3.TopSurface = Enum.SurfaceType.Smooth
  663. b2 = Instance.new("BlockMesh", p3)
  664. b2.Name = "Mesh"
  665. p4 = Instance.new("WedgePart", m)
  666. p4.BrickColor = BrickColor.new("White")
  667. p4.Name = "Wedge"
  668. p4.FormFactor = Enum.FormFactor.Custom
  669. p4.Size = Vector3.new(3, 1, 0.5)
  670. p4.CFrame = CFrame.new(0.0487272739, 4.13279819, -16.5004959, -1.62921424e-007, 1.78814929e-007, 1.00001431, -1.2755394e-005, -0.999999762, -1.78813849e-007, 1.00001431, -1.46627426e-005, -7.54998553e-008)
  671. p4.CanCollide = false
  672. p4.Locked = true
  673. p4.BottomSurface = Enum.SurfaceType.Smooth
  674. p4.TopSurface = Enum.SurfaceType.Smooth
  675. p5 = Instance.new("Part", m)
  676. p5.BrickColor = BrickColor.new("White")
  677. p5.FormFactor = Enum.FormFactor.Custom
  678. p5.Size = Vector3.new(1.5, 0.5, 0.5)
  679. p5.CFrame = CFrame.new(1.84874606, 6.79701567, -19.6422844, -4.29027068e-007, 1.9046513e-007, 1.00001431, 0.500089467, -0.865973532, 2.18601315e-008, 0.865987122, 0.50009501, 3.78533827e-008)
  680. p5.CanCollide = false
  681. p5.Locked = true
  682. p5.BottomSurface = Enum.SurfaceType.Smooth
  683. p5.TopSurface = Enum.SurfaceType.Smooth
  684. b3 = Instance.new("BlockMesh", p5)
  685. b3.Name = "Mesh"
  686. p6 = Instance.new("Part", m)
  687. p6.BrickColor = BrickColor.new("White")
  688. p6.FormFactor = Enum.FormFactor.Custom
  689. p6.Size = Vector3.new(1.5, 0.5, 0.5)
  690. p6.CFrame = CFrame.new(2.61122823, 6.79701757, -18.433939, -0.250001401, 0.0669622123, 0.965941966, -0.491382152, -0.868364573, -0.0669801831, 0.834303975, -0.491393685, 0.249996051)
  691. p6.CanCollide = false
  692. p6.Locked = true
  693. p6.BottomSurface = Enum.SurfaceType.Smooth
  694. p6.TopSurface = Enum.SurfaceType.Smooth
  695. b4 = Instance.new("BlockMesh", p6)
  696. b4.Name = "Mesh"
  697. p7 = Instance.new("Part", m)
  698. p7.BrickColor = BrickColor.new("White")
  699. p7.FormFactor = Enum.FormFactor.Custom
  700. p7.Size = Vector3.new(3, 1, 1.20000005)
  701. p7.CFrame = CFrame.new(2.59874034, 5.13276958, -16.5005379, -3.27825546e-007, -3.57627869e-007, -1.00001431, -0.000133868307, 0.99999994, 1.49011612e-008, 1.00001442, 0.000135900453, -5.96046448e-008)
  702. p7.CanCollide = false
  703. p7.Locked = true
  704. p7.BottomSurface = Enum.SurfaceType.Smooth
  705. p7.TopSurface = Enum.SurfaceType.Smooth
  706. b5 = Instance.new("BlockMesh", p7)
  707. b5.Name = "Mesh"
  708. p8 = Instance.new("Part", m)
  709. p8.BrickColor = BrickColor.new("Bright blue")
  710. p8.FormFactor = Enum.FormFactor.Symmetric
  711. p8.Size = Vector3.new(1, 1, 1)
  712. p8.CFrame = CFrame.new(1.84841466, 6.25537968, -20.3997307, -1.42129729e-005, 0.00428489037, -1.00000513, 0.965967655, 0.258660465, 0.00109496934, 0.258668512, -0.965972245, -0.00414247159)
  713. p8.CanCollide = false
  714. p8.Locked = true
  715. b6 = Instance.new("SpecialMesh", p8)
  716. b6.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  717. b6.TextureId = ""
  718. b6.MeshType = Enum.MeshType.FileMesh
  719. b6.Name = "Mesh"
  720. b6.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988)
  721. p9 = Instance.new("Part", m)
  722. p9.BrickColor = BrickColor.new("White")
  723. p9.FormFactor = Enum.FormFactor.Custom
  724. p9.Size = Vector3.new(1.5, 0.5, 0.5)
  725. p9.CFrame = CFrame.new(2.79691935, 3.68131566, -18.264101, -0.277095288, -0.561500967, -0.779720128, 0.631033003, 0.505603611, -0.58835566, 0.724593103, -0.655058563, 0.214224264)
  726. p9.CanCollide = false
  727. p9.Locked = true
  728. p9.BottomSurface = Enum.SurfaceType.Smooth
  729. p9.TopSurface = Enum.SurfaceType.Smooth
  730. b7 = Instance.new("BlockMesh", p9)
  731. b7.Name = "Mesh"
  732. p10 = Instance.new("Part", m)
  733. p10.BrickColor = BrickColor.new("Bright blue")
  734. p10.FormFactor = Enum.FormFactor.Symmetric
  735. p10.Size = Vector3.new(1, 1, 1)
  736. p10.CFrame = CFrame.new(3.09846497, 6.25236273, -20.2996788, -0.0669716895, 0.254178405, -0.964850724, 0.96595335, 0.258713901, 0.00110733509, 0.249903828, -0.93192625, -0.262850702)
  737. p10.CanCollide = false
  738. p10.Locked = true
  739. b8 = Instance.new("SpecialMesh", p10)
  740. b8.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  741. b8.TextureId = ""
  742. b8.MeshType = Enum.MeshType.FileMesh
  743. b8.Name = "Mesh"
  744. b8.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988)
  745. p11 = Instance.new("Part", m)
  746. p11.BrickColor = BrickColor.new("White")
  747. p11.FormFactor = Enum.FormFactor.Custom
  748. p11.Size = Vector3.new(1.5, 0.5, 0.5)
  749. p11.CFrame = CFrame.new(0.386122227, 6.79699421, -18.533905, 0.250022948, -0.0669473261, 0.965937555, -0.491377324, -0.868365645, 0.0670026764, 0.834300399, -0.491393894, -0.250007868)
  750. p11.CanCollide = false
  751. p11.Locked = true
  752. p11.BottomSurface = Enum.SurfaceType.Smooth
  753. p11.TopSurface = Enum.SurfaceType.Smooth
  754. b9 = Instance.new("BlockMesh", p11)
  755. b9.Name = "Mesh"
  756. p12 = Instance.new("Part", m)
  757. p12.BrickColor = BrickColor.new("White")
  758. p12.FormFactor = Enum.FormFactor.Custom
  759. p12.Size = Vector3.new(1.5, 0.5, 0.5)
  760. p12.CFrame = CFrame.new(1.14871967, 6.79700947, -19.6422291, -4.76837158e-007, 2.83122063e-007, 1.00001442, 0.500089884, -0.865973473, 4.47034836e-008, 0.865987122, 0.500095367, 1.49011612e-008)
  761. p12.CanCollide = false
  762. p12.Locked = true
  763. p12.BottomSurface = Enum.SurfaceType.Smooth
  764. p12.TopSurface = Enum.SurfaceType.Smooth
  765. b10 = Instance.new("BlockMesh", p12)
  766. b10.Name = "Mesh"
  767. p13 = Instance.new("Part", m)
  768. p13.BrickColor = BrickColor.new("White")
  769. p13.FormFactor = Enum.FormFactor.Custom
  770. p13.Size = Vector3.new(1.5, 0.5, 0.5)
  771. p13.CFrame = CFrame.new(1.14870512, 6.79699612, -18.5421638, -4.63888163e-008, 5.08347114e-007, 1.00001442, -0.499899268, -0.866083562, -2.18518963e-008, 0.866095126, -0.499908328, 3.78581007e-008)
  772. p13.CanCollide = false
  773. p13.Locked = true
  774. p13.BottomSurface = Enum.SurfaceType.Smooth
  775. p13.TopSurface = Enum.SurfaceType.Smooth
  776. b11 = Instance.new("BlockMesh", p13)
  777. b11.Name = "Mesh"
  778. p14 = Instance.new("Part", m)
  779. p14.BrickColor = BrickColor.new("Bright blue")
  780. p14.FormFactor = Enum.FormFactor.Symmetric
  781. p14.Size = Vector3.new(1, 1, 1)
  782. p14.CFrame = CFrame.new(1.14845455, 6.25537348, -20.3996773, -1.42545232e-005, 0.00425684778, -1.00000536, 0.965958476, 0.258694947, 0.00108788908, 0.258703023, -0.965963125, -0.00411536777)
  783. p14.CanCollide = false
  784. p14.Locked = true
  785. b12 = Instance.new("SpecialMesh", p14)
  786. b12.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  787. b12.TextureId = ""
  788. b12.MeshType = Enum.MeshType.FileMesh
  789. b12.Name = "Mesh"
  790. b12.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988)
  791. p15 = Instance.new("Part", m)
  792. p15.BrickColor = BrickColor.new("Medium stone grey")
  793. p15.Transparency = 1
  794. p15.Name = "ArmPart"
  795. p15.FormFactor = Enum.FormFactor.Custom
  796. p15.Size = Vector3.new(2, 1, 1)
  797. p15.CFrame = CFrame.new(1.49875152, 5.13257265, -16.0004654, -2.99420208e-007, 4.39002179e-007, 1.00001442, 0.00011029192, -1, 0, 1.00001454, 0.000108176115, 4.42378223e-008)
  798. p15.CanCollide = false
  799. p15.Locked = true
  800. p15.BottomSurface = Enum.SurfaceType.Smooth
  801. p15.TopSurface = Enum.SurfaceType.Smooth
  802. b13 = Instance.new("BlockMesh", p15)
  803. b13.Name = "Mesh"
  804. p16 = Instance.new("Part", m)
  805. p16.BrickColor = BrickColor.new("White")
  806. p16.FormFactor = Enum.FormFactor.Custom
  807. p16.Size = Vector3.new(3, 1, 2.4000001)
  808. p16.CFrame = CFrame.new(1.49872661, 6.13250732, -16.5007095, -2.98894406e-007, 4.39006953e-007, 1.00001442, 0.000110270419, -1, 4.71678729e-012, 1.00001454, 0.000108154614, 4.37120207e-008)
  809. p16.CanCollide = false
  810. p16.Locked = true
  811. p16.BottomSurface = Enum.SurfaceType.Smooth
  812. p16.TopSurface = Enum.SurfaceType.Smooth
  813. b14 = Instance.new("BlockMesh", p16)
  814. b14.Name = "Mesh"
  815. p17 = Instance.new("Part", m)
  816. p17.BrickColor = BrickColor.new("White")
  817. p17.FormFactor = Enum.FormFactor.Custom
  818. p17.Size = Vector3.new(1.5, 0.5, 0.5)
  819. p17.CFrame = CFrame.new(2.77308726, 3.37837577, -19.2558823, 0.396035522, -0.497440547, -0.771840453, -0.207958207, 0.770127177, -0.603040278, 0.894391596, 0.399337679, 0.201549783)
  820. p17.CanCollide = false
  821. p17.Locked = true
  822. p17.BottomSurface = Enum.SurfaceType.Smooth
  823. p17.TopSurface = Enum.SurfaceType.Smooth
  824. b15 = Instance.new("BlockMesh", p17)
  825. b15.Name = "Mesh"
  826. p18 = Instance.new("Part", m)
  827. p18.BrickColor = BrickColor.new("Bright blue")
  828. p18.FormFactor = Enum.FormFactor.Symmetric
  829. p18.Size = Vector3.new(1, 1, 1)
  830. p18.CFrame = CFrame.new(-0.0516102314, 6.25535488, -20.1996384, 0.066943109, -0.245838761, -0.967011333, 0.965954781, 0.258709013, 0.00110003352, 0.249906152, -0.934162259, 0.254788101)
  831. p18.CanCollide = false
  832. p18.Locked = true
  833. b16 = Instance.new("SpecialMesh", p18)
  834. b16.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  835. b16.TextureId = ""
  836. b16.MeshType = Enum.MeshType.FileMesh
  837. b16.Name = "Mesh"
  838. b16.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988)
  839. p19 = Instance.new("Part", m)
  840. p19.BrickColor = BrickColor.new("Bright blue")
  841. p19.FormFactor = Enum.FormFactor.Symmetric
  842. p19.Size = Vector3.new(1, 1, 1)
  843. p19.CFrame = CFrame.new(2.43177533, 3.59484506, -20.0301056, 0.559401393, 0.116905749, 0.820629179, -0.685213447, -0.491872638, 0.537163019, 0.466440916, -0.862796843, -0.195047855)
  844. p19.CanCollide = false
  845. p19.Locked = true
  846. b17 = Instance.new("SpecialMesh", p19)
  847. b17.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  848. b17.TextureId = ""
  849. b17.MeshType = Enum.MeshType.FileMesh
  850. b17.Name = "Mesh"
  851. b17.Scale = Vector3.new(1.20000005, 0.449999988, 0.449999988)
  852. p20 = Instance.new("Part", m)
  853. p20.BrickColor = BrickColor.new("White")
  854. p20.FormFactor = Enum.FormFactor.Custom
  855. p20.Size = Vector3.new(3, 1, 2.4000001)
  856. p20.CFrame = CFrame.new(1.49873698, 4.13275099, -16.500618, -2.38418579e-007, -4.47034836e-007, -1.00001454, -0.000133797526, 1.00000024, -2.98023224e-008, 1.00001466, 0.000135831535, -5.96046448e-008)
  857. p20.CanCollide = false
  858. p20.Locked = true
  859. p20.BottomSurface = Enum.SurfaceType.Smooth
  860. p20.TopSurface = Enum.SurfaceType.Smooth
  861. b18 = Instance.new("BlockMesh", p20)
  862. b18.Name = "Mesh"
  863. p21 = Instance.new("Part", m)
  864. p21.BrickColor = BrickColor.new("White")
  865. p21.FormFactor = Enum.FormFactor.Custom
  866. p21.Size = Vector3.new(3, 1, 1.19999993)
  867. p21.CFrame = CFrame.new(0.398718834, 5.13273239, -16.5005798, -2.22529991e-007, -4.17224015e-007, -1.00001454, -0.000133820766, 1.00000024, 5.9472427e-012, 1.00001466, 0.000135854774, -4.37120207e-008)
  868. p21.CanCollide = false
  869. p21.Locked = true
  870. p21.BottomSurface = Enum.SurfaceType.Smooth
  871. p21.TopSurface = Enum.SurfaceType.Smooth
  872. b19 = Instance.new("BlockMesh", p21)
  873. b19.Name = "Mesh"
  874. p22 = Instance.new("WedgePart", m)
  875. p22.BrickColor = BrickColor.new("White")
  876. p22.Name = "Wedge"
  877. p22.FormFactor = Enum.FormFactor.Custom
  878. p22.Size = Vector3.new(3, 1, 0.5)
  879. p22.CFrame = CFrame.new(2.94884443, 4.13282013, -16.5005474, 1.35156796e-007, 4.17202415e-007, -1.00001454, 1.19470278e-005, -1.00000024, -6.07483681e-013, -1.00001466, -1.39792755e-005, 4.37120278e-008)
  880. p22.CanCollide = false
  881. p22.Locked = true
  882. p22.BottomSurface = Enum.SurfaceType.Smooth
  883. p22.TopSurface = Enum.SurfaceType.Smooth
  884. p23 = Instance.new("Part", m)
  885. p23.BrickColor = BrickColor.new("White")
  886. p23.FormFactor = Enum.FormFactor.Custom
  887. p23.Size = Vector3.new(1.5, 0.5, 0.5)
  888. p23.CFrame = CFrame.new(0.111123323, 6.79699326, -19.53405, 0.167916089, 0.220654398, 0.960804224, 0.593452632, -0.800862908, 0.0802069977, 0.787171543, 0.556722164, -0.265425682)
  889. p23.CanCollide = false
  890. p23.Locked = true
  891. p23.BottomSurface = Enum.SurfaceType.Smooth
  892. p23.TopSurface = Enum.SurfaceType.Smooth
  893. b20 = Instance.new("BlockMesh", p23)
  894. b20.Name = "Mesh"
  895. p24 = Instance.new("WedgePart", m)
  896. p24.BrickColor = BrickColor.new("White")
  897. p24.Name = "Wedge"
  898. p24.FormFactor = Enum.FormFactor.Custom
  899. p24.Size = Vector3.new(3, 1, 0.5)
  900. p24.CFrame = CFrame.new(0.0487362742, 6.13243389, -16.5004158, -0.000165194273, -0.00030361861, 1.00001442, 0.00304524973, 0.999995589, 0.000303655863, -1.00001013, 0.00304720178, -0.000164449215)
  901. p24.CanCollide = false
  902. p24.Locked = true
  903. p24.BottomSurface = Enum.SurfaceType.Smooth
  904. p24.TopSurface = Enum.SurfaceType.Smooth
  905. p25 = Instance.new("Part", m)
  906. p25.BrickColor = BrickColor.new("Bright blue")
  907. p25.FormFactor = Enum.FormFactor.Symmetric
  908. p25.Size = Vector3.new(1, 1, 1)
  909. p25.CFrame = CFrame.new(1.49870086, 5.13261318, -18.0007782, 1.20991026e-005, -1.00001454, -4.94604174e-005, -1.00000024, -1.16155716e-005, -0.000471511274, 0.000469659513, 4.96469293e-005, -1.00001466)
  910. p25.CanCollide = false
  911. p25.Locked = true
  912. p25.BottomSurface = Enum.SurfaceType.Smooth
  913. p25.TopSurface = Enum.SurfaceType.Smooth
  914. b21 = Instance.new("SpecialMesh", p25)
  915. b21.MeshId = "http://www.roblox.com/asset/?id=3270017"
  916. b21.TextureId = ""
  917. b21.MeshType = Enum.MeshType.FileMesh
  918. b21.Name = "Mesh"
  919. b21.Scale = Vector3.new(1.39999998, 1.39999998, 0.600000024)
  920. p26 = Instance.new("Part", m)
  921. p26.BrickColor = BrickColor.new("White")
  922. p26.FormFactor = Enum.FormFactor.Symmetric
  923. p26.Size = Vector3.new(1, 1, 1)
  924. p26.CFrame = CFrame.new(1.49868095, 5.13287783, -17.5005093, 0.00030383491, 0.000164763711, -1.00001454, -0.999995768, -0.00302907336, -0.000303868263, -0.00303102471, 1.00001025, 0.000164022902)
  925. p26.CanCollide = false
  926. p26.Locked = true
  927. p26.BottomSurface = Enum.SurfaceType.Smooth
  928. p26.TopSurface = Enum.SurfaceType.Smooth
  929. b22 = Instance.new("SpecialMesh", p26)
  930. b22.MeshType = Enum.MeshType.Brick
  931. b22.Name = "Mesh"
  932. w1 = Instance.new("Weld", p1)
  933. w1.Name = "Wedge_Weld"
  934. w1.Part0 = p1
  935. w1.C0 = CFrame.new(13.1579618, 15.8875484, 3.27191186, -0.205515206, 0.52527827, 0.825741529, -0.209888965, -0.847774804, 0.487057745, 0.955883741, -0.0732159689, 0.284480691)
  936. w1.Part1 = p2
  937. w1.C1 = CFrame.new(16.5005817, -6.13223743, 2.94872212, -4.37113883e-008, -1.38580826e-005, 1, 0, 1, 1.38580826e-005, -1, 6.05756005e-013, -4.37113883e-008)
  938. w2 = Instance.new("Weld", p2)
  939. w2.Name = "Part_Weld"
  940. w2.Part0 = p2
  941. w2.C0 = CFrame.new(16.5006275, -6.13223362, 2.94873357, -5.96046448e-008, -1.3615936e-005, 1.00000358, -4.47034836e-008, 0.99999994, 1.41002238e-005, -1.00000358, 4.47034836e-008, 0)
  942. w2.Part1 = p3
  943. w2.C1 = CFrame.new(19.4568748, -3.38260746, -1.84870064, -4.37113883e-008, -0.499906301, 0.866079509, 0, -0.866079509, -0.499906301, 1, -2.18515979e-008, 3.78575393e-008)
  944. w3 = Instance.new("Weld", p3)
  945. w3.Name = "Wedge_Weld"
  946. w3.Part0 = p3
  947. w3.C0 = CFrame.new(19.456995, -3.38268948, -1.84870648, -5.06400113e-008, -0.499905825, 0.86608547, 1.07230136e-007, -0.866079628, -0.499910295, 1.00000715, -1.1125789e-007, -2.17476881e-008)
  948. w3.Part1 = p4
  949. w3.C1 = CFrame.new(16.5005646, 4.13256884, -0.0487511083, -4.37113883e-008, -1.37408551e-005, 1, 0, -1, -1.37408551e-005, 1, -6.00631849e-013, 4.37113883e-008)
  950. w4 = Instance.new("Weld", p4)
  951. w4.Name = "Part_Weld"
  952. w4.Part0 = p4
  953. w4.C0 = CFrame.new(16.5007706, 4.13255453, -0.0487275235, -1.62921424e-007, -1.2755394e-005, 1.00001431, 1.78814929e-007, -0.999999762, -1.46627426e-005, 1.00001431, -1.78813849e-007, -7.54998553e-008)
  954. w4.Part1 = p5
  955. w4.C1 = CFrame.new(13.6104183, 15.7089605, -1.84869325, -4.37113883e-008, 0.500093758, 0.865971267, 0, -0.865971267, 0.500093758, 1, 2.18597922e-008, 3.78528071e-008)
  956. w5 = Instance.new("Weld", p5)
  957. w5.Name = "Part_Weld"
  958. w5.Part0 = p5
  959. w5.C0 = CFrame.new(13.6108379, 15.7090359, -1.84877098, -4.29027068e-007, 0.500089467, 0.865987122, 1.9046513e-007, -0.865973532, 0.50009501, 1.00001431, 2.18601315e-008, 3.78533827e-008)
  960. w5.Part1 = p6
  961. w5.C1 = CFrame.new(19.3720245, -3.33087778, 2.54137325, -0.249996737, -0.491388977, 0.834289134, 0.0669635162, -0.868360817, -0.491391122, 0.965928316, -0.0669792444, 0.24999252)
  962. w6 = Instance.new("Weld", p6)
  963. w6.Name = "Part_Weld"
  964. w6.Part0 = p6
  965. w6.C0 = CFrame.new(19.3722382, -3.33087826, 2.54137945, -0.250001401, -0.491382152, 0.834303975, 0.0669622123, -0.868364573, -0.491393685, 0.965941966, -0.0669801831, 0.249996051)
  966. w6.Part1 = p7
  967. w6.C1 = CFrame.new(16.5012703, -5.1305232, 2.59873891, -4.37113883e-008, -0.000135861075, 1, 0, 1, 0.000135861075, -1, 5.9386762e-012, -4.37113883e-008)
  968. w7 = Instance.new("Weld", p7)
  969. w7.Name = "Part_Weld"
  970. w7.Part0 = p7
  971. w7.C0 = CFrame.new(16.5014496, -5.13052464, 2.59877563, -3.27825546e-007, -0.000133868307, 1.00001442, -3.57627869e-007, 0.99999994, 0.000135900453, -1.00001431, 1.49011612e-008, -5.96046448e-008)
  972. w7.Part1 = p8
  973. w7.C1 = CFrame.new(-0.765930653, -21.3311157, 1.75706458, -1.37833995e-005, 0.965968609, 0.258659452, 0.00428466033, 0.258657128, -0.965959728, -0.999990821, 0.00109495374, -0.00414241292)
  974. w8 = Instance.new("Weld", p8)
  975. w8.Name = "Part_Weld"
  976. w8.Part0 = p8
  977. w8.C0 = CFrame.new(-0.765703201, -21.3314991, 1.75706851, -1.42129729e-005, 0.965967655, 0.258668512, 0.00428489037, 0.258660465, -0.965972245, -1.00000513, 0.00109496934, -0.00414247159)
  978. w8.Part1 = p9
  979. w8.C1 = CFrame.new(11.6857395, -12.2548676, 8.25926208, -0.277089596, 0.631037474, 0.724577785, -0.561487973, 0.505604029, -0.655054033, -0.779713154, -0.588350415, 0.214222342)
  980. w9 = Instance.new("Weld", p9)
  981. w9.Name = "Part_Weld"
  982. w9.Part0 = p9
  983. w9.C0 = CFrame.new(11.6860123, -12.254859, 8.25934601, -0.277095288, 0.631033003, 0.724593103, -0.561500967, 0.505603611, -0.655058563, -0.779720128, -0.58835566, 0.214224264)
  984. w9.Part1 = p10
  985. w9.C1 = CFrame.new(-0.759226322, -21.3225994, -2.35311079, -0.0669693872, 0.965954244, 0.249894977, 0.254174918, 0.258710593, -0.931914091, -0.964836895, 0.00110732042, -0.262847036)
  986. w10 = Instance.new("Weld", p10)
  987. w10.Name = "Part_Weld"
  988. w10.Part0 = p10
  989. w10.C0 = CFrame.new(-0.759016514, -21.3229256, -2.3531487, -0.0669716895, 0.96595335, 0.249903828, 0.254178405, 0.258713901, -0.93192625, -0.964850724, 0.00110733509, -0.262850702)
  990. w10.Part1 = p11
  991. w10.C1 = CFrame.new(18.7059784, -3.17931223, -5.46201515, 0.250018269, -0.49138394, 0.834285676, -0.0669495314, -0.86836195, -0.491391063, 0.965923727, 0.0670017004, -0.250004292)
  992. w11 = Instance.new("Weld", p11)
  993. w11.Name = "Part_Weld"
  994. w11.Part0 = p11
  995. w11.C0 = CFrame.new(18.7061806, -3.17931461, -5.46200418, 0.250022948, -0.491377324, 0.834300399, -0.0669473261, -0.868365645, -0.491393894, 0.965937555, 0.0670026764, -0.250007868)
  996. w11.Part1 = p12
  997. w11.C1 = CFrame.new(13.6104174, 15.708952, -1.1486963, -4.37113883e-008, 0.500093997, 0.865971148, 0, -0.865971148, 0.500093997, 1, 2.18598029e-008, 3.78528e-008)
  998. w12 = Instance.new("Weld", p12)
  999. w12.Name = "Part_Weld"
  1000. w12.Part0 = p12
  1001. w12.C0 = CFrame.new(13.6107903, 15.7090092, -1.1487354, -4.76837158e-007, 0.500089884, 0.865987122, 2.83122063e-007, -0.865973473, 0.500095367, 1.00001442, 4.47034836e-008, 1.49011612e-008)
  1002. w12.Part1 = p13
  1003. w12.C1 = CFrame.new(19.4568653, -3.38261366, -1.14870369, -4.37113883e-008, -0.499906093, 0.866079628, 0, -0.866079628, -0.499906093, 1, -2.1851589e-008, 3.78575429e-008)
  1004. w13 = Instance.new("Weld", p13)
  1005. w13.Name = "Part_Weld"
  1006. w13.Part0 = p13
  1007. w13.C0 = CFrame.new(19.457077, -3.38260937, -1.14871991, -4.63888163e-008, -0.499899268, 0.866095126, 5.08347114e-007, -0.866083562, -0.499908328, 1.00001442, -2.18518963e-008, 3.78581007e-008)
  1008. w13.Part1 = p14
  1009. w13.C1 = CFrame.new(-0.765169621, -21.3281136, 1.05768669, -1.37638153e-005, 0.96595937, 0.258693874, 0.00425664661, 0.258691579, -0.965950608, -0.99999094, 0.00108787336, -0.00411530817)
  1010. w14 = Instance.new("Weld", p14)
  1011. w14.Name = "ArmPart_Weld"
  1012. w14.Part0 = p14
  1013. w14.C0 = CFrame.new(-0.764959335, -21.3284416, 1.05770254, -1.42545232e-005, 0.965958476, 0.258703023, 0.00425684778, 0.258694947, -0.965963125, -1.00000536, 0.00108788908, -0.00411536777)
  1014. w14.Part1 = p15
  1015. w14.C1 = CFrame.new(16.0000172, 5.13429213, -1.49874043, -4.37113883e-008, 0.000108154614, 1, 0, -1, 0.000108154614, 1, 4.72758855e-012, 4.37113883e-008)
  1016. w15 = Instance.new("Weld", p15)
  1017. w15.Name = "Part_Weld"
  1018. w15.Part0 = p15
  1019. w15.C0 = CFrame.new(16.0001163, 5.13430214, -1.49877143, -2.99420208e-007, 0.00011029192, 1.00001454, 4.39002179e-007, -1, 0.000108176115, 1.00001442, 0, 4.42378223e-008)
  1020. w15.Part1 = p16
  1021. w15.C1 = CFrame.new(16.5000153, 6.13429213, -1.49872518, -4.37113883e-008, 0.000108154614, 1, 0, -1, 0.000108154614, 1, 4.72758855e-012, 4.37113883e-008)
  1022. w16 = Instance.new("Weld", p16)
  1023. w16.Name = "Part_Weld"
  1024. w16.Part0 = p16
  1025. w16.C0 = CFrame.new(16.5002594, 6.1342907, -1.49874651, -2.98894406e-007, 0.000110270419, 1.00001454, 4.39006953e-007, -1, 0.000108154614, 1.00001442, 4.71678729e-012, 4.37120207e-008)
  1026. w16.Part1 = p17
  1027. w16.C1 = CFrame.new(16.8263168, 6.46704865, 8.05857849, 0.396029502, -0.207962677, 0.894378066, -0.497426808, 0.770130157, 0.399332225, -0.771833658, -0.603034973, 0.201548025)
  1028. w17 = Instance.new("Weld", p17)
  1029. w17.Name = "Part_Weld"
  1030. w17.Part0 = p17
  1031. w17.C0 = CFrame.new(16.8266068, 6.46726036, 8.05869198, 0.396035522, -0.207958207, 0.894391596, -0.497440547, 0.770127177, 0.399337679, -0.771840453, -0.603040278, 0.201549783)
  1032. w17.Part1 = p18
  1033. w17.C1 = CFrame.new(-0.991122723, -20.5004215, 5.08983374, 0.0669417754, 0.965955615, 0.249897182, -0.245835528, 0.258705586, -0.9341501, -0.966997266, 0.00110005983, 0.254784435)
  1034. w18 = Instance.new("Weld", p18)
  1035. w18.Name = "Part_Weld"
  1036. w18.Part0 = p18
  1037. w18.C0 = CFrame.new(-0.990923882, -20.5007305, 5.08983374, 0.066943109, 0.965954781, 0.249906152, -0.245838761, 0.258709013, -0.934162259, -0.967011333, 0.00110003352, 0.254788101)
  1038. w18.Part1 = p19
  1039. w18.C1 = CFrame.new(10.4456682, -15.7977238, -7.8332901, 0.559388936, -0.68521893, 0.466432214, 0.116898462, -0.491870552, -0.862785101, 0.820620954, 0.537157655, -0.195045918)
  1040. w19 = Instance.new("Weld", p19)
  1041. w19.Name = "Part_Weld"
  1042. w19.Part0 = p19
  1043. w19.C0 = CFrame.new(10.4457512, -15.7979813, -7.83342838, 0.559401393, -0.685213447, 0.466440916, 0.116905749, -0.491872638, -0.862796843, 0.820629179, 0.537163019, -0.195047855)
  1044. w19.Part1 = p20
  1045. w19.C1 = CFrame.new(16.5012665, -4.13050127, 1.49876332, -4.37113883e-008, -0.000135854745, 1, 0, 1, 0.000135854745, -1, 5.93839951e-012, -4.37113883e-008)
  1046. w20 = Instance.new("Weld", p20)
  1047. w20.Name = "Part_Weld"
  1048. w20.Part0 = p20
  1049. w20.C0 = CFrame.new(16.5013981, -4.13050938, 1.498757, -2.38418579e-007, -0.000133797526, 1.00001466, -4.47034836e-007, 1.00000024, 0.000135831535, -1.00001454, -2.98023224e-008, -5.96046448e-008)
  1050. w20.Part1 = p21
  1051. w20.C1 = CFrame.new(16.5012627, -5.13048887, 0.39874959, -4.37113883e-008, -0.000135854745, 1, 0, 1, 0.000135854745, -1, 5.93839951e-012, -4.37113883e-008)
  1052. w21 = Instance.new("Weld", p21)
  1053. w21.Name = "Wedge_Weld"
  1054. w21.Part0 = p21
  1055. w21.C0 = CFrame.new(16.5014935, -5.13049126, 0.398722976, -2.22529991e-007, -0.000133820766, 1.00001466, -4.17224015e-007, 1.00000024, 0.000135854774, -1.00001454, 5.9472427e-012, -4.37120207e-008)
  1056. w21.Part1 = p22
  1057. w21.C1 = CFrame.new(-16.5005875, 4.13259029, 2.94876933, -4.37113883e-008, 1.39792737e-005, -1, 0, -1, -1.39792737e-005, -1, -6.11053471e-013, 4.37113883e-008)
  1058. w22 = Instance.new("Weld", p22)
  1059. w22.Name = "Part_Weld"
  1060. w22.Part0 = p22
  1061. w22.C0 = CFrame.new(-16.500824, 4.13258791, 2.94888711, 1.35156796e-007, 1.19470278e-005, -1.00001466, 4.17202415e-007, -1.00000024, -1.39792755e-005, -1.00001454, -6.07483681e-013, 4.37120278e-008)
  1062. w22.Part1 = p23
  1063. w22.C1 = CFrame.new(11.3238592, 16.2938461, -5.83674097, 0.167913347, 0.593457043, 0.787155509, 0.220650926, -0.800859332, 0.556720257, 0.960790455, 0.0802058354, -0.265421808)
  1064. w23 = Instance.new("Weld", p23)
  1065. w23.Name = "Wedge_Weld"
  1066. w23.Part0 = p23
  1067. w23.C0 = CFrame.new(11.3242846, 16.2939701, -5.83676767, 0.167916089, 0.593452632, 0.787171543, 0.220654398, -0.800862908, 0.556722164, 0.960804224, 0.0802069977, -0.265425682)
  1068. w23.Part1 = p24
  1069. w23.C1 = CFrame.new(-16.5190907, -6.08210278, -0.053311754, -0.000165350299, 0.00304719806, -0.999995351, -0.000303142268, 0.999995351, 0.00304725766, 0.99999994, 0.000303644716, -0.000164425801)
  1070. w24 = Instance.new("Weld", p24)
  1071. w24.Name = "Part_Weld"
  1072. w24.Part0 = p24
  1073. w24.C0 = CFrame.new(-16.5192356, -6.08211088, -0.0533116534, -0.000165194273, 0.00304524973, -1.00001013, -0.00030361861, 0.999995589, 0.00304720178, 1.00001442, 0.000303655863, -0.000164449215)
  1074. w24.Part1 = p25
  1075. w24.C1 = CFrame.new(5.14108515, 1.49960721, -17.9982204, 1.16387992e-005, -0.999999881, 0.000471503939, -1, -1.1615477e-005, 4.94651576e-005, -4.94596788e-005, -0.000471504522, -0.999999881)
  1076. w25 = Instance.new("Weld", p25)
  1077. w25.Name = "Part_Weld"
  1078. w25.Part0 = p25
  1079. w25.C0 = CFrame.new(5.14104986, 1.49967504, -17.9985313, 1.20991026e-005, -1.00000024, 0.000469659513, -1.00001454, -1.16155716e-005, 4.96469293e-005, -4.94604174e-005, -0.000471511274, -1.00001466)
  1080. w25.Part1 = p26
  1081. w25.C1 = CFrame.new(5.07938719, 17.5157299, 1.50311017, 0.00030336561, -0.99999541, -0.00302907825, 0.000164940167, -0.00302901864, 0.999995351, -0.99999994, -0.000303863839, 0.000164020501)
  1082. m.Parent = char
  1083. m:MakeJoints()
  1084. ----------------------------------------------------
  1085. local cor2 = Instance.new("Part", char.Claw)
  1086. cor2.Name = "Thingy"
  1087. cor2.Locked = true
  1088. cor2.BottomSurface = 0
  1089. cor2.CanCollide = false
  1090. cor2.Size = Vector3.new(2, 1, 1)
  1091. cor2.Transparency = 1
  1092. cor2.TopSurface = 0
  1093. corw2 = Instance.new("Weld", cor2)
  1094. corw2.Part0 = larm
  1095. corw2.Part1 = cor2
  1096. corw2.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90))
  1097. corw2.C1 = CFrame.new(0, 0, 0)
  1098. weld2 = Instance.new("Weld", char.Claw)
  1099. weld2.Part0 = cor2
  1100. weld2.Part1 = char.Claw.ArmPart
  1101. weld2.C0 = CFrame.new(0, 0, 0)
  1102. ----------------------------------------------------
  1103. function weld5(part0, part1, c0, c1)
  1104. weeld=Instance.new("Weld", part0)
  1105. weeld.Part0=part0
  1106. weeld.Part1=part1
  1107. weeld.C0=c0
  1108. weeld.C1=c1
  1109. return weeld
  1110. end
  1111. ----------------------------------------------------
  1112. function newRay(start,face,range,wat)
  1113. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  1114. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  1115. return rey,hit,pos
  1116. end
  1117. ----------------------------------------------------
  1118. mod5 = Instance.new("Model",char)
  1119.  
  1120. function FindNearestTorso(Position,Distance,SinglePlayer)
  1121. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1122. local List = {}
  1123. for i,v in pairs(workspace:GetChildren())do
  1124. if v:IsA("Model")then
  1125. if v:findFirstChild("Torso")then
  1126. if v ~= char then
  1127. if(v.Torso.Position -Position).magnitude <= Distance then
  1128. table.insert(List,v)
  1129. end
  1130. end
  1131. end
  1132. end
  1133. end
  1134. return List
  1135. end
  1136.  
  1137. function Landing()
  1138. part=Instance.new('Part',mod5)
  1139. part.Anchored=true
  1140. part.CanCollide=false
  1141. part.FormFactor='Custom'
  1142. part.Size=Vector3.new(.2,.2,.2)
  1143. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  1144. part.Transparency=.7
  1145. part.BrickColor=BrickColor.new('White')
  1146. mesh=Instance.new('SpecialMesh',part)
  1147. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1148. mesh.Scale=Vector3.new(10,5,10)
  1149.  
  1150. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  1151. if v:FindFirstChild('Humanoid') then
  1152. v.Humanoid:TakeDamage(math.random(20,30))
  1153. v.Humanoid.PlatformStand = true
  1154. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1155. end
  1156. end
  1157.  
  1158. coroutine.resume(coroutine.create(function()
  1159. for i=0,3.8,0.05 do
  1160. wait()
  1161. part.CFrame=part.CFrame
  1162. part.Transparency=i
  1163. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  1164. end
  1165. part.Parent = nil
  1166. end))
  1167. end
  1168. ----------------------------------------------------
  1169. mod4 = Instance.new("Model",char)
  1170.  
  1171. ptez = {0.7, 0.8, 0.9, 1}
  1172.  
  1173. function FindNearestTorso(Position,Distance,SinglePlayer)
  1174. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1175. local List = {}
  1176. for i,v in pairs(workspace:GetChildren())do
  1177. if v:IsA("Model")then
  1178. if v:findFirstChild("Torso")then
  1179. if v ~= char then
  1180. if(v.Torso.Position -Position).magnitude <= Distance then
  1181. table.insert(List,v)
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. return List
  1188. end
  1189.  
  1190. function GroundPound()
  1191. part=Instance.new('Part',mod4)
  1192. part.Anchored=true
  1193. part.CanCollide=false
  1194. part.FormFactor='Custom'
  1195. part.Size=Vector3.new(.2,.2,.2)
  1196. part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0)
  1197. part.Transparency=.7
  1198. part.BrickColor=BrickColor.new('White')
  1199. mesh=Instance.new('SpecialMesh',part)
  1200. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  1201. mesh.Scale=Vector3.new(3,3,3)
  1202. part2=Instance.new('Part',mod4)
  1203. part2.Anchored=true
  1204. part2.CanCollide=false
  1205. part2.FormFactor='Custom'
  1206. part2.Size=Vector3.new(.2,.2,.2)
  1207. part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6)
  1208. part2.Transparency=.7
  1209. part2.BrickColor=BrickColor.new('Really red')
  1210. mesh2=Instance.new('SpecialMesh',part2)
  1211. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  1212. mesh2.Scale=Vector3.new(3,1.5,3)
  1213. x = Instance.new("Sound",char)
  1214. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1215. x.Pitch = ptez[math.random(1,#ptez)]
  1216. x.Volume = 1
  1217. wait(.1)
  1218. x:Play()
  1219. for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do
  1220. if v:FindFirstChild('Humanoid') then
  1221. v.Humanoid:TakeDamage(math.random(8,15))
  1222. end
  1223. end
  1224. coroutine.resume(coroutine.create(function()
  1225. for i=0,0.62,0.13 do
  1226. wait()
  1227. part.CFrame=part.CFrame
  1228. part.Transparency=i
  1229. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  1230. part2.CFrame=part2.CFrame
  1231. part2.Transparency=i
  1232. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  1233. end
  1234. part.Parent=nil
  1235. part2.Parent=nil
  1236. x:Destroy()
  1237. end))
  1238. end
  1239. ----------------------------------------------------
  1240. mod=Instance.new('Model',char)
  1241.  
  1242. function charge()
  1243. hed.Velocity=hed.CFrame.lookVector*200
  1244. part=Instance.new('Part',mod)
  1245. part.Anchored=true
  1246. part.CanCollide=false
  1247. part.FormFactor='Custom'
  1248. part.Size=Vector3.new(.2,.2,.2)
  1249. part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0)
  1250. part.Transparency=.7
  1251. part.BrickColor=BrickColor.new('Black')
  1252. mesh=Instance.new('SpecialMesh',part)
  1253. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1254. mesh.Scale=Vector3.new(10,5,10)
  1255. part2=part:clone()
  1256. part2.Parent=mod
  1257. part2.BrickColor=BrickColor.new('Bright red')
  1258. mesh2=mesh:clone()
  1259. mesh2.Parent=part2
  1260. mesh2.Scale=Vector3.new(20,10,20)
  1261. part3=part2:clone()
  1262. part3.Parent = mod
  1263. part3.BrickColor=BrickColor.new('White')
  1264. mesh3=mesh2:clone()
  1265. mesh2.Parent=part3
  1266. mesh3.Scale=Vector3.new(30,15,30)
  1267. coroutine.resume(coroutine.create(function()
  1268. for i=0,1,0.1 do
  1269. wait()
  1270. part.CFrame=part.CFrame
  1271. part.Transparency=i
  1272. mesh.Scale=mesh.Scale+Vector3.new(1,1,1)
  1273. part2.CFrame=part2.CFrame
  1274. part2.Transparency=i
  1275. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  1276. part3.CFrame=part3.CFrame
  1277. part3.Transparency=i
  1278. mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1)
  1279. end
  1280. part.Parent=nil
  1281. part2.Parent=nil
  1282. part3.Parent = nil
  1283. end))
  1284. end
  1285. ----------------------------------------------------
  1286. function FindNearestTorso(Position,Distance,SinglePlayer)
  1287. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  1288. local List = {}
  1289. for i,v in pairs(workspace:GetChildren())do
  1290. if v:IsA("Model")then
  1291. if v:findFirstChild("Torso")then
  1292. if v ~= char then
  1293. if(v.Torso.Position -Position).magnitude <= Distance then
  1294. table.insert(List,v)
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. return List
  1301. end
  1302.  
  1303. mod3 = Instance.new("Model",rleg)
  1304.  
  1305. function Stomp()
  1306. part=Instance.new('Part',mod3)
  1307. part.Anchored=true
  1308. part.CanCollide=false
  1309. part.FormFactor='Custom'
  1310. part.Size=Vector3.new(.2,.2,.2)
  1311. part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0)
  1312. part.Transparency=.7
  1313. part.BrickColor=BrickColor.new('White')
  1314. mesh=Instance.new('SpecialMesh',part)
  1315. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  1316. mesh.Scale=Vector3.new(25,25,25)
  1317. part2=part:clone()
  1318. part2.Parent=mod3
  1319. part2.BrickColor=BrickColor.new('Really Black')
  1320. mesh2=mesh:clone()
  1321. mesh2.Parent=part2
  1322. mesh2.Scale=Vector3.new(15,15,15)
  1323. part3=part:clone()
  1324. part3.Parent=mod3
  1325. part3.TopSurface=0
  1326. part3.BottomSurface=0
  1327. part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0)
  1328. mesh3=Instance.new('SpecialMesh',part3)
  1329. mesh3.MeshType = 3
  1330. mesh3.Scale=Vector3.new(12,12,12)
  1331. for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do
  1332. if v:FindFirstChild('Humanoid') then
  1333. v.Humanoid:TakeDamage(math.random(20,60))
  1334. v.Humanoid.PlatformStand = true
  1335. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1336. end
  1337. end
  1338. coroutine.resume(coroutine.create(function()
  1339. for i=0,3.8,0.05 do
  1340. wait()
  1341. part.CFrame=part.CFrame
  1342. part.Transparency=i
  1343. mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8)
  1344. part2.CFrame=part2.CFrame
  1345. part2.Transparency=i
  1346. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  1347. part3.CFrame=part3.CFrame
  1348. part3.Transparency=i
  1349. mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5)
  1350. end
  1351. end))
  1352. end
  1353. ----------------------------------------------------
  1354.  
  1355. local acos = math.acos
  1356. local sqrt = math.sqrt
  1357. local Vec3 = Vector3.new
  1358. local fromAxisAngle = CFrame.fromAxisAngle
  1359.  
  1360. local function toAxisAngle(CFr)
  1361. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1362. local Angle = math.acos((R00+R11+R22-1)/2)
  1363. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1364. A = A == 0 and 0.00001 or A
  1365. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1366. B = B == 0 and 0.00001 or B
  1367. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1368. C = C == 0 and 0.00001 or C
  1369. local x = (R21-R12)/sqrt(A)
  1370. local y = (R02-R20)/sqrt(B)
  1371. local z = (R10-R01)/sqrt(C)
  1372. return Vec3(x,y,z),Angle
  1373. end
  1374.  
  1375. function ApplyTrig(Num,Func)
  1376. local Min,Max = Func(0),Func(1)
  1377. local i = Func(Num)
  1378. return (i-Min)/(Max-Min)
  1379. --[[if Func == "sin" then
  1380. return (math.sin((1-Num)*math.pi)+1)/2
  1381. elseif Func == "cos" then
  1382. return (math.cos((1-Num)*math.pi)+1)/2
  1383. end]]
  1384. end
  1385.  
  1386. function LerpCFrame(CFrame1,CFrame2,Num)
  1387. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  1388. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  1389. end
  1390.  
  1391. function Crater(Torso,Radius)
  1392. Spawn(function()
  1393. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  1394. local Ignore = {}
  1395. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1396. if v.Character ~= nil then
  1397. Ignore[#Ignore+1] = v.Character
  1398. end
  1399. end
  1400. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  1401. if Hit == nil then return end
  1402. local Parts = {}
  1403. for i = 1,360,10 do
  1404. local P = Instance.new("Part",Torso.Parent)
  1405. P.Anchored = true
  1406. P.FormFactor = "Custom"
  1407. P.BrickColor = Hit.BrickColor
  1408. P.Material = Hit.Material
  1409. P.TopSurface = "Smooth"
  1410. P.BottomSurface = "Smooth"
  1411. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  1412. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  1413. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  1414. if math.random(0,5) == 0 then -- rubble
  1415. local P = Instance.new("Part",Torso.Parent)
  1416. P.Anchored = true
  1417. P.FormFactor = "Custom"
  1418. P.BrickColor = Hit.BrickColor
  1419. P.Material = Hit.Material
  1420. P.TopSurface = "Smooth"
  1421. P.BottomSurface = "Smooth"
  1422. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  1423. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  1424. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  1425. end
  1426. end
  1427. for i = 0,1,0.05 do
  1428. for i2,v in pairs(Parts) do
  1429. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  1430. end
  1431. wait(0.02)
  1432. end
  1433. for i,v in pairs(Parts) do
  1434. if v[1].Size.X > 2.1 then
  1435. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  1436. end
  1437. v[1].Anchored = false
  1438. end
  1439. for i = 0,1,0.05 do
  1440. for i2,v in pairs(Parts) do
  1441. v[1].Transparency = i
  1442. if i == 1 then
  1443. v[1]:Destroy()
  1444. elseif i >= 0.25 then
  1445. v[1].CanCollide = false
  1446. end
  1447. end
  1448. wait(0.02)
  1449. end
  1450. Parts = nil
  1451. end)
  1452. end
  1453.  
  1454. ----------------------------------------------------
  1455. mouse.KeyDown:connect(function(key)
  1456. if key == "r" then
  1457. larm.BrickColor = BrickColor.new("Bright red")
  1458. rarm.BrickColor = BrickColor.new("Bright red")
  1459. if Debounces.CanAttack == true then
  1460. Debounces.CanAttack = false
  1461. Debounces.on = true
  1462. Debounces.NoIdl = true
  1463. to = char.Absolution.Thingy2.Touched:connect(function(ht)
  1464. hit = ht.Parent
  1465. if ht and hit:IsA("Model") then
  1466. if hit:FindFirstChild("Humanoid") then
  1467. if hit.Name ~= p.Name then
  1468. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1469. Debounces.Slashed = true]]--
  1470. hit:FindFirstChild("Humanoid"):TakeDamage(10)
  1471. wait(1)
  1472. --Debounces.Slashed = false
  1473. --end
  1474. end
  1475. end
  1476. elseif ht and hit:IsA("Hat") then
  1477. if hit.Parent.Name ~= p.Name then
  1478. if hit.Parent:FindFirstChild("Humanoid") then
  1479. --[[ if Debounces.Slashing == true and Debounces.Slashed == false then
  1480. Debounces.Slashed = true]]--
  1481. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
  1482. wait(1)
  1483. --Debounces.Slashed = false
  1484. end
  1485. end
  1486. end
  1487. end)
  1488. q = Instance.new("Sound",hed)
  1489. q.SoundId = "http://www.roblox.com/asset/?id=134012322"
  1490. q.Pitch = 0.85
  1491. q.Looped = false
  1492. q1 = Instance.new("Sound",hed)
  1493. q1.SoundId = "http://www.roblox.com/asset/?id=134012322"
  1494. q1.Pitch = 0.85
  1495. q1.Looped = false
  1496. q:Play()
  1497. q1:Play()
  1498. for i = 1,20 do
  1499. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4)
  1500. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4)
  1501. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4)
  1502. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 4, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4)
  1503. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 1) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4)
  1504. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.4)
  1505. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.2, -3) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(0)), 0.5)
  1506. if Debounces.on == false then break end
  1507. wait()
  1508. end
  1509. n = Instance.new("Sound",hed)
  1510. n.SoundId = "http://www.roblox.com/asset/?id=168514932"
  1511. n.Pitch = 0.94
  1512. n.Looped = false
  1513. n1 = Instance.new("Sound",hed)
  1514. n1.SoundId = "http://www.roblox.com/asset/?id=168514932"
  1515. n1.Pitch = 0.94
  1516. n1.Looped = false
  1517. n:Play()
  1518. n1:Play()
  1519. b = Instance.new("Sound",hed)
  1520. b.SoundId = "http://www.roblox.com/asset/?id=168586586"
  1521. b.Pitch = 0.94
  1522. b.Looped = false
  1523. b1 = Instance.new("Sound",hed)
  1524. b1.SoundId = "http://www.roblox.com/asset/?id=168586586"
  1525. b1.Pitch = 0.94
  1526. b1.Looped = false
  1527. b:Play()
  1528. b1:Play()
  1529. for i = 1,26 do
  1530. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.5)
  1531. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.5)
  1532. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.5)
  1533. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.5)
  1534. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -1) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.5)
  1535. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .4) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.5)
  1536. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 0.5)
  1537. if Debounces.on == false then break end
  1538. wait()
  1539. end
  1540. wait(.5)
  1541. to:disconnect()
  1542. q:Destroy()
  1543. q1:Destroy()
  1544. n:Destroy()
  1545. n1:Destroy()
  1546. larm.BrickColor = BrickColor.new("White")
  1547. rarm.BrickColor = BrickColor.new("White")
  1548. if Debounces.CanAttack == false then
  1549. Debounces.CanAttack = true
  1550. Debounces.on = false
  1551. Debounces.NoIdl = false
  1552. end
  1553. end
  1554. end
  1555. end)
  1556. ----------------------------------------------------
  1557. mouse.KeyDown:connect(function(key)
  1558. if key == "q" then
  1559. larm.BrickColor = BrickColor.new("Bright red")
  1560. rarm.BrickColor = BrickColor.new("Bright red")
  1561. if Debounces.CanAttack == true then
  1562. Debounces.CanAttack = false
  1563. Debounces.on = true
  1564. Debounces.NoIdl = true
  1565. to = char.Absolution.Thingy2.Touched:connect(function(ht)
  1566. hit = ht.Parent
  1567. if ht and hit:IsA("Model") then
  1568. if hit:FindFirstChild("Humanoid") then
  1569. if hit.Name ~= p.Name then
  1570. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1571. Debounces.Slashed = true]]--
  1572. hit:FindFirstChild("Humanoid"):TakeDamage(4)
  1573. wait(1)
  1574. --Debounces.Slashed = false
  1575. --end
  1576. end
  1577. end
  1578. elseif ht and hit:IsA("Hat") then
  1579. if hit.Parent.Name ~= p.Name then
  1580. if hit.Parent:FindFirstChild("Humanoid") then
  1581. --[[ if Debounces.Slashing == true and Debounces.Slashed == false then
  1582. Debounces.Slashed = true]]--
  1583. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(4)
  1584. wait(1)
  1585. --Debounces.Slashed = false
  1586. end
  1587. end
  1588. end
  1589. end)
  1590. for i = 1, 20 do
  1591. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 0.2)
  1592. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 0.2)
  1593. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5)
  1594. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5)
  1595. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5)
  1596. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)
  1597. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  1598. if Debounces.on == false then break end
  1599. wait()
  1600. end
  1601. z = Instance.new("Sound",hed)
  1602. z.SoundId = "rbxassetid://160069154"
  1603. z.Looped = false
  1604. z.Pitch = .9
  1605. z1 = Instance.new("Sound",hed)
  1606. z1.SoundId = "rbxassetid://160069154"
  1607. z1.Looped = false
  1608. z1.Pitch = .9
  1609. wait(0.01)
  1610. z:Play()
  1611. z1:Play()
  1612. for i = 1, 12 do
  1613. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  1614. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2,.9,-1) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5)
  1615. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5)
  1616. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  1617. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10), 0, 0), 0.5)
  1618. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, .6) * CFrame.Angles(math.rad(-65), 0, 0), 0.5)
  1619. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  1620. if Debounces.on == false then break end
  1621. wait()
  1622. end
  1623. for i = 1, 12 do
  1624. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(50)), 0.4)
  1625. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-18)), 0.4)
  1626. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(10),0), 0.5)
  1627. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-10), 0), 0.5)
  1628. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5)
  1629. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)
  1630. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.7, -1.4) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  1631. if Debounces.on == false then break end
  1632. wait()
  1633. end
  1634. z = Instance.new("Sound",hed)
  1635. z.SoundId = "rbxassetid://168586621"
  1636. z.Looped = false
  1637. z.Pitch = 1
  1638. z1 = Instance.new("Sound",hed)
  1639. z1.SoundId = "rbxassetid://168586621"
  1640. z1.Looped = false
  1641. z1.Pitch = 1
  1642. wait(0.01)
  1643. z:Play()
  1644. z1:Play()
  1645. for i = 1, 12 do
  1646. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0) * CFrame.Angles(math.rad(40), math.rad(-20), math.rad(10)), 0.5)
  1647. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-18)), 0.4)
  1648. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2) * CFrame.Angles(math.rad(-14),math.rad(-40),0), 0.5)
  1649. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(40), 0), 0.5)
  1650. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.5)
  1651. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(20), 0, math.rad(10)), 0.5)
  1652. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(-110), math.rad(-90), math.rad(20)), 1)
  1653. if Debounces.on == false then break end
  1654. wait()
  1655. end
  1656. to:disconnect()
  1657. larm.BrickColor = BrickColor.new("White")
  1658. rarm.BrickColor = BrickColor.new("White")
  1659. if Debounces.CanAttack == false then
  1660. Debounces.CanAttack = true
  1661. Debounces.on = false
  1662. Debounces.NoIdl = false
  1663. end
  1664. end
  1665. end
  1666. end)
  1667. ----------------------------------------------------
  1668. Sit = false
  1669. mouse.KeyDown:connect(function(key)
  1670. if key == "v" then
  1671. if Sit == false then
  1672. Sit = true
  1673. hum.WalkSpeed = 0.001
  1674. stanceToggle = "Sitting"
  1675. elseif Sit == true then
  1676. Sit = false
  1677. hum.WalkSpeed = 7
  1678. stanceToggle = "Normal"
  1679. end
  1680. end
  1681. end)
  1682. ----------------------------------------------------
  1683. mouse.KeyDown:connect(function(key)
  1684. if key == "t" then
  1685. if Debounces.CanAttack == true then
  1686. Debounces.CanAttack = false
  1687. Debounces.on = true
  1688. Debounces.NoIdl = true
  1689. for i = 1, 20 do
  1690. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4)
  1691. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4)
  1692. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4)
  1693. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4)
  1694. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .6) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.4)
  1695. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.2) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4)
  1696. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1)
  1697. if Debounces.on == false then break end
  1698. wait()
  1699. end
  1700. Spawn(function()
  1701. local Parts = {}
  1702. for Y = -5,5 do
  1703. local P = Instance.new("Part",char)
  1704. P.Anchored = true
  1705. P.FormFactor = "Custom"
  1706. P.CanCollide = false
  1707. P.Size = Vector3.new(1,2,1)
  1708. P.TopSurface = "SmoothNoOutlines"
  1709. P.BottomSurface = "SmoothNoOutlines"
  1710. P.BrickColor = BrickColor.new("White")
  1711. P.Name = tostring(Y)
  1712. local i = (Y+5)/(10)
  1713. i = 1-math.cos(math.pi*i-(math.pi/2))
  1714. P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
  1715. --[[P.Touched:connect(function(ht)
  1716. local hit = ht.Parent
  1717. if hit:FindFirstChild("Humanoid") then
  1718. hit.Humanoid:TakeDamage(math.random(20,50))
  1719. end
  1720. end)]]--
  1721. s = Instance.new("Sound",P)
  1722. s.SoundId = "rbxassetid://228343271"
  1723. s.Volume = .7
  1724. s.Pitch = 0.9
  1725. s:Play()
  1726. P.Touched:connect(function(ht)
  1727. hit = ht.Parent
  1728. if ht and hit:IsA("Model") then
  1729. if hit:FindFirstChild("Humanoid") then
  1730. if hit.Name ~= p.Name then
  1731. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1732. Debounces.Slashed = true]]--
  1733. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
  1734. hit:FindFirstChild("Humanoid").PlatformStand = true
  1735. wait(1)
  1736. --Debounces.Slashed = false
  1737. --end
  1738. end
  1739. end
  1740. elseif ht and hit:IsA("Hat") then
  1741. if hit.Parent.Name ~= p.Name then
  1742. if hit.Parent:FindFirstChild("Humanoid") then
  1743. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1744. Debounces.Slashed = true]]--
  1745. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
  1746. hit:FindFirstChild("Humanoid").PlatformStand = true
  1747. wait(1)
  1748. --Debounces.Slashed = false
  1749. --end
  1750. end
  1751. end
  1752. end
  1753. end)
  1754. Parts[#Parts+1] = P
  1755. end
  1756. local BREAKIT = false
  1757. local CParts = {}
  1758. local Rocks = {}
  1759. local LastPos = nil
  1760. for i = 1,70 do
  1761. for i2,v in pairs(Parts) do
  1762. v.CFrame = v.CFrame*CFrame.new(0,0,-4)
  1763. local cf = v.CFrame
  1764. v.Size = v.Size+Vector3.new(0.4,0.35,0)
  1765. v.CFrame = cf
  1766. v.Transparency = v.Transparency+0.02
  1767. if v.Transparency >= 0.975 then BREAKIT = true end
  1768. if v.Name == "0" then
  1769. local Ignore = {}
  1770. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1771. if v.Character ~= nil then
  1772. Ignore[#Ignore+1] = v.Character
  1773. end
  1774. end
  1775. local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
  1776. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
  1777. if Hit ~= nil then
  1778. if #Rocks == 0 then
  1779. for i = 1,5 do
  1780. local P = Instance.new("Part",char)
  1781. Rocks[#Rocks+1] = P
  1782. P.Anchored = true
  1783. P.FormFactor = "Custom"
  1784. P.BrickColor = Hit.BrickColor
  1785. P.Material = Hit.Material
  1786. P.TopSurface = "Smooth"
  1787. P.BottomSurface = "Smooth"
  1788. P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100)
  1789. end
  1790. end
  1791. for i,P in pairs(Rocks) do
  1792. P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1793. end
  1794. local P = Instance.new("Part",char)
  1795. CParts[#CParts+1] = {P,tick()}
  1796. P.Anchored = true
  1797. P.FormFactor = "Custom"
  1798. P.BrickColor = Hit.BrickColor
  1799. P.Material = Hit.Material
  1800. P.TopSurface = "Smooth"
  1801. P.BottomSurface = "Smooth"
  1802. P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100)
  1803. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1804. Pos = Pos.p
  1805. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1806. local P = P:Clone()
  1807. CParts[#CParts+1] = {P,tick()}
  1808. P.Parent = char
  1809. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
  1810. Pos = Pos.p
  1811. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
  1812. if LastPos ~= nil then
  1813. local P = P:Clone()
  1814. CParts[#CParts+1] = {P,tick()}
  1815. P.Parent = char
  1816. P.BrickColor = BrickColor.new("White")
  1817. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1818. Pos = Pos.p
  1819. local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1820. P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
  1821. --P.Velocity = Vector3.new(0,-1000,0)
  1822. P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
  1823. end
  1824. LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1825. end
  1826. end
  1827. end
  1828. if BREAKIT then break end
  1829. wait(0.002)
  1830. end
  1831. for i,v in pairs(Rocks) do
  1832. CParts[#CParts+1] = {v,tick()}
  1833. end
  1834. for i,v in pairs(Parts) do
  1835. v:Destroy()
  1836. end
  1837. Parts = nil
  1838. while true do
  1839. local t = tick()
  1840. local p = nil
  1841. for i,v in pairs(CParts) do
  1842. if t-v[2] > 4 then
  1843. v[1].Transparency = v[1].Transparency+0.05
  1844. if v[1].Transparency >= 1 then
  1845. v[1]:Destroy()
  1846. CParts[i] = nil
  1847. end
  1848. end
  1849. p = v
  1850. end
  1851. if p == nil then break end
  1852. wait(0.002)
  1853. end
  1854. for i,v in pairs(CParts) do
  1855. v:Destroy()
  1856. end
  1857. CParts = {}
  1858. end)
  1859. for i = 1, 20 do
  1860. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.4)
  1861. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4)
  1862. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4)
  1863. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4)
  1864. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -1.4) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4)
  1865. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1.6, -.9) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4)
  1866. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1)
  1867. if Debounces.on == false then break end
  1868. wait()
  1869. end
  1870. if Debounces.CanAttack == false then
  1871. Debounces.CanAttack = true
  1872. Debounces.on = false
  1873. Debounces.NoIdl = false
  1874. end
  1875. end
  1876. end
  1877. end)
  1878. ----------------------------------------------------
  1879. mouse.KeyDown:connect(function(key)
  1880. if key == "e" then
  1881. larm.BrickColor = BrickColor.new("Bright red")
  1882. rarm.BrickColor = BrickColor.new("Bright red")
  1883. if Debounces.CanAttack == true then
  1884. Debounces.CanAttack = false
  1885. Debounces.on = true
  1886. Debounces.NoIdl = true
  1887. for i = 1, 18 do
  1888. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.7, 0) * CFrame.Angles(math.rad(90),math.rad(50),math.rad(90)), 0.4)
  1889. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4)
  1890. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  1891. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4)
  1892. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4)
  1893. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4)
  1894. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  1895. if Debounces.on == false then break end
  1896. wait()
  1897. end
  1898. local HandCF = CFrame.new(char.Absolution.Handle.Position - Vector3.new(0,8.8,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1899. local rng = Instance.new("Part", char.Absolution.Handle)
  1900. rng.Anchored = true
  1901. rng.BrickColor = BrickColor.new("White")
  1902. rng.CanCollide = true
  1903. rng.FormFactor = 3
  1904. rng.Name = "Ring"
  1905. rng.Size = Vector3.new(1, 1, 1)
  1906. rng.CanCollide = false
  1907. rng.Transparency = 0.35
  1908. rng.TopSurface = 0
  1909. rng.BottomSurface = 0
  1910. rng.CFrame = HandCF
  1911. local rngm = Instance.new("SpecialMesh", rng)
  1912. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1913. rngm.Scale = Vector3.new(1, 1, 2)
  1914. x = Instance.new("Sound", hed)
  1915. x.SoundId = "http://www.roblox.com/asset/?id=169445602"
  1916. x.Looped = false
  1917. x.Pitch = .7
  1918. x.Volume = 1
  1919. x1 = Instance.new("Sound", hed)
  1920. x1.SoundId = "http://www.roblox.com/asset/?id=169445602"
  1921. x1.Looped = false
  1922. x1.Pitch = .7
  1923. x1.Volume = 1
  1924. x:Play()
  1925. x1:Play()
  1926. rngto = rng.Touched:connect(function(ht)
  1927. hit = ht.Parent
  1928. if ht and hit:IsA("Model") then
  1929. if hit:FindFirstChild("Humanoid") then
  1930. if hit.Name ~= p.Name then
  1931. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1932. Debounces.Slashed = true]]--
  1933. hit:FindFirstChild("Humanoid"):TakeDamage(4)
  1934. hit:FindFirstChild("Humanoid").PlatformStand = true
  1935. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120
  1936. --Debounces.Slashed = false
  1937. --end
  1938. end
  1939. end
  1940. elseif ht and hit:IsA("Hat") then
  1941. if hit.Parent.Name ~= p.Name then
  1942. if hit.Parent:FindFirstChild("Humanoid") then
  1943. --[[ if Debounces.Slashing == true and Debounces.Slashed == false then
  1944. Debounces.Slashed = true]]--
  1945. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(4)
  1946. hit:FindFirstChild("Humanoid").PlatformStand = true
  1947. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -120
  1948. --Debounces.Slashed = false
  1949. end
  1950. end
  1951. end
  1952. end)
  1953. coroutine.wrap(function()
  1954. for i = 1, 60, 2 do
  1955. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  1956. rng.Size = rngm.Scale
  1957. rng.CFrame = HandCF
  1958. rng.Transparency = i/60
  1959. wait()
  1960. end
  1961. wait()
  1962. rng:Destroy()
  1963. end)()
  1964. for i = 1, 18 do
  1965. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.4)
  1966. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.4)
  1967. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  1968. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.4)
  1969. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.4)
  1970. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4)
  1971. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, 0.2) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  1972. if Debounces.on == false then break end
  1973. wait()
  1974. end
  1975. larm.BrickColor = BrickColor.new("White")
  1976. rarm.BrickColor = BrickColor.new("White")
  1977. x:Destroy()
  1978. x1:Destroy()
  1979. if Debounces.CanAttack == false then
  1980. Debounces.CanAttack = true
  1981. Debounces.on = false
  1982. Debounces.NoIdl = false
  1983. end
  1984. end
  1985. end
  1986. end)
  1987. ----------------------------------------------------
  1988. mouse.KeyDown:connect(function(key)
  1989. if key == "y" then
  1990. if Debounces.CanAttack == true then
  1991. Debounces.CanAttack = false
  1992. Debounces.on = true
  1993. Debounces.NoIdl = true
  1994. for i = 1, 15 do
  1995. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2)
  1996. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.2)
  1997. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2)
  1998. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.2)
  1999. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  2000. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  2001. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2002. if Debounces.on == false then break end
  2003. wait()
  2004. end
  2005. x = Instance.new("Sound",char)
  2006. x.SoundId = "rbxassetid://228343271"
  2007. x.Pitch = 1
  2008. x.Volume = .8
  2009. wait(.1)
  2010. x:Play()
  2011. Debounces.on = false
  2012. Debounces.Here = false
  2013. shot = shot + 1
  2014. local rng = Instance.new("Part", char)
  2015. rng.Anchored = true
  2016. rng.BrickColor = BrickColor.new("White")
  2017. rng.CanCollide = false
  2018. rng.FormFactor = 3
  2019. rng.Name = "Ring"
  2020. rng.Size = Vector3.new(1, 1, 1)
  2021. rng.Transparency = 0.35
  2022. rng.TopSurface = 0
  2023. rng.BottomSurface = 0
  2024. rng2 = rng:clone()
  2025. rng3 = rng2:clone()
  2026. rng4 = rng2:clone()
  2027. local rngm = Instance.new("SpecialMesh", rng)
  2028. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2029. rngm.Scale = Vector3.new(10, 10, 1)
  2030. rngm2 = rngm:clone()
  2031. rngm2.Scale = Vector3.new(5, 5, 1)
  2032. rngm3=rngm2:clone()
  2033. rngm3.Parent = rng3
  2034. rngm3.Scale = Vector3.new(8, 8, 1)
  2035. rngm4 = rngm2:clone()
  2036. rngm4.Parent = rng4
  2037. rngm4.Scale = Vector3.new(6, 6, 1)
  2038. local bem = Instance.new("Part", char)
  2039. bem.Anchored = true
  2040. bem.BrickColor = BrickColor.new("White")
  2041. bem.CanCollide = false
  2042. bem.FormFactor = 3
  2043. bem.Name = "Beam" .. shot
  2044. bem.Size = Vector3.new(1, 1, 1)
  2045. bem.Transparency = 0.35
  2046. bem.TopSurface = 0
  2047. bem.BottomSurface = 0
  2048. local bemm = Instance.new("SpecialMesh", bem)
  2049. bemm.MeshType = 4
  2050. bemm.Scale = Vector3.new(1, 4, 4)
  2051. local out = Instance.new("Part", char)
  2052. out.Anchored = true
  2053. out.BrickColor = BrickColor.new("White")
  2054. out.CanCollide = false
  2055. out.FormFactor = 3
  2056. out.Name = "Out"
  2057. out.Size = Vector3.new(4, 4, 4)
  2058. out.Transparency = 0.35
  2059. out.TopSurface = 0
  2060. out.BottomSurface = 0
  2061. local outm = Instance.new("SpecialMesh", out)
  2062. outm.MeshId = "http://www.roblox.com/asset/?id=1033714"
  2063. outm.Scale = Vector3.new(4, 4, 4)
  2064. local bnd = Instance.new("Part", char)
  2065. bnd.Anchored = true
  2066. bnd.BrickColor = BrickColor.new("White")
  2067. bnd.CanCollide = false
  2068. bnd.FormFactor = 3
  2069. bnd.Name = "Bend"
  2070. bnd.Size = Vector3.new(1, 1, 1)
  2071. bnd.Transparency = 1
  2072. bnd.TopSurface = 0
  2073. bnd.BottomSurface = 0
  2074. local bndm = Instance.new("SpecialMesh", bnd)
  2075. bndm.MeshType = 3
  2076. bndm.Scale = Vector3.new(8, 8, 8)
  2077. out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0)
  2078. bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90))
  2079. bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0)
  2080. rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  2081. rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0)
  2082. rng4.CFrame = rng3.CFrame * CFrame.new(0, -.5, 0)
  2083. Debounces.Shewt = true
  2084. coroutine.wrap(function()
  2085. for i = 1, 20, 0.2 do
  2086. rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  2087. rngm3.Scale = Vector3.new(8 + i*2, 8 + i*2, 1)
  2088. rngm4.Scale = Vector3.new(6 + i*2, 6 + i*2, 1)
  2089. rng.Transparency = i/20
  2090. rng3.Transparency = 1/16
  2091. rng4.Transparency = i/12
  2092. wait()
  2093. end
  2094. wait()
  2095. rng:Destroy()
  2096. end)()
  2097. if Debounces.Shewt == true then
  2098. char:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
  2099. hit = ht.Parent
  2100. if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
  2101. if HasntTouched(hit.Name) == true and deb == false then
  2102. deb = true
  2103. coroutine.wrap(function()
  2104. hit:FindFirstChild("Humanoid").PlatformStand = true
  2105. hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
  2106. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
  2107. end)()
  2108. table.insert(Touche, hit.Name)
  2109. deb = false
  2110. end
  2111. elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
  2112. if HasntTouched(hit.Parent.Name) == true and deb == false then
  2113. deb = true
  2114. coroutine.wrap(function()
  2115. hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  2116. hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
  2117. wait(1)
  2118. hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
  2119. end)()
  2120. table.insert(Touche, hit.Parent.Name)
  2121. deb = false
  2122. for i, v in pairs(Touche) do
  2123. print(v)
  2124. end
  2125. end
  2126. end
  2127. end)
  2128. end
  2129. for i = 0, 260, 8 do
  2130. bem.Size = Vector3.new(i, 2, 2)
  2131. bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90))
  2132. bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2)
  2133. bnd.Size = Vector3.new(1,1,1)
  2134. bndm.Scale = Vector3.new(8,8,8)
  2135. if i % 10 == 0 then
  2136. local newRng = rng2:Clone()
  2137. newRng.Parent = char
  2138. newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0)
  2139. local newRngm = rngm2:clone()
  2140. newRngm.Parent=newRng
  2141. coroutine.wrap(function()
  2142. for i = 1, 10, 0.2 do
  2143. newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 1)
  2144. newRng.Transparency = i/10
  2145. wait()
  2146. end
  2147. wait()
  2148. newRng:Destroy()
  2149. end)()
  2150. end
  2151. wait()
  2152. end
  2153. wait()
  2154. Debounces.Shewt = false
  2155. bem:Destroy()
  2156. out:Destroy()
  2157. bnd:Destroy()
  2158. Debounces.Ready = false
  2159. for i, v in pairs(Touche) do
  2160. table.remove(Touche, i)
  2161. end
  2162. wait()
  2163. table.insert(Touche, char.Name)
  2164. Debounces.NoIdl = false
  2165. if Debounces.CanAttack == false then
  2166. Debounces.CanAttack = true
  2167. end
  2168. end
  2169. end
  2170. end)
  2171. ----------------------------------------------------
  2172. sidz = {"231917888", "231917845", "231917806"}
  2173. ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1}
  2174. mouse.KeyDown:connect(function(key)
  2175. if key == "f" then
  2176. larm.BrickColor = BrickColor.new("Bright red")
  2177. rarm.BrickColor = BrickColor.new("Bright red")
  2178. if Debounces.CanAttack == true then
  2179. Debounces.CanAttack = false
  2180. Debounces.on = true
  2181. Debounces.NoIdl = true
  2182. for i = 1, 10 do
  2183. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.4)
  2184. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.4)
  2185. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4)
  2186. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4)
  2187. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2188. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2189. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2190. if Debounces.on == false then break end
  2191. wait()
  2192. end
  2193. z = Instance.new("Sound",char)
  2194. z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)]
  2195. z.Pitch = ptz[math.random(1,#ptz)]
  2196. z.Volume = 1
  2197. z1 = Instance.new("Sound",char)
  2198. z1.SoundId = z.SoundId
  2199. z1.Pitch = z.Pitch
  2200. z1.Volume = 1
  2201. wait(1)
  2202. z:Play()
  2203. z1:Play()
  2204. Stomp()
  2205. for i = 1, 20 do
  2206. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.6)
  2207. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.6)
  2208. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6)
  2209. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.6)
  2210. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6)
  2211. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.8, -1.4) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.6)
  2212. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2213. if Debounces.on == false then break end
  2214. wait()
  2215. end
  2216. if Debounces.CanAttack == false then
  2217. Debounces.CanAttack = true
  2218. Debounces.on = false
  2219. Debounces.NoIdl = false
  2220. larm.BrickColor = BrickColor.new("White")
  2221. rarm.BrickColor = BrickColor.new("White")
  2222. end
  2223. end
  2224. end
  2225. end)
  2226. ----------------------------------------------------
  2227. mouse.KeyDown:connect(function(key)
  2228. if key == "g" then
  2229. larm.BrickColor = BrickColor.new("Bright red")
  2230. rarm.BrickColor = BrickColor.new("Bright red")
  2231. if Debounces.CanAttack == true then
  2232. Debounces.CanAttack = false
  2233. Debounces.on = true
  2234. Debounces.NoIdl = true
  2235. chrg = lleg.Touched:connect(function(ht)
  2236. hit = ht.Parent
  2237. if ht and hit:IsA("Model") then
  2238. if hit:FindFirstChild("Humanoid") then
  2239. if hit.Name ~= p.Name then
  2240. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  2241. Debounces.Slashed = true]]--
  2242. hit:FindFirstChild("Humanoid"):TakeDamage(2)
  2243. hit:FindFirstChild("Humanoid").PlatformStand = true
  2244. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  2245. --Debounces.Slashed = false
  2246. --end
  2247. end
  2248. end
  2249. elseif ht and hit:IsA("Hat") then
  2250. if hit.Parent.Name ~= p.Name then
  2251. if hit.Parent:FindFirstChild("Humanoid") then
  2252. --[[ if Debounces.Slashing == true and Debounces.Slashed == false then
  2253. Debounces.Slashed = true]]--
  2254. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
  2255. hit:FindFirstChild("Humanoid").PlatformStand = true
  2256. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  2257. --Debounces.Slashed = false
  2258. end
  2259. end
  2260. end
  2261. end)
  2262. for i = 1, 14 do
  2263. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.5)
  2264. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.5)
  2265. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.2)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.5)
  2266. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5)
  2267. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.8, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5)
  2268. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5)
  2269. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9)
  2270. if Debounces.on == false then break end
  2271. wait()
  2272. end
  2273. charge()
  2274. z = Instance.new("Sound",char)
  2275. z.SoundId = "rbxassetid://200632875"
  2276. z.Volume = 1
  2277. z.Pitch = .8
  2278. z1 = Instance.new("Sound",char)
  2279. z1.SoundId = "rbxassetid://200632875"
  2280. z1.Volume = 1
  2281. z1.Pitch = .9
  2282. z:Play()
  2283. z1:Play()
  2284. wait(1)
  2285. z:Destroy()
  2286. z1:Destroy()
  2287. chrg:disconnect()
  2288. if Debounces.CanAttack == false then
  2289. Debounces.CanAttack = true
  2290. Debounces.on = false
  2291. Debounces.NoIdl = false
  2292. larm.BrickColor = BrickColor.new("White")
  2293. rarm.BrickColor = BrickColor.new("White")
  2294. end
  2295. end
  2296. end
  2297. end)
  2298. ----------------------------------------------------
  2299. pt = {0.7, 0.8, 0.9}
  2300. mouse.KeyDown:connect(function(key)
  2301. if key == "h" then
  2302. if Debounces.CanJoke == true then
  2303. Debounces.CanJoke = false
  2304. u = Instance.new("Sound")
  2305. u.SoundId = "http://www.roblox.com/asset/?id=138199573"
  2306. u.Parent = char
  2307. u.Looped = false
  2308. u.Pitch = pt[math.random(1,#pt)]
  2309. u.Volume = 1
  2310. u2 = Instance.new("Sound")
  2311. u2.SoundId = "http://www.roblox.com/asset/?id=138199573"
  2312. u2.Parent = char
  2313. u2.Looped = false
  2314. u2.Pitch = u.Pitch
  2315. u2.Volume = 1
  2316. wait(.01)
  2317. u:Play()
  2318. u2:Play()
  2319. wait(6)
  2320. u:Destroy()
  2321. u2:Destroy()
  2322. if Debounces.CanJoke == false then
  2323. Debounces.CanJoke = true
  2324. end
  2325. end
  2326. end
  2327. end)
  2328. ----------------------------------------------------
  2329. mouse.KeyDown:connect(function(key)
  2330. if key == "j" then
  2331. if Debounces.CanJoke == true then
  2332. Debounces.CanJoke = false
  2333. z = Instance.new("Sound",char)
  2334. z.SoundId = "rbxassetid://135017755"
  2335. z.Pitch = .76
  2336. z.Volume = 1
  2337. wait()
  2338. z:Play()
  2339. wait(6)
  2340. z:Destroy()
  2341. if Debounces.CanJoke == false then
  2342. Debounces.CanJoke = true
  2343. end
  2344. end
  2345. end
  2346. end)
  2347. ----------------------------------------------------
  2348. mouse.KeyDown:connect(function(key)
  2349. if key == "k" then
  2350. if Debounces.CanJoke == true then
  2351. Debounces.CanJoke = false
  2352. z = Instance.new("Sound",char)
  2353. z.SoundId = "rbxassetid://135017578"
  2354. z.Pitch = .76
  2355. z.Volume = 1
  2356. wait()
  2357. z:Play()
  2358. wait(4)
  2359. z:Destroy()
  2360. if Debounces.CanJoke == false then
  2361. Debounces.CanJoke = true
  2362. end
  2363. end
  2364. end
  2365. end)
  2366. ----------------------------------------------------
  2367. mouse.KeyDown:connect(function(key)
  2368. if key == "x" then
  2369. if Debounces.CanAttack == true then
  2370. Debounces.CanAttack = false
  2371. Debounces.NoIdl = true
  2372. Debounces.on = true
  2373. Debounces.ks = true
  2374. for i = 1, 10 do
  2375. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
  2376. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.6)
  2377. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6)
  2378. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.6)
  2379. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.6)
  2380. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.7, .6) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6)
  2381. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2382. if Debounces.on == false then break end
  2383. wait()
  2384. end
  2385. z = Instance.new("Sound",hed)
  2386. z.SoundId = "rbxassetid://169445092"
  2387. z.Volume = 1
  2388. wait(0.1)
  2389. z:Play()
  2390. kik = rleg.Touched:connect(function(ht)
  2391. hit = ht.Parent
  2392. if ht and hit:IsA("Model") then
  2393. if hit:FindFirstChild("Humanoid") then
  2394. if hit.Name ~= p.Name then
  2395. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  2396. Debounces.Slashed = true]]--
  2397. if Debounces.ks==true then
  2398. z = Instance.new("Sound",hed)
  2399. z.SoundId = "rbxassetid://169380525"
  2400. z.Volume = 1
  2401. z:Play()
  2402. Debounces.ks=false
  2403. end
  2404. hit:FindFirstChild("Humanoid"):TakeDamage(2)
  2405. hit:FindFirstChild("Humanoid").PlatformStand = true
  2406. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  2407. --Debounces.Slashed = false
  2408. --end
  2409. end
  2410. end
  2411. elseif ht and hit:IsA("Hat") then
  2412. if hit.Parent.Name ~= p.Name then
  2413. if hit.Parent:FindFirstChild("Humanoid") then
  2414. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  2415. Debounces.Slashed = true]]--
  2416. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
  2417. hit:FindFirstChild("Humanoid").PlatformStand = true
  2418. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
  2419. --Debounces.Slashed = false
  2420. --end
  2421. end
  2422. end
  2423. end
  2424. end)
  2425. for i = 1, 8 do
  2426. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2427. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.7)
  2428. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,.2)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.7)
  2429. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.7)
  2430. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
  2431. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2.6, -1.4) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.7)
  2432. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2433. if Debounces.on == false then break end
  2434. wait()
  2435. end
  2436. kik:disconnect()
  2437. if Debounces.CanAttack == false then
  2438. Debounces.CanAttack = true
  2439. Debounces.on = false
  2440. Debounces.NoIdl = false
  2441. end
  2442. end
  2443. end
  2444. end)
  2445. ----------------------------------------------------
  2446. mouse.KeyDown:connect(function(key)
  2447. if key == "c" then
  2448. if Debounces.CanAttack == true then
  2449. Debounces.CanAttack = false
  2450. Debounces.NoIdl = true
  2451. Debounces.on = true
  2452. SIDZ = {"231917744", "231917742"}
  2453. PTZ = {0.7, 0.8, 0.9, 1}
  2454. for i = 1, 20 do
  2455. wait()
  2456. for i,v in pairs(char.Absolution:children()) do
  2457. if v:IsA("Part") or v:IsA("WedgePart") then
  2458. v.Transparency = v.Transparency + 0.05
  2459. end
  2460. end
  2461. end
  2462. function FindNearestTorso(Position,Distance,SinglePlayer)
  2463. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  2464. local List = {}
  2465. for i,v in pairs(workspace:GetChildren())do
  2466. if v:IsA("Model")then
  2467. if v:findFirstChild("Torso")then
  2468. if v ~= char then
  2469. if(v.Torso.Position -Position).magnitude <= Distance then
  2470. table.insert(List,v)
  2471. end
  2472. end
  2473. end
  2474. end
  2475. end
  2476. return List
  2477. end
  2478. GroundPound()
  2479. for i = 1, 5 do
  2480. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2481. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2482. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2483. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2484. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2485. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2486. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2487. if Debounces.on == false then break end
  2488. wait()
  2489. end
  2490. GroundPound()
  2491. for i = 1, 5 do
  2492. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2493. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2494. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2495. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2496. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2497. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2498. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2499. if Debounces.on == false then break end
  2500. wait()
  2501. end
  2502. GroundPound()
  2503. for i = 1, 5 do
  2504. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2505. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2506. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2507. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2508. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2509. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2510. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2511. if Debounces.on == false then break end
  2512. wait()
  2513. end
  2514. GroundPound()
  2515. for i = 1, 5 do
  2516. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2517. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2518. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2519. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2520. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2521. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2522. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2523. if Debounces.on == false then break end
  2524. wait()
  2525. end
  2526. GroundPound()
  2527. for i = 1, 5 do
  2528. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2529. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2530. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2531. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2532. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2533. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2534. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2535. if Debounces.on == false then break end
  2536. wait()
  2537. end
  2538. GroundPound()
  2539. for i = 1, 5 do
  2540. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2541. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2542. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2543. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2544. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2545. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2546. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2547. if Debounces.on == false then break end
  2548. wait()
  2549. end
  2550. for i = 1, 18 do
  2551. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4)
  2552. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4)
  2553. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4)
  2554. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4)
  2555. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2556. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  2557. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2558. if Debounces.on == false then break end
  2559. wait()
  2560. end
  2561. for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do
  2562. if v:FindFirstChild('Humanoid') then
  2563. v.Humanoid:TakeDamage(math.random(20,60))
  2564. v.Humanoid.PlatformStand = true
  2565. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  2566. end
  2567. end
  2568. x = Instance.new("Sound",char)
  2569. x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)]
  2570. x.Pitch = PTZ[math.random(1,#PTZ)]
  2571. x.Volume = 1
  2572. wait(0.1)
  2573. x:Play()
  2574. Crater(hed,20)
  2575. for i = 1, 14 do
  2576. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6)
  2577. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6)
  2578. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6)
  2579. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6)
  2580. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
  2581. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
  2582. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.5, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2583. if Debounces.on == false then break end
  2584. wait()
  2585. end
  2586. if Debounces.CanAttack == false then
  2587. Debounces.CanAttack = true
  2588. Debounces.on = false
  2589. Debounces.NoIdl = false
  2590. for i = 1, 20 do
  2591. wait()
  2592. for i,v in pairs(char.Absolution:children()) do
  2593. if v:IsA("Part") or v:IsA("WedgePart") then
  2594. v.Transparency = v.Transparency - 0.05
  2595. end
  2596. end
  2597. end
  2598. end
  2599. end
  2600. end
  2601. end)
  2602. ----------------------------------------------------176349813
  2603. mouse.KeyDown:connect(function(key)
  2604. if key == "b" then
  2605. hum.WalkSpeed = 0.01
  2606. if Debounces.CanAttack == true then
  2607. Debounces.CanAttack = false
  2608. Debounces.NoIdl = true
  2609. Debounces.on = true
  2610. for i = 1,20 do
  2611. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1)
  2612. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1)
  2613. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1)
  2614. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1)
  2615. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(-5)), 0.1)
  2616. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles (math.rad(30), 0, math.rad(5)), 0.1)
  2617. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2618. if Debounces.on == false then break end
  2619. wait()
  2620. end
  2621. wait(1)
  2622. v = Instance.new("Sound")
  2623. v.SoundId = "rbxassetid://181384451"
  2624. v.Parent = char
  2625. v.Looped = false
  2626. v.Pitch = 1.04
  2627. v.Volume = 1
  2628. wait(.01)
  2629. v:Play()
  2630.  
  2631. if Daytime == true then
  2632. Daytime = false
  2633. l.TimeOfDay = 24
  2634. else
  2635. Daytime = true
  2636. l.TimeOfDay = 12
  2637. l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039)
  2638. end
  2639.  
  2640. local Shockwave = function()
  2641. local rng1 = Instance.new("Part", char)
  2642. rng1.Anchored = true
  2643. rng1.BrickColor = BrickColor.new("White")
  2644. rng1.CanCollide = false
  2645. rng1.FormFactor = 3
  2646. rng1.Name = "Ring"
  2647. rng1.Size = Vector3.new(1, 1, 1)
  2648. rng1.Transparency = 0.35
  2649. rng1.TopSurface = 0
  2650. rng1.BottomSurface = 0
  2651. local rngm1 = Instance.new("SpecialMesh", rng)
  2652. rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2653. rngm1.Scale = Vector3.new(10, 10, 1)
  2654. rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0)
  2655. local Wave = Instance.new("Part", game.Workspace--[[?]])
  2656. Wave.Name = "Shockwave"
  2657. Wave.BrickColor = BrickColor.new("White")
  2658. Wave.Size = Vector3.new(1, 1, 1)
  2659. Wave.Shape = "Ball"
  2660. Wave.CanCollide = false
  2661. Wave.Anchored = true
  2662. Wave.TopSurface = 0
  2663. Wave.BottomSurface = 0
  2664. Wave.Touched:connect(function(hit)
  2665. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  2666. local Occlude = true
  2667. local NotOccludes = {
  2668. char.Name;
  2669. "Wings";
  2670. "Scythe";
  2671. "Thingy";
  2672. "Thingy2"; -- put all of the names in a table pls
  2673. }
  2674. for i,v in pairs(NotOccludes) do
  2675. if hit.Parent.Name == v then
  2676. Occlude = false
  2677. end
  2678. end
  2679. --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then
  2680. if Occlude then
  2681. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
  2682. hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
  2683. end
  2684. end
  2685. end)
  2686.  
  2687. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  2688.  
  2689. coroutine.wrap(function()
  2690. for i = 1, 20, 0.2 do
  2691. rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  2692. rng1.Transparency = i/20
  2693. wait()
  2694. end
  2695. wait()
  2696. rng1:Destroy()
  2697. end)()
  2698.  
  2699. Delay(0, function()
  2700.  
  2701. if Daytime == false then
  2702. for i = 1, 50, 1 do
  2703. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  2704. Wave.CFrame = char.Torso.CFrame
  2705. local t = i / 50
  2706. Wave.Transparency = t
  2707. wait()
  2708. end
  2709. else
  2710. for i = 1, 50, 1 do
  2711. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  2712. Wave.CFrame = char.Torso.CFrame
  2713. local t = i / 50
  2714. Wave.Transparency = t
  2715. wait()
  2716. end
  2717. end
  2718. Wave:Destroy()
  2719. end)
  2720. Delay(0, function()
  2721. while wait() do
  2722. if Wave ~= nil then
  2723. Wave.CFrame = char.Torso.CFrame
  2724. else
  2725. break
  2726. end
  2727. end
  2728. end)
  2729. end
  2730. Shockwave()
  2731. for i = 1, 15 do
  2732. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2)
  2733. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2)
  2734. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1)
  2735. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2)
  2736. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1)
  2737. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2738. if Debounces.on == false then break end
  2739. wait()
  2740. end
  2741. for i = 1, 15 do
  2742. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2)
  2743. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2)
  2744. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1)
  2745. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2)
  2746. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2747. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1)
  2748. if Debounces.on == false then break end
  2749. wait()
  2750. end
  2751. for i = 1, 15 do
  2752. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2)
  2753. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2)
  2754. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1)
  2755. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2)
  2756. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1)
  2757. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2758. if Debounces.on == false then break end
  2759. wait()
  2760. end
  2761. for i = 1, 15 do
  2762. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2)
  2763. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2)
  2764. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1)
  2765. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2)
  2766. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2767. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1)
  2768. if Debounces.on == false then break end
  2769. wait()
  2770. end
  2771. for i = 1, 15 do
  2772. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2)
  2773. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2)
  2774. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1)
  2775. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2)
  2776. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1)
  2777. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2778. if Debounces.on == false then break end
  2779. wait()
  2780. end
  2781. for i = 1, 15 do
  2782. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2)
  2783. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2)
  2784. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1)
  2785. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2)
  2786. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1)
  2787. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1)
  2788. if Debounces.on == false then break end
  2789. wait()
  2790. end
  2791. wait(1.4)
  2792. Debounces.NoIdl = false
  2793. hum.WalkSpeed = 5
  2794. Debounces.on = false
  2795. wait()
  2796. if Debounces.CanAttack == false then
  2797. Debounces.CanAttack = true
  2798. v:Destroy()
  2799. end
  2800. end
  2801. end
  2802. end)
  2803. ----------------------------------------------------
  2804. mouse.KeyDown:connect(function(key)
  2805. if key == "m" then
  2806. hum.WalkSpeed = 0
  2807. if Debounces.CanAttack == true then
  2808. Debounces.CanAttack = false
  2809. Debounces.on = true
  2810. Debounces.NoIdl = true
  2811. --[[x = Instance.new("Sound",char)
  2812. x.SoundId = "http://www.roblox.com/asset/?id=169445572"
  2813. x.Looped = false
  2814. x.Pitch = 1.1
  2815. x.Volume = 1
  2816. x:Play()
  2817. x2 = Instance.new("Sound",char)
  2818. x2.SoundId = "http://www.roblox.com/asset/?id=169380495"
  2819. x2.Looped = false
  2820. x2.Pitch = .7
  2821. x2.Volume = 1
  2822. wait(.1)
  2823. x:Play()
  2824. x2:Play()
  2825. for i = 1, 20 do
  2826. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2)
  2827. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2)
  2828. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2)
  2829. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2)
  2830. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2)
  2831. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2)
  2832. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.4)
  2833. if Debounces.on == false then break end
  2834. wait()
  2835. x:Destroy()
  2836. x2:Destroy()
  2837. end
  2838. wait(1)]]--
  2839. local rng = Instance.new("Part", char)
  2840. rng.Anchored = true
  2841. rng.BrickColor = BrickColor.new("White")
  2842. rng.CanCollide = false
  2843. rng.FormFactor = 3
  2844. rng.Name = "Ring"
  2845. rng.Size = Vector3.new(1, 1, 1)
  2846. rng.Transparency = 0.35
  2847. rng.TopSurface = 0
  2848. rng.BottomSurface = 0
  2849. rng.Position = torso.Position - Vector3.new(0,2,0)
  2850. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2851. local rngm = Instance.new("SpecialMesh", rng)
  2852. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2853. rngm.Scale = Vector3.new(1, 1, 2)
  2854. x = Instance.new("Sound",char)
  2855. x.SoundId = "http://www.roblox.com/asset/?id=169445602"
  2856. x.Looped = false
  2857. x.Pitch = .7
  2858. x.Volume = 1
  2859. x:Play()
  2860. coroutine.wrap(function()
  2861. for i = 1, 60, 2 do
  2862. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  2863. rng.Transparency = i/60
  2864. wait()
  2865. end
  2866. wait()
  2867. rng:Destroy()
  2868. end)()
  2869. hum.WalkSpeed = 50
  2870. BV = Instance.new("BodyVelocity", torso)
  2871. BV.maxForce = Vector3.new(0,200000,0)
  2872. BV.P = 100000
  2873. BV.velocity = Vector3.new(0,800,0)
  2874. for i = 1, 20 do
  2875. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
  2876. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
  2877. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
  2878. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
  2879. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
  2880. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, 0, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
  2881. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2882. if Debounces.on == false then break end
  2883. wait()
  2884. end
  2885. x:Destroy()
  2886. BV:Destroy()
  2887. --[[for i = 1, 30 do
  2888. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3)
  2889. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3)
  2890. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  2891. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2892. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  2893. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  2894. if Debounces.on == false then break end
  2895. wait()
  2896. end]]--
  2897. if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
  2898. for i = 1, 30 do
  2899. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3)
  2900. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2901. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  2902. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  2903. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2904. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2905. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  2906. if Debounces.on == false then break end
  2907. wait()
  2908. end
  2909. end
  2910. Debounces.on = false
  2911. Debounces.NoIdl = false
  2912. local ry,ht,ps=nil,nil,nil
  2913. while ht==nil do
  2914. ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
  2915. wait()
  2916. end
  2917. z = Instance.new("Sound",char)
  2918. z.SoundId = "rbxassetid://142070127"
  2919. z.Volume = 1
  2920. wait(.1)
  2921. z:Play()
  2922. Landing()
  2923. hum.WalkSpeed = 8
  2924. if Debounces.CanAttack == false then
  2925. Debounces.CanAttack = true
  2926. end
  2927. end
  2928. end
  2929. end)
  2930. ----------------------------------------------------
  2931. Grab = false
  2932. mouse.KeyDown:connect(function(key)
  2933. if key == "z" then
  2934. larm.BrickColor = BrickColor.new("Bright red")
  2935. rarm.BrickColor = BrickColor.new("Bright red")
  2936. Debounces.on = true
  2937. Debounces.NoIdl = true
  2938. if Grab == false then
  2939. gp = nil
  2940. con1=larm.Touched:connect(function(hit) -- this is grab
  2941. ht = hit.Parent
  2942. hum1=ht:FindFirstChild('Humanoid')
  2943. if hum1 ~= nil then
  2944. hum1.PlatformStand=true
  2945. gp = ht
  2946. Grab = true
  2947. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0))
  2948. asd.Parent = larm
  2949. asd.Name = "asd"
  2950. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  2951. elseif hum1 == nil then
  2952. con1:disconnect()
  2953. wait() return
  2954. end
  2955. end)
  2956. for i = 1, 18 do
  2957. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2)
  2958. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  2959. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  2960. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2)
  2961. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  2962. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  2963. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.9)
  2964. if Debounces.on == false then break end
  2965. wait()
  2966. end
  2967. con1:disconnect()
  2968. Debounces.on = false
  2969. Debounces.NoIdl = false
  2970. elseif Grab == true then
  2971. Grab = false
  2972. for i = 1, 20 do
  2973. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2)
  2974. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1)
  2975. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  2976. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  2977. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  2978. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  2979. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  2980. if Debounces.on == false then end
  2981. wait()
  2982. end
  2983. if gp ~= nil then
  2984. for i,v in pairs(larm:GetChildren()) do
  2985. if v.Name == "asd" and v:IsA("Weld") then
  2986. v:Remove()
  2987. end
  2988. end
  2989. bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  2990. bv.maxForce = Vector3.new(400000, 400000, 400000)
  2991. bv.P = 125000
  2992. bv.velocity = char.Head.CFrame.lookVector * 200
  2993. for i = 1, 12 do
  2994. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5)
  2995. if Debounces.on == false then end
  2996. wait()
  2997. end
  2998. ht=nil
  2999. Spawn(function()
  3000. wait(0.5)
  3001. bv:Destroy()
  3002. end)
  3003. Debounces.on = false
  3004. Debounces.NoIdl = false
  3005. elseif ht == nil then wait()
  3006. Grab = false
  3007. Debounces.on = false
  3008. Debounces.NoIdl = false
  3009. end
  3010. end
  3011. end
  3012. end)
  3013. ----------------------------------------------------
  3014. mouse.KeyDown:connect(function(key)
  3015. if string.byte(key) == 52 then
  3016. char.Humanoid.WalkSpeed = 21
  3017. end
  3018. end)
  3019. mouse.KeyUp:connect(function(key)
  3020. if string.byte(key) == 52 then
  3021. char.Humanoid.WalkSpeed = 5
  3022. end
  3023. end)
  3024. ----------------------------------------------------
  3025. local animpose = "Idle"
  3026. local lastanimpose = "Idle"
  3027. local sine = 0
  3028. local change = 1
  3029. local val = 0
  3030. local ffing = false
  3031. ----------------------------------------------------
  3032. --[[x = Instance.new("Sound", char)
  3033. x.SoundId = "http://www.roblox.com/asset/?id=187922823"
  3034. x.Looped = true
  3035. x.Volume = 1
  3036. x.Pitch = 1
  3037. local footsteps = false]]--
  3038. -------------------------------
  3039. game:GetService("RunService").RenderStepped:connect(function(got)
  3040. --[[if char.Humanoid.Jump == true then
  3041. jump = true
  3042. else
  3043. jump = false
  3044. end]]
  3045. char.Humanoid.FreeFalling:connect(function(f)
  3046. if f then
  3047. ffing = true
  3048. else
  3049. ffing = false
  3050. end
  3051. end)
  3052. sine = sine + change
  3053. if jumpn == true then
  3054. animpose = "Jumping"
  3055. elseif ffing == true then
  3056. animpose = "Freefalling"
  3057. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  3058. animpose = "Idle"
  3059. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  3060. animpose = "Walking"
  3061. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  3062. animpose = "Running"
  3063. end
  3064. if animpose ~= lastanimpose then
  3065. sine = 0
  3066. if Debounces.NoIdl == false then
  3067. if animpose == "Idle" then
  3068. for i = 1, 2 do
  3069. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  3070. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  3071. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  3072. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  3073. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  3074. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  3075. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  3076. end
  3077. elseif animpose == "Walking" then
  3078. for i = 1, 2 do
  3079. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  3080. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  3081. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  3082. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  3083. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  3084. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  3085. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  3086. end
  3087. elseif animpose == "Running" then
  3088. for i = 1, 2 do
  3089. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  3090. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  3091. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  3092. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  3093. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  3094. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  3095. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  3096. end
  3097. wait()
  3098. end
  3099. else
  3100. end
  3101. end
  3102. lastanimpose = animpose
  3103. if Debounces.NoIdl == false then
  3104. if animpose == "Idle" then
  3105. if stanceToggle == "Normal" then
  3106. change = 0.5
  3107. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(0),math.rad(20)), 0.2)
  3108. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2)
  3109. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
  3110. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
  3111. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  3112. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  3113. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  3114. elseif stanceToggle == "Sitting" then
  3115. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  3116. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  3117. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  3118. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  3119. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  3120. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  3121. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  3122. end
  3123. elseif animpose == "Walking" then
  3124. if stanceToggle == "Normal" then
  3125. change = 1
  3126. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(90+2*math.cos(sine/7)), math.rad(0), math.rad(20)), 0.2)
  3127. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.2)
  3128. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2)
  3129. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2)
  3130. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  3131. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  3132. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
  3133. end
  3134. elseif animpose == "Running" then
  3135. change = 1
  3136. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2)
  3137. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2)
  3138. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  3139. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  3140. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  3141. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  3142. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.85, -.9) * CFrame.Angles(math.rad(-90), math.rad(-90), math.rad(0)), 1)
  3143. end
  3144. end
  3145. --[[if animpose == "Walking" then
  3146. if footsteps == false then
  3147. x:Play()
  3148. footsteps = true
  3149. end
  3150. x.Pitch = 1.1
  3151. elseif animpose == "Idle" then
  3152. x:Stop()
  3153. footsteps = false
  3154. elseif animpose == "Running" then
  3155. x.Pitch = 1.2
  3156. if footsteps == false then
  3157. x:Play()
  3158. footsteps = true
  3159. end
  3160. local player = game:service("Players").LocalPlayer
  3161. local mouse = player:GetMouse()
  3162. local cam = workspace.CurrentCamera
  3163. local char = player.Character
  3164. local Torsoz = char:findFirstChild("Torso")
  3165. local RA = char:findFirstChild("Right Arm")
  3166. local LA = char:findFirstChild("Left Arm")
  3167. local RL = char:findFirstChild("Right Leg")
  3168. local LL = char:findFirstChild("Left Leg")
  3169. local H = char:findFirstChild("Head")
  3170. local Hu = char:findFirstChild("Humanoid")
  3171. local RS = Torsoz:findFirstChild("Right Shoulder")
  3172. local LS = Torsoz:findFirstChild("Left Shoulder")
  3173. local RH = Torsoz:findFirstChild("Right Hip")
  3174. local LH = Torsoz:findFirstChild("Left Hip")
  3175. local N = Torsoz:findFirstChild("Neck")
  3176. local NV = Vector3.new(0,0,0)
  3177. local FOV = 70
  3178. local Shift, Space, Sitting = false,false,false
  3179. local GravPoint = 0
  3180. local Diving = false
  3181. local DivingCooldown = 0
  3182. local DivingDir = NV
  3183. local DivingCF = CFrame.new(0,0,0)
  3184. local DivingBG, DivingBV
  3185. local HWallRunning = false
  3186. local HWRGravDrop = false
  3187. local HWRLastPart
  3188. local HWRCooldown = 0
  3189. local HWRDir
  3190. local VWallRunning = false
  3191. local VWRLastPart
  3192. local VWRCooldown = 0
  3193. local VWRLeft,VWRRight = false,false
  3194. local Sliding = false
  3195. local SlideCooldown = 0
  3196. local Standing = true
  3197. local Action = "Standing"
  3198. local animplus = true
  3199. local animspeed = 0
  3200. local animangle = 0.01
  3201. local Joint1, Joint2, Joint3, Joint4, Joint5
  3202.  
  3203. for i, v in pairs(char:children()) do
  3204. if (v.className == "LocalScript" and v.Name == "ParkourSkrip") or v.className == "NumberValue" or v.className == "BoolValue" or v.className == "Model" or v.Name == "Animate" then
  3205. v:remove()
  3206. end
  3207. end
  3208.  
  3209. local loadids = {112474909, 112474911, 112474909}
  3210.  
  3211. local stamina = 99999
  3212. local maxstamina = 999999
  3213. local defsprint = 28
  3214. local sprint = defsprint
  3215.  
  3216. local pause = Instance.new("BoolValue", char)
  3217. pause.Name = "Pause"
  3218. pause.Value = false
  3219. local flow = Instance.new("NumberValue", char)
  3220. flow.Name = "Flow"
  3221. flow.Value = 0
  3222. local flowcooldown = 0
  3223.  
  3224. local m = Instance.new("Model", char)
  3225. m.Name = "FlowChainPartz"
  3226.  
  3227. local P = Instance.new("Part")
  3228. P.Name = "TrailPart"
  3229. P.formFactor = "Custom"
  3230. P.Size = Vector3.new(0.2,0.2,0.2)
  3231. P.Locked = true
  3232. P.Anchored = true
  3233. P.CanCollide = false
  3234. P.TopSurface = 0
  3235. P.BottomSurface = 0
  3236.  
  3237. script.Name = "ParkourSkrip"
  3238.  
  3239. local hue = 0
  3240.  
  3241. function HSV(H,S,V)
  3242. H = H % 360
  3243. local C = V * S
  3244. local H2 = H/60
  3245. local X = C * (1 - math.abs((H2 %2) -1))
  3246. local color = Color3.new(0,0,0)
  3247. if H2 <= 0 then
  3248. color = Color3.new(C,0,0)
  3249. elseif 0 <= H2 and H2 <= 1 then
  3250. color = Color3.new(C,X,0)
  3251. elseif 1 <= H2 and H2 <= 2 then
  3252. color = Color3.new(X,C,0)
  3253. elseif 2 <= H2 and H2 <= 3 then
  3254. color = Color3.new(0,C,X)
  3255. elseif 3 <= H2 and H2 <= 4 then
  3256. color = Color3.new(0,X,C)
  3257. elseif 4 <= H2 and H2 <= 5 then
  3258. color = Color3.new(X,0,C)
  3259. elseif 5 <= H2 and H2 <= 6 then
  3260. color = Color3.new(C,0,X)
  3261. end
  3262. local m = V - C
  3263. return Color3.new(color.r + m, color.g + m, color.b + m)
  3264. end
  3265.  
  3266. function GetWeld(weld)
  3267. if weld:findFirstChild("XAngle") == nil then
  3268. local a = Instance.new("NumberValue", weld)
  3269. a.Name = "XAngle"
  3270. end
  3271. if weld:findFirstChild("YAngle") == nil then
  3272. local a = Instance.new("NumberValue", weld)
  3273. a.Name = "YAngle"
  3274. end
  3275. if weld:findFirstChild("ZAngle") == nil then
  3276. local a = Instance.new("NumberValue", weld)
  3277. a.Name = "ZAngle"
  3278. end
  3279. return weld.C0.p, Vector3.new(weld.XAngle.Value, weld.YAngle.Value, weld.ZAngle.Value)
  3280. end
  3281.  
  3282. function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle)
  3283. if weld:findFirstChild("XAngle") == nil then
  3284. local a = Instance.new("NumberValue", weld)
  3285. a.Name = "XAngle"
  3286. end
  3287. if weld:findFirstChild("YAngle") == nil then
  3288. local a = Instance.new("NumberValue", weld)
  3289. a.Name = "YAngle"
  3290. end
  3291. if weld:findFirstChild("ZAngle") == nil then
  3292. local a = Instance.new("NumberValue", weld)
  3293. a.Name = "ZAngle"
  3294. end
  3295.  
  3296. local tox,toy,toz = 0,0,0
  3297. if origangle.x > nextangle.x then
  3298. tox = -math.abs(origangle.x - nextangle.x) /loops*i
  3299. else
  3300. tox = math.abs(origangle.x - nextangle.x) /loops*i
  3301. end
  3302. if origangle.y > nextangle.y then
  3303. toy = -math.abs(origangle.y - nextangle.y) /loops*i
  3304. else
  3305. toy = math.abs(origangle.y - nextangle.y) /loops*i
  3306. end
  3307. if origangle.z > nextangle.z then
  3308. toz = -math.abs(origangle.z - nextangle.z) /loops*i
  3309. else
  3310. toz = math.abs(origangle.z - nextangle.z) /loops*i
  3311. end
  3312.  
  3313. local tox2,toy2,toz2 = 0,0,0
  3314. if origpos.x > nextpos.x then
  3315. tox2 = -math.abs(origpos.x - nextpos.x) /loops*i
  3316. else
  3317. tox2 = math.abs(origpos.x - nextpos.x) /loops*i
  3318. end
  3319. if origpos.y > nextpos.y then
  3320. toy2 = -math.abs(origpos.y - nextpos.y) /loops*i
  3321. else
  3322. toy2 = math.abs(origpos.y - nextpos.y) /loops*i
  3323. end
  3324. if origpos.z > nextpos.z then
  3325. toz2 = -math.abs(origpos.z - nextpos.z) /loops*i
  3326. else
  3327. toz2 = math.abs(origpos.z - nextpos.z) /loops*i
  3328. end
  3329.  
  3330. weld.XAngle.Value = origangle.x + tox
  3331. weld.YAngle.Value = origangle.y + toy
  3332. weld.ZAngle.Value = origangle.z + toz
  3333. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  3334. end
  3335.  
  3336. function LoadTextures()
  3337. local pls = game:service("ContentProvider")
  3338. for i, v in pairs(loadids) do
  3339. pls:Preload("http://www.roblox.com/asset/?id="..v)
  3340. wait(0.04)
  3341. end
  3342. end
  3343. LoadTextures()
  3344.  
  3345. function CreateGui()
  3346. for i, v in pairs(player.PlayerGui:children()) do
  3347. if v.className == "ScreenGui" and v.Name == "staminaGui" then
  3348. v:remove()
  3349. end
  3350. end
  3351. local g = Instance.new("ScreenGui", player.PlayerGui)
  3352. g.Name = "staminaGui"
  3353.  
  3354. local c = Instance.new("Frame", g)
  3355. c.Visible = false
  3356. c.Size = UDim2.new(0,86,0,320)
  3357. c.BackgroundTransparency = 1
  3358. c.Position = UDim2.new(1,-96,0.5,-160)
  3359. c.Name = "Container"
  3360.  
  3361. local t = Instance.new("TextLabel", c)
  3362. t.Size = UDim2.new(0,0,-0.1,0)
  3363. t.Position = UDim2.new(0.3,0,0.5,0)
  3364. t.TextXAlignment = "Right"
  3365. t.Font = "ArialBold"
  3366. t.TextTransparency = 0.1
  3367. t.TextColor3 = Color3.new(0,0.6,0.8)
  3368. t.TextStrokeColor3 = Color3.new(0,0.2,0.8)
  3369. t.TextStrokeTransparency = 0.3
  3370. t.FontSize = 6
  3371. t.BackgroundTransparency = 1
  3372. local t2 = t:Clone()
  3373. t2.Parent = c
  3374. t2.Size = UDim2.new(0,0,0.1,0)
  3375. local l = t:Clone()
  3376. l.Parent = c
  3377. l.Size = UDim2.new(0,0,0,0)
  3378. l.Text = "-----"
  3379.  
  3380. local f1 = Instance.new("Frame", c)
  3381. f1.Name = "Backing"
  3382. f1.ClipsDescendants = true
  3383. f1.Size = UDim2.new(1,0,0,0)
  3384. f1.BackgroundColor3 = Color3.new(0.8,0,0)
  3385. f1.BackgroundTransparency = 1
  3386. local f1img = Instance.new("ImageLabel", f1)
  3387. f1img.BackgroundTransparency = 1
  3388. f1img.Image = "http://www.roblox.com/asset/?id=112474909"
  3389. f1img.Size = UDim2.new(1,0,0,c.Size.Y.Offset)
  3390.  
  3391. local f2 = Instance.new("Frame", c)
  3392. f2.Name = "Overlay"
  3393. f2.ClipsDescendants = true
  3394. f2.Size = UDim2.new(1,0,1,0)
  3395. f2.BackgroundColor3 = Color3.new(0,0,0.8)
  3396. f2.BackgroundTransparency = 1
  3397. local f2img = Instance.new("ImageLabel", f2)
  3398. f2img.BackgroundTransparency = 1
  3399. f2img.Image = "http://www.roblox.com/asset/?id=112474911"
  3400. f2img.Size = UDim2.new(1,0,0,c.Size.Y.Offset)
  3401.  
  3402. function Calculate()
  3403. local ysize = c.Size.Y.Offset
  3404. local per = (stamina/maxstamina) * c.Size.Y.Offset
  3405. local rem = (-(stamina/maxstamina-1)) * c.Size.Y.Offset
  3406. f1.Size = UDim2.new(1,0,0,rem)
  3407. f2.Size = UDim2.new(1,0,0,per)
  3408. f2.Position = UDim2.new(0,0,0,rem)
  3409. f2img.Position = UDim2.new(0,0,0,-rem)
  3410. t.Text = math.floor(stamina)
  3411. t2.Text = maxstamina
  3412. end
  3413. Calculate()
  3414.  
  3415. wait(0.01)
  3416. c.Visible = true
  3417. end
  3418. CreateGui()
  3419.  
  3420. player.CharacterAdded:connect(function()
  3421. char = player.Character
  3422. Torsoz = char:findFirstChild("Torso")
  3423. RA = char:findFirstChild("Right Arm")
  3424. LA = char:findFirstChild("Left Arm")
  3425. RL = char:findFirstChild("Right Leg")
  3426. LL = char:findFirstChild("Left Leg")
  3427. H = char:findFirstChild("Head")
  3428. Hu = char:findFirstChild("Humanoid")
  3429. RS = Torsoz:findFirstChild("Right Shoulder")
  3430. LS = Torsoz:findFirstChild("Left Shoulder")
  3431. RH = Torsoz:findFirstChild("Right Hip")
  3432. LH = Torsoz:findFirstChild("Left Hip")
  3433. N = Torsoz:findFirstChild("Neck")
  3434. stamina = maxstamina
  3435. CreateGui()
  3436. end)
  3437.  
  3438. function RAY(pos, dir, startpos, endpos, distleft, collidedlist)
  3439. collidedlist = collidedlist or {char}
  3440. startpos = startpos or pos
  3441. distleft = distleft or dir.unit * dir.magnitude
  3442. endpos = endpos or pos + distleft
  3443. local ray = Ray.new(pos, distleft)
  3444. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  3445. --[[
  3446. local p = P:Clone()
  3447. p.Parent = char
  3448. p.Size = Vector3.new(0.4,0.4,0.4)
  3449. p.BrickColor = BrickColor.new("Lime green")
  3450. p.CanCollide = false
  3451. p.CFrame = CFrame.new(enz)
  3452. p.Transparency = 0.3
  3453. ]]
  3454. if hitz ~= nil then
  3455. if hitz.CanCollide == false then
  3456. table.insert(collidedlist, hitz)
  3457. local newpos = enz
  3458. local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  3459. if newdistleft ~= NV then
  3460. return RAY(newpos-(dir*0.01), dir, startpos, endpos, newdistleft+(dir*0.01), collidedlist)
  3461. end
  3462. end
  3463. end
  3464.  
  3465. return hitz, enz, ray
  3466. end
  3467.  
  3468. function Sit()
  3469. Standing = false
  3470. local hitz,enz = RAY(Torsoz.Position, Vector3.new(0,-4.1,0))
  3471. local tordir = Vector3.new(Torsoz.CFrame.lookVector.x,0,Torsoz.CFrame.lookVector.z)
  3472. if (hitz ~= nil and hitz.CanCollide == true) then
  3473. local cf = CFrame.new(enz+Vector3.new(0,1.28,0), enz+Vector3.new(0,1.28,0)+tordir) * CFrame.Angles(math.pi/6,0,0)
  3474. local hitz2,enz2 = RAY(enz+Vector3.new(0,2.25,0), tordir*-2.2)
  3475. Hu.PlatformStand = true
  3476. Torsoz.CFrame = cf
  3477. local bp = Instance.new("BodyPosition", Torsoz)
  3478. bp.Name = "StaminaBodyObject"
  3479. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  3480. bp.D = 100
  3481. bp.position = cf.p
  3482. local bg = Instance.new("BodyGyro", Torsoz)
  3483. bg.Name = "StaminaBodyObject"
  3484. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  3485. bg.cframe = cf
  3486. bg.D = 100
  3487. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.34,-1,0.2), Vector3.new((math.pi/2)-(math.pi/6),0,math.pi/8))
  3488. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.34,-1,0.2), Vector3.new((math.pi/2)-(math.pi/6),0,-math.pi/8))
  3489.  
  3490. if hitz2 ~= nil and hitz2.CanCollide == true then
  3491. Joint3.C0 = CFrame.new(0.9,0.4,-0.45) * CFrame.Angles(0,math.pi/2.13,0) * CFrame.Angles(math.pi/2.3,0,0)
  3492. Joint4.C0 = CFrame.new(-0.9,0.4,-0.4) * CFrame.Angles(0,-math.pi/2.05,0) * CFrame.Angles(math.pi/2.3,0,0)
  3493. Joint5.C0 = CFrame.new(0,1,0) * CFrame.Angles(-math.pi/8.8,0,0)
  3494. else
  3495. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.4,0.4,0.1), Vector3.new(-(math.pi/6)-(math.pi/10),0,math.pi/9))
  3496. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.4,0.4,0.1), Vector3.new(-(math.pi/6)-(math.pi/10),0,-math.pi/9))
  3497. SetWeld(Joint5,1,1, NV,NV, Vector3.new(0,1,0), Vector3.new(-math.pi/12,0,0))
  3498. end
  3499.  
  3500. Sitting = true
  3501. Action = "Sitting"
  3502. end
  3503. end
  3504.  
  3505.  
  3506. function Stand()
  3507. Hu.PlatformStand = false
  3508. if Sitting == true then
  3509. local tordir = Torsoz.Position + (Torsoz.CFrame.lookVector*10000)
  3510. local cf = CFrame.new(Torsoz.Position + Vector3.new(0,1.8,0), Vector3.new(tordir.x,Torsoz.Position.y,tordir.z))
  3511. Torsoz.CFrame = cf
  3512. end
  3513. for i, v in pairs(Torsoz:children()) do
  3514. if v.Name == "StaminaBodyObject" then
  3515. v:remove()
  3516. end
  3517. end
  3518. RH.Part0 = nil
  3519. LH.Part0 = nil
  3520. RS.Part0 = nil
  3521. LS.Part0 = nil
  3522. Joint1.Part0 = Torsoz
  3523. Joint1.Part1 = RL
  3524. Joint1.C0 = CFrame.new(0.5,-1,0)
  3525. Joint1.C1 = CFrame.new(0,1,0)
  3526. Joint2.Part0 = Torsoz
  3527. Joint2.Part1 = LL
  3528. Joint2.C0 = CFrame.new(-0.5,-1,0)
  3529. Joint2.C1 = CFrame.new(0,1,0)
  3530. Joint3.Part0 = Torsoz
  3531. Joint3.Part1 = RA
  3532. Joint3.C0 = CFrame.new(1.5,0.5,0)
  3533. Joint3.C1 = CFrame.new(0,0.5,0)
  3534. Joint4.Part0 = Torsoz
  3535. Joint4.Part1 = LA
  3536. Joint4.C0 = CFrame.new(-1.5,0.5,0)
  3537. Joint4.C1 = CFrame.new(0,0.5,0)
  3538. Joint5.Part0 = Torsoz
  3539. Joint5.Part1 = H
  3540. Joint5.C0 = CFrame.new(0,1,0)
  3541. Joint5.C1 = CFrame.new(0,-0.5,0)
  3542. Sitting = false
  3543. Diving = false
  3544. Standing = true
  3545. Action = "Standing"
  3546. end
  3547.  
  3548. --------------------------------------- Dive ----------------------------------
  3549.  
  3550. function Dive()
  3551. stamina = stamina - 10
  3552. flow.Value = flow.Value + 10
  3553. if flow.Value > 100 then
  3554. flow.Value = 100
  3555. end
  3556. Standing = false
  3557. local dir = Vector3.new(Torsoz.CFrame.lookVector.x,0,Torsoz.CFrame.lookVector.z)
  3558. GravPoint = 18
  3559. DivingDir = dir
  3560. local cf = CFrame.new(Torsoz.Position, dir+Vector3.new(0,Torsoz.Position.y,0))
  3561. DivingCF = cf
  3562. DivingDir = dir
  3563. Hu.PlatformStand = true
  3564. local bv = Instance.new("BodyVelocity", Torsoz)
  3565. bv.Name = "StaminaBodyObject"
  3566. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  3567. bv.velocity = Vector3.new(DivingDir.x*24,GravPoint,DivingDir.z*24)
  3568. DivingBV = bv
  3569. local bg = Instance.new("BodyGyro", Torsoz)
  3570. bg.Name = "StaminaBodyObject"
  3571. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  3572. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+bv.velocity) * CFrame.Angles(-math.pi/2,0,0)
  3573. bg.D = 100
  3574. DivingBG = bg
  3575.  
  3576. local joint = Joint3
  3577. joint.C1 = CFrame.new(0,0.5,0)
  3578. local joint2 = Joint4
  3579. joint2.C1 = CFrame.new(0,0.5,0)
  3580. local joint3 = Joint1
  3581. joint3.C1 = CFrame.new(0,1,0)
  3582. local joint4 = Joint2
  3583. joint4.C1 = CFrame.new(0,1,0)
  3584.  
  3585. local joint5 = Joint5
  3586.  
  3587. Diving = true
  3588. Action = "Diving"
  3589.  
  3590. for i = 1, 8 do
  3591. SetWeld(joint,i,8, Vector3.new(1.5,0.5,0), NV, Vector3.new(1.45,0.5,0.1), Vector3.new(-0.2,-math.pi/9,math.pi/13))
  3592. SetWeld(joint2,i,8, Vector3.new(-1.5,0.5,0), NV, Vector3.new(-1.45,0.5,0.1), Vector3.new(-0.2,math.pi/9,-math.pi/13))
  3593. SetWeld(joint3,i,8, Vector3.new(0.5,-1,0), NV, Vector3.new(0.5,-1,0.03), Vector3.new(-0.2,-math.pi/10,math.pi/14))
  3594. SetWeld(joint4,i,8, Vector3.new(-0.5,-1,0), NV, Vector3.new(-0.5,-1,0.03), Vector3.new(-0.2,math.pi/10,-math.pi/14))
  3595. SetWeld(joint5,i,8, Vector3.new(0,1,0), NV, Vector3.new(0,1,0), Vector3.new(0.45,0,0))
  3596. wait(0.025)
  3597. end
  3598.  
  3599. local counter = 0
  3600. while Diving == true do
  3601. counter = counter + 1
  3602. bg.Parent = Torsoz
  3603. local hitz, enz = RAY(Torsoz.Position, bv.velocity.unit*4.6)
  3604. if hitz ~= nil and hitz.CanCollide == true then
  3605. local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-4,0))
  3606. if hitz2 ~= nil then
  3607. Diving = "Rolling"
  3608. Action = "DiveRolling"
  3609. else
  3610. Torsoz.CFrame = Torsoz.CFrame * CFrame.new(0,-0.3,0)
  3611. Torsoz.Velocity = NV
  3612. flow.Value = 0
  3613. break
  3614. end
  3615. end
  3616. if counter > 190 then
  3617. break
  3618. end
  3619. wait(0.02)
  3620. end
  3621.  
  3622. bv.velocity = (dir*20) + Vector3.new(0,-0.5,0)
  3623.  
  3624. local bgcf = bg.cframe
  3625. local haslanded = false
  3626. local count = 0
  3627.  
  3628. while haslanded == false do
  3629. bg.cframe = bgcf * CFrame.Angles(-0.3*count,0,0)
  3630. local hitz, enz = RAY(Torsoz.Position, ((Torsoz.CFrame*CFrame.new(0,-1,0)).p - Torsoz.CFrame.p).unit*1.6)
  3631. if hitz ~= nil and hitz.CanCollide == true then
  3632. haslanded = true
  3633. end
  3634. local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-3.8,0))
  3635. if hitz2 == nil then
  3636. Torsoz.Velocity = NV
  3637. break
  3638. elseif haslanded == true then
  3639. local bp = Instance.new("BodyPosition", Torsoz)
  3640. bp.Name = "StaminaJumpFix"
  3641. bp.maxForce = Vector3.new(0,1/0,0)
  3642. bp.P = 7000
  3643. bp.position = enz2 + Vector3.new(0,2.8,0)
  3644. game:service("Debris"):AddItem(bp, 0.3)
  3645. else
  3646. bv.velocity = (dir*20) + Vector3.new(0,-(Torsoz.Position - enz2).magnitude*3,0)
  3647.  
  3648. end
  3649. count = count + 1
  3650. if count <= 6 then
  3651. local i = count
  3652. local j1,j1a = GetWeld(joint)
  3653. local j2,j2a = GetWeld(joint2)
  3654. local j3,j3a = GetWeld(joint3)
  3655. local j4,j4a = GetWeld(joint4)
  3656. local j5,j5a = GetWeld(joint5)
  3657. SetWeld(joint,i,6, j1,j1a, Vector3.new(1.35,0.5,-0.2), Vector3.new(math.pi/2.6,0,-math.pi/5.8))
  3658. SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.35,0.5,-0.2), Vector3.new(math.pi/2.6,0,math.pi/5.8))
  3659. SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.51,0.4,-0.6), Vector3.new(-0.1,0,0.05))
  3660. SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.51,0.4,-0.6), Vector3.new(-0.1,0,-0.05))
  3661. SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,1,0), Vector3.new(-0.4,0,0))
  3662. elseif count >= 50 then
  3663. break
  3664. end
  3665. wait(0.02)
  3666. end
  3667.  
  3668. Torsoz.Velocity = NV
  3669.  
  3670. Stand()
  3671. DivingCooldown = 9
  3672. end
  3673.  
  3674. function FindSurface(part, position)
  3675. local obj = part.CFrame:pointToObjectSpace(position)
  3676. local siz = part.Size/2
  3677. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  3678. local vec = Vector3.FromNormalId(v)
  3679. local wvec = part.CFrame:vectorToWorldSpace(vec)
  3680. local vz = (obj)/(siz*vec)
  3681. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  3682. return wvec,vec
  3683. end
  3684. end
  3685. if part.className == "WedgePart" then
  3686. return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
  3687. end
  3688. end
  3689.  
  3690. function HWallRun(part, pos, side)
  3691. if (part.className == "Part" and part.Shape == Enum.PartType.Block) or part.className ~= "Part" then
  3692. flow.Value = flow.Value + 9
  3693. Standing = false
  3694. HWallRunning = true
  3695. Action = "HWallRunning"
  3696. GravPoint = 10
  3697. HWRLastPart = part
  3698. local dir, dirc = FindSurface(part, pos)
  3699. towall = -dir
  3700. dir = (CFrame.new(NV, dir) * CFrame.Angles(0,side,0)).lookVector
  3701.  
  3702. local bv = Instance.new("BodyVelocity", Torsoz)
  3703. bv.Name = "StaminaBodyObject"
  3704. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  3705. bv.P = 9000
  3706. bv.velocity = (dir*(sprint-0.5)) + Vector3.new(0,GravPoint,0)
  3707. local bg = Instance.new("BodyGyro", Torsoz)
  3708. bg.Name = "StaminaBodyObject"
  3709. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  3710. bg.cframe = CFrame.new(Torsoz.Position+(towall*-2), Torsoz.Position) * CFrame.Angles(0,-side,-side/4.2)
  3711. bg.D = 100
  3712.  
  3713. local sid = Instance.new("Snap")
  3714.  
  3715. local joint1 = Joint3
  3716. if side == -math.pi/2 then
  3717. SetWeld(joint1,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(math.pi/1.3,0.1,math.pi/2.5))
  3718. else
  3719. sid = joint1
  3720. SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.6,0), Vector3.new(-math.pi/12,0,math.pi/7))
  3721. end
  3722. local j1c0 = joint1.C0
  3723.  
  3724. local joint2 = Joint4
  3725. if side == math.pi/2 then
  3726. SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(math.pi/1.3,-0.1,-math.pi/2.5))
  3727. else
  3728. sid = joint2
  3729. SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.6,0), Vector3.new(-math.pi/12,0,-math.pi/7))
  3730. end
  3731. local j2c0 = joint2.C0
  3732.  
  3733. local joint3 = Joint1
  3734. joint3.C1 = CFrame.new(0,1,0)
  3735. if side == -math.pi/2 then
  3736. SetWeld(joint3,1,1, NV,NV, Vector3.new(0.5,-0.38,-0.3), Vector3.new(0,math.pi/2,0.14))
  3737. else
  3738. SetWeld(joint3,1,1, NV,NV, Vector3.new(0.5,-0.8,-0.2), Vector3.new(0,math.pi/2,0.2))
  3739. end
  3740.  
  3741. local joint4 = Joint2
  3742. joint4.C1 = CFrame.new(0,1,0)
  3743. if side == -math.pi/2 then
  3744. SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.5,-0.8,-0.2), Vector3.new(0,0,0.2))
  3745. else
  3746. SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.5,-0.38,-0.3), Vector3.new(0,0,0.14))
  3747. end
  3748.  
  3749. local joint5 = Joint5
  3750. SetWeld(joint5,1,1,NV,NV,Vector3.new(0,0.9,0),Vector3.new(0,0,side/7))
  3751.  
  3752. Torsoz.CFrame = CFrame.new(pos+(towall*-2), pos) * CFrame.Angles(0,-side,-side/2.2)
  3753. bg.cframe = CFrame.new(pos+(towall*-2), pos) * CFrame.Angles(0,-side,-side/2.2)
  3754.  
  3755. local aniangle = 0
  3756. local aniplus = true
  3757. local aniangle2 = 0
  3758. local aniplus2 = true
  3759.  
  3760. local prevpart = part
  3761. HWRLastPart = part
  3762. while HWallRunning == true do
  3763.  
  3764. if aniangle > math.pi then
  3765. aniplus = false
  3766. elseif aniangle < -math.pi then
  3767. aniplus = true
  3768. end
  3769. if aniplus == true then
  3770. aniangle = aniangle + 0.95
  3771. elseif aniplus == false then
  3772. aniangle = aniangle - 0.95
  3773. end
  3774.  
  3775. if aniangle2 > math.pi then
  3776. aniplus2 = false
  3777. elseif aniangle2 < -math.pi then
  3778. aniplus2 = true
  3779. end
  3780. if aniplus2 == true then
  3781. aniangle2 = aniangle2 + 0.23
  3782. elseif aniplus2 == false then
  3783. aniangle2 = aniangle2 - 0.23
  3784. end
  3785.  
  3786. Hu.PlatformStand = true
  3787. local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-3,0))
  3788. local hitz2, enz2 = RAY(Torsoz.Position, towall*3.4)
  3789.  
  3790. --- if player ends wall run on ground
  3791. if hitz ~= nil and hitz.CanCollide == true then
  3792. bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,0)
  3793. local offset = (bg.cframe.p.y+enz2.y) - bg.cframe.p.y
  3794. Torsoz.CFrame = CFrame.new(Vector3.new(bg.cframe.p.x,offset,bg.cframe.p.z), enz2) * CFrame.Angles(0,-side,0)
  3795. Torsoz.Velocity = NV
  3796. break
  3797. end
  3798.  
  3799. ---- if new wall found --------
  3800. if hitz2 ~= nil and hitz2.CanCollide == true then
  3801. if hitz2 ~= prevpart then
  3802. local direct = CFrame.new(Torsoz.Position, Torsoz.Position+dir) * CFrame.Angles(0,side,0)
  3803. local hitz3, enz3 = RAY(Torsoz.Position, (direct * CFrame.Angles(0,-side/2.3,0)).lookVector*4)
  3804. if hitz3 ~= nil then
  3805. Torsoz.CFrame = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side*1.1,-side/2.2)
  3806. bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side*1.1,-side/2.2)
  3807. dir, dirc = FindSurface(hitz2, enz2)
  3808. towall = -dir
  3809. dir = (CFrame.new(NV, dir) * CFrame.Angles(0,side,0)).lookVector
  3810. prevpart = hitz2
  3811. HWRLastPart = hitz2
  3812. else
  3813. ---- if player fails to find new wall to run on
  3814. Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3815. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3816. Torsoz.Velocity = NV
  3817. HWRCooldown = 8
  3818. break
  3819. end
  3820. end
  3821. --- continue to wall run
  3822. Torsoz.CFrame = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,-side/2.2)
  3823. bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,-side/2.2)
  3824. else
  3825. ---- if player ends wall run at end of wall
  3826. Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3827. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3828. Torsoz.Velocity = NV
  3829. HWRCooldown = 8
  3830. break
  3831. end
  3832.  
  3833. local hitz3, enz3 = RAY(Torsoz.Position, Torsoz.CFrame.lookVector*2)
  3834. if hitz3 ~= nil and hitz3.CanCollide == true then
  3835. Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3836. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
  3837. Torsoz.Velocity = NV
  3838. HWRCooldown = 8
  3839. break
  3840. end
  3841.  
  3842. bv.Parent = Torsoz
  3843. bv.velocity = (dir*(sprint-0.5)) + Vector3.new(0,GravPoint,0)
  3844. bg.cframe = bg.cframe * CFrame.Angles(aniangle/80,aniangle/80,0)
  3845. Torsoz.CFrame = Torsoz.CFrame * CFrame.Angles(aniangle/80,aniangle/80,0)
  3846. local j3,j3a = GetWeld(joint3)
  3847. local j4,j4a = GetWeld(joint4)
  3848. SetWeld(joint3,1,1, j3,j3a, j3,Vector3.new(-0.2+(aniangle/4),0,0))
  3849. SetWeld(joint4,1,1, j4,j4a, j4,Vector3.new(-0.2+(-aniangle/4),0,0))
  3850. if side == math.pi/2 then
  3851. local j1,j1a = GetWeld(joint1)
  3852. SetWeld(joint1,1,1, j1,j1a, j1, Vector3.new(0,0,0.8+(aniangle2/14)))
  3853. else
  3854. local j2,j2a = GetWeld(joint2)
  3855. SetWeld(joint2,1,1, j2,j2a, j2, Vector3.new(0,0,-0.8-(aniangle2/14)))
  3856. end
  3857.  
  3858. wait(0.025)
  3859. if GravPoint < -100 then
  3860. bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,0)
  3861. local offset = math.abs((bg.cframe.p.y+enz2.y) - bg.cframe.p.y)
  3862. Torsoz.CFrame = CFrame.new(Vector3.new(bg.cframe.p.x,offset,bg.cframe.p.z), enz2) * CFrame.Angles(0,-side,0)
  3863. break
  3864. end
  3865.  
  3866. end
  3867.  
  3868. if HWallRunning == "Jumping" then
  3869. HWRCooldown = 6
  3870. joint1.C1 = CFrame.new(0,0.5,0)
  3871.  
  3872. joint2.C1 = CFrame.new(0,0.5,0)
  3873. if side == -math.pi/2 then
  3874. joint2.C0 = CFrame.new(-1.35,0.5,0) * CFrame.Angles(0,side/2.4,-math.pi/3)
  3875. else
  3876. joint2.C0 = CFrame.new(-1.35,0.5,0) * CFrame.Angles(0,side/2.4,-math.pi/4)
  3877. end
  3878.  
  3879. joint3.C1 = CFrame.new(0,1,0)
  3880. if side == -math.pi/2 then
  3881. joint3.C0 = CFrame.new(0.5,-0.8,0) * CFrame.Angles(0,math.pi+(side/2.4),-math.pi/4)
  3882. else
  3883. joint3.C0 = CFrame.new(0.5,-0.8,0) * CFrame.Angles(0,(side/2.4),math.pi/4)
  3884. end
  3885. joint4.MaxVelocity = 10
  3886. joint4.DesiredAngle = 0
  3887. joint4.C1 = CFrame.new(0,1,0)
  3888. if side == -math.pi/2 then
  3889. joint4.C0 = CFrame.new(-0.5,-0.8,0) * CFrame.Angles(0,math.pi+(side/2.4),math.pi/4)
  3890. else
  3891. joint4.C0 = CFrame.new(-0.5,-0.8,0) * CFrame.Angles(0,(side/2.4),-math.pi/4)
  3892. end
  3893.  
  3894. local joint5 = Joint5
  3895. joint5.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(0,side/2.4,0)
  3896. joint5.C0 = CFrame.new(0,1,0)
  3897.  
  3898. local j1,j1a = GetWeld(joint1)
  3899. local j2,j2a = GetWeld(joint2)
  3900. local j3,j3a = GetWeld(joint3)
  3901. local j4,j4a = GetWeld(joint4)
  3902. local j5,j5a = GetWeld(joint5)
  3903.  
  3904. GravPoint = 26
  3905. local collidecount = 0
  3906. local bgangle = side/2
  3907. local count = 1
  3908. local dir2 = (CFrame.new(NV, dir) * CFrame.Angles(0,-side/2.4,0)).lookVector
  3909. HWRDir = dir2
  3910. bv.velocity = (dir2*(sprint+5)) + Vector3.new(0,GravPoint,0)
  3911. while HWallRunning == "Jumping" do
  3912. local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-4,0))
  3913. local hitz2, enz2 = RAY(Torsoz.Position, dir2*1.4)
  3914. if hitz ~= nil and hitz.CanCollide == true then
  3915. local offset = math.abs(enz.y - Torsoz.CFrame.p.y)
  3916. Torsoz.CFrame = CFrame.new(enz+Vector3.new(0,2.9,0), enz+Vector3.new(0,2.9,0)+dir2)
  3917. Torsoz.Velocity = NV
  3918. break
  3919. end
  3920.  
  3921. if hitz2 ~= nil and hitz2.CanCollide == true then
  3922. collidecount = collidecount + 1
  3923. if collidecount == 4 then
  3924. Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir2) * CFrame.new(0,0,0.4)
  3925. Torsoz.Velocity = Vector3.new(0,Torsoz.Velocity.y,0)
  3926. HWRCooldown = 5
  3927. VWRCooldown = 5
  3928. wait(0.02)
  3929. break
  3930. end
  3931. end
  3932.  
  3933. if side/2 > 0 then
  3934. if bgangle > 0.2 then
  3935. bgangle = bgangle - 0.055
  3936. end
  3937. else
  3938. if bgangle < -0.2 then
  3939. bgangle = bgangle + 0.055
  3940. end
  3941. end
  3942.  
  3943. if count <= 5 then
  3944. if side == -math.pi/2 then
  3945. SetWeld(joint1,count,5, j1,j1a, Vector3.new(1.35,0.5,0), Vector3.new(0,side/2.4,math.pi/4))
  3946. SetWeld(joint2,count,5, j2,j2a, Vector3.new(-1.35,0.5,0), Vector3.new(0,side/2.4,-math.pi/3))
  3947. SetWeld(joint3,count,5, j3,j3a, Vector3.new(0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
  3948. joint3.C0 = joint3.C0 * CFrame.Angles((-math.pi/4)/5*count,0,0)
  3949. SetWeld(joint4,count,5, j4,j4a, Vector3.new(-0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
  3950. joint4.C0 = joint4.C0 * CFrame.Angles((math.pi/4)/5*count,0,0)
  3951. else
  3952. SetWeld(joint1,count,5, j1,j1a, Vector3.new(1.35,0.5,0), Vector3.new(0,side/2.4,math.pi/3))
  3953. SetWeld(joint2,count,5, j2,j2a, Vector3.new(-1.35,0.5,0), Vector3.new(0,side/2.4,-math.pi/4))
  3954. SetWeld(joint3,count,5, j3,j3a, Vector3.new(0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
  3955. joint3.C0 = joint3.C0 * CFrame.Angles((math.pi/4)/5*count,0,0)
  3956. SetWeld(joint4,count,5, j4,j4a, Vector3.new(-0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
  3957. joint4.C0 = joint4.C0 * CFrame.Angles((-math.pi/4)/5*count,0,0)
  3958. end
  3959.  
  3960. count = count + 1
  3961. end
  3962.  
  3963. bg.Parent = Torsoz
  3964. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(0,side/15,-bgangle)
  3965. bv.velocity = (dir2*(sprint+5)) + Vector3.new(0,GravPoint,0)
  3966. if collidecount ~= 0 then
  3967. bv.velocity = Vector3.new(0,bv.velocity.y,0)
  3968. end
  3969. if GravPoint < -120 then
  3970. break
  3971. end
  3972. wait(0.025)
  3973. end
  3974. end
  3975.  
  3976. Hu.PlatformStand = false
  3977. bv:remove()
  3978.  
  3979. HWRGravDrop = false
  3980. Stand()
  3981. HWallRunning = false
  3982. end
  3983. end
  3984.  
  3985. function VWR(part, pos)
  3986. if (part.className == "Part" and part.Shape == Enum.PartType.Block) or part.className ~= "Part" then
  3987. print("VWR Activated")
  3988. flow.Value = flow.Value + 9
  3989. Standing = false
  3990. VWallRunning = true
  3991. Action = "VWallRunning"
  3992. GravPoint = 0
  3993. local percent = 1
  3994. VWRLastPart = part
  3995. local dir, dirc = FindSurface(part, pos)
  3996. towall = -dir
  3997. dir = (CFrame.new(NV, -dir) * CFrame.Angles(math.pi/2,0,0)).lookVector
  3998. --[[
  3999. local p = P:Clone()
  4000. p.Parent = char
  4001. p.Size = Vector3.new(2,2,2)
  4002. p.BrickColor = BrickColor.new("Lime green")
  4003. p.CanCollide = false
  4004. p.CFrame = part.CFrame * CFrame.new(dirc*5)
  4005. p.Transparency = 0.3
  4006. ]]
  4007. local bv = Instance.new("BodyVelocity", Torsoz)
  4008. bv.Name = "StaminaBodyObject"
  4009. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  4010. bv.P = 9000
  4011. bv.velocity = (dir*(sprint-1))*percent
  4012.  
  4013. local bg = Instance.new("BodyGyro", Torsoz)
  4014. bg.Name = "StaminaBodyObject"
  4015. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  4016. bg.D = 100
  4017. local posi = pos + (-towall*1.8)
  4018. bg.cframe = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0)
  4019. Torsoz.CFrame = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0)
  4020.  
  4021. local joint1 = Joint3
  4022. SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,0,math.pi/8))
  4023.  
  4024. local joint2 = Joint4
  4025. SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,0,-math.pi/8))
  4026.  
  4027. local joint3 = Joint1
  4028. SetWeld(joint3,1,1, NV,NV, Vector3.new(0.48,-0.6,-0.1), Vector3.new(0,math.pi/2,0))
  4029. joint3.C1 = CFrame.new(0,0.7,0.2) * CFrame.Angles(0,math.pi/2,0)
  4030.  
  4031. local joint4 = Joint2
  4032. SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.48,-0.6,-0.1), Vector3.new(0,math.pi/2,0))
  4033. joint4.C1 = CFrame.new(0,0.7,0.2) * CFrame.Angles(0,math.pi/2,0)
  4034.  
  4035. local joint5 = Joint5
  4036. SetWeld(joint5,1,1, NV,NV, Vector3.new(0,1,0), Vector3.new(math.pi/20,0,0))
  4037.  
  4038. local aniangle = 0
  4039. local aniplus = true
  4040.  
  4041. while VWallRunning == true do
  4042. local hitz, enz = RAY(Torsoz.Position, towall*2.1)
  4043. local hitz2, enz2 = RAY(Torsoz.Position, (CFrame.new(NV,towall)*CFrame.Angles(math.pi/2,0,0)).lookVector*2.4)
  4044.  
  4045. if aniangle > math.pi then
  4046. aniplus = false
  4047. elseif aniangle < -math.pi then
  4048. aniplus = true
  4049. end
  4050. if aniplus == true then
  4051. aniangle = aniangle + (1.3*(percent+0.2))
  4052. elseif aniplus == false then
  4053. aniangle = aniangle - (1.3*(percent+0.2))
  4054. end
  4055.  
  4056. bv.velocity = (dir*(sprint-1))*percent
  4057. if VWRLeft == true then
  4058. bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * (11*percent+5))
  4059. end
  4060. if VWRRight == true then
  4061. bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * (11*percent+5))
  4062. end
  4063.  
  4064. bg.cframe = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0) * CFrame.Angles(0,aniangle/60,0)
  4065.  
  4066. SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,aniangle/52,(math.pi/8)+(aniangle/30)))
  4067. SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,aniangle/52,(-math.pi/8)+(-aniangle/30)))
  4068. SetWeld(joint3,1,1, NV,NV, Vector3.new(0.51,-0.75,-(aniangle/30)), Vector3.new(0,math.pi/2,(aniangle/8)-0.3))
  4069. SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.51,-0.75,(aniangle/30)), Vector3.new(0,math.pi/2,(-aniangle/8)-0.3))
  4070.  
  4071. if hitz == nil then
  4072. local lv = Torsoz.Position + (Torsoz.CFrame.lookVector*100)
  4073. Torsoz.CFrame = CFrame.new(Torsoz.Position, Vector3.new(lv.x,Torsoz.Position.y,lv.z))
  4074. break
  4075. end
  4076.  
  4077. if hitz2 ~= nil then
  4078. percent = 0
  4079. VWallRunning = "Falling"
  4080. Action = "VWRFalling"
  4081. GravPoint = -7
  4082. break
  4083. end
  4084.  
  4085. wait(0.02)
  4086. percent = percent - 0.028
  4087. if percent <= 0.15 then
  4088. VWallRunning = "Falling"
  4089. Action = "VWRFalling"
  4090. end
  4091. end
  4092.  
  4093. -------------------------- Falling from VWR ------------------------------
  4094. if VWallRunning == "Falling" then
  4095. GravPoint = GravPoint - 1
  4096. local dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
  4097. bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
  4098.  
  4099. local j1,j1a = GetWeld(joint1)
  4100. local j2,j2a = GetWeld(joint2)
  4101. local j3,j3a = GetWeld(joint3)
  4102. local j4,j4a = GetWeld(joint4)
  4103. local j5,j5a = GetWeld(joint5)
  4104.  
  4105. local counter = 0
  4106. while VWallRunning == "Falling" do
  4107. counter = counter + 1
  4108. local hitz, enz = RAY(H.Position, Vector3.new(0,-2.4,0))
  4109.  
  4110. dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
  4111. bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
  4112. if VWRLeft == true then
  4113. bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
  4114. end
  4115. if VWRRight == true then
  4116. bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
  4117. end
  4118. bg.cframe = CFrame.new(NV, (-towall*30) + Vector3.new(0,GravPoint,0)) * CFrame.Angles(-math.pi/2.55,math.pi,0)
  4119.  
  4120. if counter <= 35 then
  4121. SetWeld(joint1,counter,35, j1,j1a, Vector3.new(1.4,0.45,-0.1), Vector3.new(math.pi/9,0,math.pi/9))
  4122. SetWeld(joint2,counter,35, j2,j2a, Vector3.new(-1.4,0.45,-0.1), Vector3.new(math.pi/9,0,-math.pi/9))
  4123. SetWeld(joint3,counter,35, j3,j3a, Vector3.new(0.5,-0.75,0), Vector3.new(0,math.pi/2,math.pi/9))
  4124. joint3.C1 = CFrame.new(0,0.7 + (0.3/35*counter),0.2 - (0.2/35*counter)) * CFrame.Angles(0,math.pi/2,0)
  4125. SetWeld(joint4,counter,35, j4,j4a, Vector3.new(-0.5,-0.75,0), Vector3.new(0,math.pi/2,math.pi/9))
  4126. joint4.C1 = CFrame.new(0,0.7 + (0.3/35*counter),0.2 - (0.2/35*counter)) * CFrame.Angles(0,math.pi/2,0)
  4127. SetWeld(joint5,counter,35, j5,j5a, Vector3.new(0,1,0), Vector3.new(-math.pi/6,0,0))
  4128. end
  4129.  
  4130. if hitz ~= nil then
  4131. bv:remove()
  4132. Torsoz.CFrame = CFrame.new(enz+Vector3.new(0,2,0), (enz+Vector3.new(0,2,0)) + ((-towall*25) + Vector3.new(0,GravPoint,0))) * CFrame.Angles(-math.pi/2.55,math.pi,0)
  4133. Torsoz.Velocity = NV
  4134. Torsoz.RotVelocity = NV
  4135. local bp = Instance.new("BodyPosition", Torsoz)
  4136. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  4137. bp.position = Torsoz.CFrame.p
  4138. game:service("Debris"):AddItem(bp, 0.16)
  4139. flow.Value = 0
  4140. break
  4141. end
  4142.  
  4143. if GravPoint > - 180 then
  4144. GravPoint = GravPoint - 1.9
  4145. end
  4146. if counter > 200 then
  4147. break
  4148. end
  4149. wait(0.02)
  4150. end
  4151.  
  4152. local bp = Instance.new("BodyPosition")
  4153.  
  4154. local counter2 = counter
  4155. local bgangleplus = 0
  4156.  
  4157. local j1,j1a = GetWeld(joint1)
  4158. local j2,j2a = GetWeld(joint2)
  4159. local j3,j3a = GetWeld(joint3)
  4160. local j4,j4a = GetWeld(joint4)
  4161. local j5,j5a = GetWeld(joint5)
  4162.  
  4163. local landingpos
  4164.  
  4165. while VWallRunning == "BackflipFromFall" do
  4166. counter2 = counter2 + 1
  4167. local hitz, enz = RAY(H.Position+Vector3.new(0,2,0), Vector3.new(0,-4.4,0))
  4168.  
  4169. if counter2 - counter < 13 then
  4170. bgangleplus = bgangleplus - ((math.pi*1.1)/13)
  4171. end
  4172. if counter2 - counter <= 13 then
  4173. SetWeld(joint1,counter2-counter,13, j1,j1a, Vector3.new(1.4,0.5,0.1), Vector3.new(math.pi/2,0.1,math.pi/2))
  4174. SetWeld(joint2,counter2-counter,13, j2,j2a, Vector3.new(-1.4,0.5,0.1), Vector3.new(math.pi/2,-0.1,-math.pi/2))
  4175. SetWeld(joint3,counter2-counter,13, j3,j3a, Vector3.new(0.52,-0.3,-0.65), Vector3.new(0,math.pi/2,0))
  4176. SetWeld(joint4,counter2-counter,13, j4,j4a, Vector3.new(-0.51,-0.9,-0.05), Vector3.new(0,math.pi/2,0))
  4177. SetWeld(joint5,counter2-counter,13, j5,j5a, Vector3.new(0,0.9,0), Vector3.new(-math.pi/7,0,0))
  4178. end
  4179.  
  4180. dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
  4181. --bv.velocity = Vector3.new(0,-2,0)
  4182. bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
  4183. if VWRLeft == true then
  4184. bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
  4185. end
  4186. if VWRRight == true then
  4187. bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
  4188. end
  4189. bg.cframe = CFrame.new(NV, (-towall*30) + Vector3.new(0,GravPoint,0)) * CFrame.Angles((-math.pi/2.4) + bgangleplus,math.pi,0)
  4190.  
  4191. if hitz ~= nil then
  4192. bv:remove()
  4193. landingpos = enz - (towall*1.3)
  4194. if counter2 - counter > 8 then
  4195. bp = Instance.new("BodyPosition", Torsoz)
  4196. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  4197. bp.position = enz+Vector3.new(0,2.4,0) + (-towall*1)
  4198. VWallRunning = "LandingFall"
  4199. else
  4200. Torsoz.CFrame = bg.cframe + (enz+Vector3.new(0,2.3,0))
  4201. Torsoz.Velocity = NV
  4202. Torsoz.RotVelocity = NV
  4203. local bp = Instance.new("BodyPosition", Torsoz)
  4204. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  4205. bp.position = Torsoz.CFrame.p
  4206. game:service("Debris"):AddItem(bp, 0.14)
  4207. flow.Value = 0
  4208. end
  4209. break
  4210. end
  4211.  
  4212. if GravPoint > - 180 then
  4213. GravPoint = GravPoint - 1.9
  4214. end
  4215. if counter2 > 200 then
  4216. break
  4217. end
  4218. wait(0.02)
  4219. end
  4220.  
  4221. if VWallRunning == "LandingFall" then
  4222. print("Landing")
  4223.  
  4224. joint3.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
  4225. joint4.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
  4226. local j1,j1a = GetWeld(joint1)
  4227. local j2,j2a = GetWeld(joint2)
  4228. local j3,j3a = GetWeld(joint3)
  4229. local j4,j4a = GetWeld(joint4)
  4230. local j5,j5a = GetWeld(joint5)
  4231.  
  4232. local a
  4233. local mesh
  4234. if GravPoint < -70 then
  4235. a = P:Clone()
  4236. a.Parent = Torsoz
  4237. a.Name = "AirLandingEffect"
  4238. a.BrickColor = BrickColor.new("Medium stone grey")
  4239. a.Transparency = 0.3
  4240. a.CFrame = CFrame.new(landingpos+Vector3.new(0,0.4,0))
  4241. mesh = Instance.new("SpecialMesh", a)
  4242. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  4243. mesh.Scale = Vector3.new(0,0,0)
  4244. end
  4245.  
  4246. local bgcf = CFrame.new(NV, Vector3.new(towall.x,0,towall.z))
  4247. bg.cframe = bgcf * CFrame.Angles(-math.pi/7,0,0)
  4248. local bgval = math.pi/7/2
  4249.  
  4250. for i = 1, 6 do
  4251. Hu.PlatformStand = true
  4252. SetWeld(joint1,i,6, j1,j1a, Vector3.new(1.2,0.5,0.2), Vector3.new(math.pi/2,0.5,math.pi/1.2))
  4253. SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.2,0.5,0.2), Vector3.new(math.pi/2,-0.5,-math.pi/1.2))
  4254. SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.51,-0.3,-0.8), Vector3.new(0,math.pi/2,-math.pi/7))
  4255. SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.51,-0.8,-0.7), Vector3.new(0,math.pi/2,-math.pi/3))
  4256. SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,0.85,0), Vector3.new(-math.pi/8,0,0))
  4257. bp.position = bp.position + Vector3.new(0,-0.07,0)
  4258. bg.cframe = bgcf * CFrame.Angles((-bgval*2) + (bgval/6*i),0,0)
  4259. Torsoz.CFrame = bg.cframe + bp.position
  4260. if a ~= nil then
  4261. mesh.Scale = mesh.Scale + Vector3.new(1.3,0.35,1.3)
  4262. a.Transparency = 0.3 + (0.7/6*i)
  4263. end
  4264. wait(0.02)
  4265. end
  4266. if a ~= nil then
  4267. a:remove()
  4268. end
  4269. local j1,j1a = GetWeld(joint1)
  4270. local j2,j2a = GetWeld(joint2)
  4271. local j3,j3a = GetWeld(joint3)
  4272. local j4,j4a = GetWeld(joint4)
  4273. local j5,j5a = GetWeld(joint5)
  4274. for i = 1, 6 do
  4275. Hu.PlatformStand = true
  4276. SetWeld(joint1,i,6, j1,j1a, Vector3.new(1.5,0.5,0), Vector3.new(0,0,0))
  4277. SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.5,0.5,0), Vector3.new(0,0,0))
  4278. SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.5,-1,0), Vector3.new(0,math.pi/2,0))
  4279. SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.5,-1,0), Vector3.new(0,math.pi/2,0))
  4280. SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,1,0), Vector3.new(0,0,0))
  4281. bp.position = bp.position + Vector3.new(0,0.1,0)
  4282. bg.cframe = bgcf * CFrame.Angles(-bgval + (bgval/6*i),0,0)
  4283. Torsoz.CFrame = bg.cframe + bp.position
  4284. wait(0.02)
  4285. end
  4286.  
  4287. bp:remove()
  4288. end
  4289.  
  4290. end
  4291.  
  4292. bv:remove()
  4293. bg:remove()
  4294. VWallRunning = false
  4295. Stand()
  4296. end
  4297. end
  4298.  
  4299. function Slide(pos)
  4300. flow.Value = flow.Value + 6
  4301. Action = "Sliding"
  4302. Sliding = true
  4303. GravPoint = Torsoz.Velocity.y
  4304. local spd = Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude + 10
  4305. local dir = Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).unit
  4306.  
  4307. local bv = Instance.new("BodyVelocity", Torsoz)
  4308. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  4309. bv.velocity = dir*spd
  4310. local bg = Instance.new("BodyGyro", Torsoz)
  4311. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  4312. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  4313.  
  4314. local joint1 = Joint1
  4315. local joint2 = Joint2
  4316. local joint3 = Joint3
  4317. local joint4 = Joint4
  4318. local joint5 = Joint5
  4319. local j1,j1a = GetWeld(joint1)
  4320. local j2,j2a = GetWeld(joint2)
  4321.  
  4322. SetWeld(joint1,1,1, NV,NV, Vector3.new(j1.x,j1.y,j1.z), Vector3.new(j1a.x,math.pi/2,j1a.z))
  4323. joint1.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
  4324. SetWeld(joint2,1,1, NV,NV, Vector3.new(j2.x,j2.y,j2.z), Vector3.new(j2a.x,math.pi/2,j2a.z))
  4325. joint2.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
  4326.  
  4327. local j1,j1a = GetWeld(joint1)
  4328. local j2,j2a = GetWeld(joint2)
  4329. local j3,j3a = GetWeld(joint3)
  4330. local j4,j4a = GetWeld(joint4)
  4331. local j5,j5a = GetWeld(joint5)
  4332.  
  4333. local count = 0
  4334. local lastpos
  4335.  
  4336. while Sliding == true do
  4337. count = count + 1
  4338. Hu.PlatformStand = true
  4339. local hitz1, enz1 = RAY(Torsoz.Position+Vector3.new(0,0.03,0), dir *2.5)
  4340. local hitz2, enz2 = RAY(Torsoz.Position-Vector3.new(0,0.2,0), dir *2.5)
  4341. local ghitz, genz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
  4342. bv.velocity = dir*spd + Vector3.new(0,GravPoint,0)
  4343.  
  4344. if count <= 5 then
  4345. SetWeld(joint1,count,5, j1,j1a, Vector3.new(0.5,-0.8,-0.15), Vector3.new(0,(math.pi/2)+0.1,-0.4))
  4346. SetWeld(joint2,count,5, j2,j2a, Vector3.new(-0.5,-1,0), Vector3.new(0,(math.pi/2)-0.4,0))
  4347. SetWeld(joint3,count,5, j3,j3a, Vector3.new(1.5,0.5,0), Vector3.new(-0.7,-0.24,math.pi/5))
  4348. SetWeld(joint4,count,5, j4,j4a, Vector3.new(-1.5,0.5,0), Vector3.new(-0.1,0,-math.pi/1.5))
  4349. SetWeld(joint5,count,5, j5,j5a, Vector3.new(0,1,0), Vector3.new(-0.5,-0.2,0))
  4350. end
  4351.  
  4352. if (hitz1 ~= nil and hitz1.CanCollide == true) or (hitz2 ~= nil and hitz2.CanCollide == true) then
  4353. bv:remove()
  4354. bg:remove()
  4355. Sliding = "HitObject"
  4356. end
  4357. if ghitz ~= nil then
  4358. GravPoint = 0
  4359. Torsoz.CFrame = CFrame.new(genz, genz+dir) * CFrame.Angles(math.pi/2.2,0.24,0) + Vector3.new(0,0.7,0)
  4360. spd = spd - 0.95
  4361. else
  4362. if GravPoint > -180 then
  4363. GravPoint = GravPoint - 5.6
  4364. end
  4365. spd = spd - 0.36
  4366. end
  4367. if spd < 7 then
  4368. Sliding = false
  4369. end
  4370. wait(0.02)
  4371. end
  4372.  
  4373. if Sliding == false then
  4374. local j1,j1a = GetWeld(joint1)
  4375. local j2,j2a = GetWeld(joint2)
  4376. local j3,j3a = GetWeld(joint3)
  4377. local j4,j4a = GetWeld(joint4)
  4378. local j5,j5a = GetWeld(joint5)
  4379. for i = 1, 4 do
  4380. SetWeld(joint1,i,4, j1,j1a, Vector3.new(0.5,-1,0), Vector3.new(0,math.pi/2,0))
  4381. SetWeld(joint2,i,4, j2,j2a, Vector3.new(-0.5,-1,0), Vector3.new(0,math.pi/2,0))
  4382. SetWeld(joint3,i,4, j3,j3a, Vector3.new(1.5,0.5,0), NV)
  4383. SetWeld(joint4,i,4, j4,j4a, Vector3.new(-1.5,0.5,0), NV)
  4384. SetWeld(joint5,i,4, j5,j5a, Vector3.new(0,1,0), NV)
  4385. local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
  4386. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles((math.pi/2.2) - ((math.pi/2.2)/4*i),0.24 - (0.24/4*i),0)
  4387. bv.velocity = dir*spd + Vector3.new(0,GravPoint,0)
  4388.  
  4389. if hitz ~= nil then
  4390. GravPoint = 0
  4391. Torsoz.CFrame = CFrame.new(enz, enz+dir) * CFrame.Angles((math.pi/2.2) - ((math.pi/2.2)/4*i),0.24 - (0.24/4*i),0) + Vector3.new(0,0.7+(1.8/4*i),0)
  4392. spd = spd - 0.95
  4393. else
  4394. if GravPoint > -180 then
  4395. GravPoint = GravPoint - 5.6
  4396. end
  4397. spd = spd - 0.36
  4398. end
  4399. wait(0.02)
  4400. end
  4401. local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
  4402. Torsoz.CFrame = CFrame.new(enz, enz+dir) + Vector3.new(0,3,0)
  4403. end
  4404. bv:remove()
  4405. bg:remove()
  4406. SlideCooldown = 10
  4407. Stand()
  4408. end
  4409.  
  4410. function KD(key)
  4411. if pause.Value == false then
  4412. if key == string.char(32) then
  4413. Space = true
  4414.  
  4415. local ghitz, genz = RAY(Torsoz.Position, Vector3.new(0,-3.7,0))
  4416. local hitz, enz = RAY(Torsoz.Position+Vector3.new(0,1.1,0), Torsoz.CFrame.lookVector*2.3)
  4417. local righthitz, rightenz
  4418. local lefthitz, leftenz
  4419.  
  4420. if HWallRunning == false then
  4421. righthitz, rightenz = RAY(Torsoz.Position, ((Torsoz.CFrame * CFrame.new(1.5,0,-0.2)).p - Torsoz.CFrame.p).unit*3.9)
  4422. lefthitz, leftenz = RAY(Torsoz.Position, ((Torsoz.CFrame * CFrame.new(-1.5,0,-0.2)).p - Torsoz.CFrame.p).unit*3.9)
  4423.  
  4424. elseif HWallRunning == "Jumping" then
  4425. righthitz, rightenz = RAY(Torsoz.Position, ((CFrame.new(Torsoz.Position, Torsoz.Position + HWRDir) * CFrame.new(1.5,0,-0.2)).p - Torsoz.Position).unit*3.9)
  4426. lefthitz, leftenz = RAY(Torsoz.Position, ((CFrame.new(Torsoz.Position, Torsoz.Position + HWRDir) * CFrame.new(-1.5,0,-0.2)).p - Torsoz.Position).unit*3.9)
  4427.  
  4428. end
  4429.  
  4430. if Action == "Standing" and Shift == true and (hitz == nil or hitz.CanCollide == false) and (righthitz == nil or righthitz.CanCollide == false) and (lefthitz == nil or lefthitz.CanCollide == false) and (ghitz == nil or ghitz.CanCollide == false) and (Torsoz.Velocity.y > 6 and Torsoz.Velocity.y < 50) and DivingCooldown <= 0 then
  4431. if stamina >= 10 then
  4432. --if Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 12 then
  4433. Dive()
  4434. --end
  4435. end
  4436. end
  4437.  
  4438. if hitz == nil and VWallRunning == "Falling" then
  4439. VWallRunning = "BackflipFromFall"
  4440. end
  4441.  
  4442. if Shift == true and Torsoz.Velocity.y > -50 and Diving == false and DivingCooldown <= 0 then
  4443. local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-3.5,0))
  4444.  
  4445. if hitz ~= nil then
  4446. if Action == "Standing" and VWRCooldown == 0 then
  4447. if hitz2 == nil or hitz2.CanCollide == false then
  4448. VWR(hitz, enz)
  4449. end
  4450. end
  4451. end
  4452.  
  4453. if (HWallRunning == false or (HWallRunning == "Jumping" and (HWRLastPart ~= righthitz or HWRLastPart ~= lefthitz))) and HWRCooldown == 0 and VWallRunning == false then
  4454.  
  4455. if (hitz == nil or HWallRunning == "Jumping") and ((righthitz ~= nil and righthitz.Parent:findFirstChild("Humanoid") == nil and righthitz.Parent.className ~= "Hat") or (lefthitz ~= nil and lefthitz.Parent:findFirstChild("Humanoid") == nil and lefthitz.Parent.className ~= "Hat")) then
  4456. if hitz2 == nil or hitz2.CanCollide == false then
  4457. local right = (rightenz - Torsoz.Position).magnitude
  4458. local left = (leftenz - Torsoz.Position).magnitude
  4459. if right < left then
  4460. if HWallRunning == "Jumping" and HWRLastPart ~= righthitz then
  4461. HWallRunning = false
  4462. while Standing == false do
  4463. wait(0.01)
  4464. end
  4465. print("2nd Right Activated!")
  4466. HWallRun(righthitz, rightenz, -math.pi/2)
  4467. else
  4468. if hitz == nil then
  4469. print("Right Activated")
  4470. HWallRun(righthitz, rightenz, -math.pi/2)
  4471. end
  4472. end
  4473. elseif left < right then
  4474. if HWallRunning == "Jumping" and HWRLastPart ~= lefthitz then
  4475. HWallRunning = false
  4476. while Standing == false do
  4477. wait(0.01)
  4478. end
  4479. print("2nd Left Activated!")
  4480. HWallRun(lefthitz, leftenz, math.pi/2)
  4481. else
  4482. if hitz == nil then
  4483. print("Left Activated")
  4484. HWallRun(lefthitz, leftenz, math.pi/2)
  4485. end
  4486. end
  4487. end
  4488. end
  4489. end
  4490. end
  4491.  
  4492. end
  4493.  
  4494. if HWallRunning == true then
  4495. HWallRunning = "Jumping"
  4496. Action = "HWRJumping"
  4497. end
  4498.  
  4499. elseif key == string.char(48) then
  4500. Shift = true
  4501. elseif key == string.char(50) then
  4502. if Action == "Standing" then
  4503. Sit()
  4504. elseif HWallRunning == true then
  4505. HWRGravDrop = true
  4506. end
  4507. elseif key == string.char(52) then
  4508. if Shift == true and Action == "Standing" and SlideCooldown == 0 and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 15 and Torsoz.Velocity.y > -40 then
  4509. print("Sliding")
  4510. Slide()
  4511. end
  4512. elseif key == "a" then
  4513. VWRLeft = true
  4514. elseif key == "d" then
  4515. VWRRight = true
  4516. end
  4517. end
  4518. end
  4519.  
  4520. function KU(key)
  4521. if key == string.char(32) then
  4522. Space = false
  4523. elseif key == string.char(48) then
  4524. Shift = false
  4525. elseif key == string.char(50) then
  4526. if Action == "Sitting" then
  4527. Stand()
  4528. end
  4529. elseif key == string.char(52) then
  4530. Sliding = false
  4531. elseif key == "a" then
  4532. VWRLeft = false
  4533. elseif key == "d" then
  4534. VWRRight = false
  4535. end
  4536. end
  4537.  
  4538. mouse.KeyDown:connect(function(key) KD(key) end)
  4539. mouse.KeyUp:connect(function(key) KU(key) end)
  4540.  
  4541. Joint1 = Instance.new("Snap", Torsoz)
  4542. GetWeld(Joint1)
  4543. Joint2 = Instance.new("Snap", Torsoz)
  4544. GetWeld(Joint2)
  4545. Joint3 = Instance.new("Snap", Torsoz)
  4546. GetWeld(Joint3)
  4547. Joint4 = Instance.new("Snap", Torsoz)
  4548. GetWeld(Joint4)
  4549. Joint5 = Instance.new("Snap", Torsoz)
  4550. GetWeld(Joint5)
  4551. Stand()
  4552.  
  4553. local animatebg = Instance.new("BodyGyro")
  4554. animatebg.D = 100
  4555. local GravAction = "Idle"
  4556. local PrevGravAction = GravAction
  4557.  
  4558. local prevrapos = (RA.CFrame * CFrame.new(0,-1,0)).p
  4559. local prevlapos = (LA.CFrame * CFrame.new(0,-1,0)).p
  4560. local hue = 0
  4561. local recyclecount = 0
  4562. local tickoffset = tick()
  4563. local fadetab = {}
  4564. local fadetab2 = {}
  4565. local animatebgcount = 0
  4566.  
  4567. for i = 1, 13 do
  4568. local p = P:Clone()
  4569. p.Name = "Part"..i
  4570. local mesh = Instance.new("SpecialMesh", p)
  4571. mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
  4572. mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
  4573. table.insert(fadetab, {p, mesh})
  4574. end
  4575. for i = 1, 13 do
  4576. local p = P:Clone()
  4577. p.Name = "Part"..i
  4578. local mesh = Instance.new("SpecialMesh", p)
  4579. mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
  4580. mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
  4581. table.insert(fadetab2, {p, mesh})
  4582. end
  4583.  
  4584. game:service("RunService").Stepped:connect(function()
  4585. GravAction = "Idle"
  4586. hue = hue + 3
  4587. hue = hue % 360
  4588.  
  4589. ------------- anim angle changing --------
  4590. if animangle > math.pi then
  4591. animplus = false
  4592. elseif animangle < -math.pi then
  4593. animplus = true
  4594. end
  4595. if animplus == true then
  4596. animangle = animangle + animspeed
  4597. elseif animplus == false then
  4598. animangle = animangle - animspeed
  4599. end
  4600.  
  4601. local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-3.9,0))
  4602. if Shift == true then
  4603. Hu.WalkSpeed = sprint
  4604. else
  4605. Hu.WalkSpeed = 16
  4606. end
  4607. if (FOV >= 70 and FOV < 74) and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 25 then
  4608. FOV = FOV + 1
  4609. elseif (FOV <= 74 and FOV > 70) and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude < 20 then
  4610. FOV = FOV - 1
  4611. end
  4612. if pause.Value == true then
  4613. Hu.WalkSpeed = 0
  4614. end
  4615. if Sitting == true then
  4616. local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-2.2,0))
  4617. Hu.PlatformStand = true
  4618. if hitz2 == nil then
  4619. Stand()
  4620. end
  4621. end
  4622. if Diving == true then
  4623. Hu.PlatformStand = true
  4624. DivingBV.velocity = Vector3.new(DivingDir.x*(sprint+2),GravPoint,DivingDir.z*(sprint+2))
  4625. DivingBG.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+DivingBV.velocity) * CFrame.Angles(-math.pi/2,0,0)
  4626.  
  4627. if GravPoint > -180 then
  4628. GravPoint = GravPoint - 2
  4629. end
  4630. end
  4631. if DivingCooldown > 0 then
  4632. DivingCooldown = DivingCooldown - 1
  4633. end
  4634. if HWallRunning == true then
  4635. if HWRGravDrop == false then
  4636. GravPoint = GravPoint - 0.4
  4637. else
  4638. GravPoint = GravPoint - 2
  4639. end
  4640. elseif HWallRunning == "Jumping" then
  4641. GravPoint = GravPoint - 1.7
  4642. end
  4643. ----------------------------- stamina ----------------------------------------
  4644. if Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude > 18 and Action == "Standing" and Shift == true then
  4645. if stamina > 0 then
  4646. stamina = stamina - 0.5
  4647. if stamina < 0 then
  4648. Shift = false
  4649. stamina = 0
  4650. end
  4651. else
  4652. Shift = false
  4653. stamina = 0
  4654. end
  4655. if Action == "Standing" then
  4656. animspeed = 0.85
  4657. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/4.85,0,0))
  4658. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/4.85,0,0))
  4659. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/3.5,0,0))
  4660. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/3.5,0,0))
  4661. end
  4662. elseif Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude > 12 and Action ~= "Sliding" then
  4663. if stamina < maxstamina then
  4664. stamina = stamina + 0.5
  4665. if stamina > maxstamina then
  4666. stamina = maxstamina
  4667. end
  4668. else
  4669. stamina = maxstamina
  4670. end
  4671. if Action == "Standing" then
  4672. animspeed = 0.65
  4673. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/7,0,0))
  4674. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/7,0,0))
  4675. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/5,0,0))
  4676. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/5,0,0))
  4677. end
  4678. elseif Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude < 2 then
  4679. animspeed = 0.1
  4680. if Action == "Standing" then
  4681. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/38,0,0))
  4682. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/38,0,0))
  4683. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/30,0,0))
  4684. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/30,0,0))
  4685. end
  4686. if stamina < maxstamina then
  4687. if Sitting == false then
  4688. stamina = stamina + 0.65
  4689. else
  4690. stamina = stamina + 1.02
  4691. end
  4692. if stamina > maxstamina then
  4693. stamina = maxstamina
  4694. end
  4695. else
  4696. stamina = maxstamina
  4697. end
  4698. end
  4699.  
  4700. if hitz == nil then
  4701. if Torsoz.Velocity.y > 1 or (Torsoz.Velocity.y < -1 and Torsoz.Velocity.y > -90) then
  4702. if Action == "Standing" then
  4703. GravAction = "Rising"
  4704. animspeed = 0.1
  4705. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/38,0,0))
  4706. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/38,0,0))
  4707. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new((math.pi-0.2)+(animangle/30),0,0))
  4708. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new((math.pi-0.2)+(-animangle/30),0,0))
  4709. if animatebg.Parent ~= nil then
  4710. animatebg.Parent = Torsoz
  4711. animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
  4712. local lokvec = Torsoz.CFrame.lookVector*100
  4713. animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z))
  4714. animatebg.Parent = nil
  4715. end
  4716. end
  4717. end
  4718. end
  4719.  
  4720. if hitz == nil then
  4721. local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-6,0))
  4722. if hitz2 == nil then
  4723. if Torsoz.Velocity.y < -90 then
  4724. if Action == "Standing" then
  4725. GravAction = "Falling"
  4726. animspeed = 1.1
  4727. animatebg.Parent = Torsoz
  4728. animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
  4729. local lokvec = Torsoz.CFrame.lookVector*100
  4730. animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z)) * CFrame.Angles(-math.pi/11,animangle/70,0)
  4731. SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.45,-0.8,0), Vector3.new((animangle/27)-0.3,0,0.18))
  4732. SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.45,-0.8,0), Vector3.new((-animangle/27)-0.3,0,-0.18))
  4733. SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.4,0.5,0), Vector3.new((math.pi+0.2)+(animangle/26),0,0.18))
  4734. SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.4,0.5,0), Vector3.new((math.pi+0.2)+(-animangle/26),0,-0.18))
  4735. end
  4736. end
  4737. elseif hitz2.CanCollide == true then
  4738. if animatebg.Parent ~= nil then
  4739. animatebg.Parent = Torsoz
  4740. animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
  4741. local lokvec = Torsoz.CFrame.lookVector*100
  4742. animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z))
  4743. animatebg.Parent = nil
  4744. end
  4745. end
  4746. end
  4747.  
  4748. if GravAction == "Idle" and animatebg.Parent ~= nil then
  4749. animatebg.Parent = nil
  4750. end
  4751.  
  4752. if math.abs(tickoffset - tick()) > 0.05 then
  4753. tickoffset = tick()
  4754. local flowcolor = HSV(hue, 0.7,1)
  4755. recyclecount = (recyclecount % #fadetab) + 1
  4756. if flow.Value > 25 then
  4757. local lapos = (LA.CFrame * CFrame.new(0,-1,0)).p
  4758. local rapos = (RA.CFrame * CFrame.new(0,-1,0)).p
  4759. local p = fadetab[recyclecount]
  4760. p[1].Parent = m
  4761. p[1].CFrame = CFrame.new((lapos+prevlapos)/2, lapos)
  4762. p[2].Scale = Vector3.new(0.5,0.5,(lapos-prevlapos).magnitude*2)
  4763. p[2].VertexColor = Vector3.new(flowcolor.r,flowcolor.g,flowcolor.b)
  4764. p[1].Transparency = math.abs((flow.Value/120) - 0.8)
  4765. p[1].Transparency = p[1].Transparency + (1/#fadetab)
  4766. local p = fadetab2[recyclecount]
  4767. p[1].Parent = m
  4768. p[1].CFrame = CFrame.new((rapos+prevrapos)/2, rapos)
  4769. p[2].Scale = Vector3.new(0.5,0.5,(rapos-prevrapos).magnitude*2)
  4770. p[2].VertexColor = Vector3.new(flowcolor.r,flowcolor.g,flowcolor.b)
  4771. p[1].Transparency = math.abs((flow.Value/120) - 0.8)
  4772. p[1].Transparency = p[1].Transparency + (1/#fadetab)
  4773. end
  4774.  
  4775. for i, v in pairs(fadetab) do
  4776. if v[1].Transparency < 0.9 then
  4777. v[1].Transparency = v[1].Transparency + (1/#fadetab)
  4778. fadetab2[i][1].Transparency = fadetab2[i][1].Transparency + (1/#fadetab)
  4779. elseif v[1].Transparency ~= 1 then
  4780. v[1].Transparency = 1
  4781. v[1].Position = Vector3.new(50000,0,0)
  4782. fadetab2[i][1].Transparency = 1
  4783. fadetab2[i][1].Position = Vector3.new(50000,0,0)
  4784. end
  4785. end
  4786.  
  4787. prevrapos = (RA.CFrame * CFrame.new(0,-1,0)).p
  4788. prevlapos = (LA.CFrame * CFrame.new(0,-1,0)).p
  4789. end
  4790.  
  4791. if flow.Value > 140 then
  4792. if char.Parent ~= nil then
  4793. char:remove()
  4794. end
  4795. end
  4796.  
  4797. if flowcooldown > 0 then
  4798. flowcooldown = flowcooldown - 1
  4799. end
  4800. if HWRCooldown > 0 then
  4801. HWRCooldown = HWRCooldown - 1
  4802. end
  4803. if VWRCooldown > 0 then
  4804. if hitz ~= nil and VWRCooldown > 0 then
  4805. VWRCooldown = VWRCooldown - 1
  4806. end
  4807. end
  4808. if SlideCooldown > 0 then
  4809. SlideCooldown = SlideCooldown - 1
  4810. end
  4811.  
  4812. if Action == "HWallRunning" or Action == "VWallRunning" then
  4813. flow.Value = flow.Value + 0.24
  4814. if flow.Value > 100 then
  4815. flow.Value = 100
  4816. end
  4817. flowcooldown = 40
  4818. elseif Action == "Diving" then
  4819. flowcooldown = 30
  4820. elseif Action == "Sliding" then
  4821. flowcooldown = 15
  4822. elseif Action == "Standing" or Action == "Sitting" then
  4823. if flow.Value > 0 and flowcooldown <= 0 then
  4824. flow.Value = flow.Value - 0.37
  4825. if flow.Value < 0 then
  4826. flow.Value = 0
  4827. end
  4828. end
  4829. end
  4830.  
  4831. cam.FieldOfView = FOV
  4832. prevanimbgcount = animatebgcount
  4833. sprint = defsprint + ((flow.Value/100)*2.4)
  4834. PrevGravAction = GravAction
  4835. Calculate()
  4836. end]]--
  4837. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement