Godofadmin1337

Gafael something

May 1st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.43 KB | None | 0 0
  1. --// Animation Base Created by SavageMunkey
  2. script.Name = 'gtfoh >_> - gafael elfennol'
  3. wait(.05)
  4. local Module_Id = 0 --// Not required, but I use modules somtimes to load union'd models
  5. local Player = game:service'Players'.LocalPlayer
  6. repeat wait() until Player.Character
  7. local Character = Player.Character
  8. local Char, Plr = Character, Player
  9. local Mouse = Player:GetMouse()
  10. local height = 0
  11. local Projectiles={};
  12. --// Settings
  13.  
  14. local NotifyKeyPresses = false
  15. local CanRun = false
  16.  
  17. --// Limbs and what not
  18.  
  19. local Torso = Char:WaitForChild'Torso'
  20. local Head = Char:WaitForChild'Head'
  21. local Left_Arm = Char:WaitForChild'Left Arm'
  22. local Right_Arm = Char:WaitForChild'Right Arm'
  23. local Left_Leg = Char:WaitForChild'Left Leg'
  24. local Right_Leg = Char:WaitForChild'Right Leg'
  25. local HumanoidRootPart = Char:WaitForChild'HumanoidRootPart'
  26. local Humanoid = Char:WaitForChild'Humanoid'
  27.  
  28. --// Debounces
  29.  
  30. local DebounceKeyDown, DebounceState = false, false
  31. local DebounceAFKAnimations = false
  32.  
  33. --// Other Things
  34.  
  35. local State, LastState, Mode = 'Idle', 'Normal'
  36. local AFKAnimSequenceCount,MaxSequenceCount = 0,200
  37.  
  38. --// Abbreiviations
  39.  
  40. local char,Char,plr,Plr = Character, Character, Player, Player
  41. local mouse,ms = Mouse, Mouse
  42. local dkd, debkd = DebounceKeyDown, DebounceKeyDown
  43. local dst, debst, ds, debs = DebounceState,DebounceState,DebounceState,DebounceState
  44. local daa,dafk,debafk = DebounceAFKAnimations,DebounceAFKAnimations,DebounceAFKAnimations
  45. local rs = game:service'RunService'
  46. local lrs = rs.RenderStepped
  47. local srs = rs.Heartbeat
  48. local lleg,rleg = Left_Leg, Right_Leg
  49. local larm,rarm = Left_Arm, Right_Arm
  50. local hed,torr,torso = Head, Torso, Torso
  51. local hum, root = Humanoid, HumanoidRootPart
  52. local vec3,vec2 = Vector3.new, Vector2.new
  53. local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
  54. local cf, ang, eu = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ
  55. local bc,bcr,c3 = BrickColor.new,BrickColor.Random,Color3.new
  56.  
  57. --// Removals and error prevention
  58. local noothers=false
  59. if noothers then
  60. for i,v in next, char:children() do
  61. if v:IsA'Accessory' then v:Destroy() end
  62. if v:IsA'Shirt' then v:Destroy() end
  63. if v:IsA'Pants' then v:Destroy() end
  64. --if v:IsA'Shirt Graphic' then v:Destroy() end
  65. end
  66. pcall(function()
  67. char['Shirt Graphic']:Destroy()
  68. end)
  69. pcall(function()
  70. torso.roblox:Destroy()
  71. end)
  72. pcall(function()
  73. head.face:Destroy()
  74. end)
  75. end
  76.  
  77. if hed:FindFirstChild'Running' then
  78. hed:WaitForChild'Running'.Volume = 0
  79. end
  80. pcall(function()
  81. local bc = char['Body Colors']
  82. local clr = BrickColor.new('Institutional white')
  83. bc.HeadColor=clr
  84. bc.LeftArmColor=clr
  85. end)
  86. --game:service'InsertService':LoadAsset(13702134):children()[1].Parent=char
  87. --game:service'InsertService':LoadAsset(71484026):children()[1].Parent=char
  88. if Char:FindFirstChild'Animate' then
  89. local Anim = Char:WaitForChild'Animate'
  90. local Anim_2 = Anim:Clone()
  91. Anim_2.Disabled = true
  92. Anim_2.Parent = Char
  93. Anim.Disabled = true
  94. Anim_2.Disabled = false
  95. end
  96. if Char:FindFirstChild'Health' then
  97. ypcall(game.Destroy, Char.Health)
  98. end
  99.  
  100. --// Base Functions
  101.  
  102. Weld = function(to, from, c1)
  103. local New_Weld = Instance.new('Weld', to)
  104. New_Weld.Part0 = from
  105. New_Weld.Part1 = to
  106. New_Weld.C1 = c1
  107. return New_Weld
  108. end
  109.  
  110. clerp = function(c1,c2,al)
  111. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  112. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  113. for i,v in pairs(com1) do
  114. com1[i] = v+(com2[i]-v)*al
  115. end
  116. return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))--]]
  117. end
  118.  
  119. lerp = function(c1,c2,al)
  120. return c1:lerp(c2,al)
  121. end
  122.  
  123. snd = function(Id, Parent)
  124. local Sound = Instance.new('Sound', Parent)
  125. Sound.Volume = .25
  126. Sound.SoundId='rbxassetid://'..Id
  127. Sound.PlaybackSpeed=.95
  128. wait()
  129. return Sound
  130. end
  131.  
  132. local sine, change = 0, 1
  133.  
  134. --// Model Optional
  135.  
  136. local m = Instance.new("Model")
  137. m.Name = "fingers"
  138. p1 = Instance.new("Part", m)
  139. p1.BrickColor = BrickColor.new("Medium stone grey")
  140. p1.Name = "middle"
  141. p1.CFrame = CFrame.new(12.4999723, 5.0500493, 21.9000034, 1, -2.44602666e-006, -1.10638405e-006, 2.44602711e-006, 1, 4.63209261e-007, 1.10638291e-006, -4.63211961e-007, 1)
  142. p1.Size = Vector3.new(0.215000004, 0.700000048, 0.215000004)
  143. p2 = Instance.new("Part", m)
  144. p2.BrickColor = BrickColor.new("Medium stone grey")
  145. p2.Name = "pointer"
  146. p2.CFrame = CFrame.new(12.7999716, 5.00005007, 21.9000034, 1, -2.44602666e-006, -1.10638405e-006, 2.44602711e-006, 1, 4.63209261e-007, 1.10638291e-006, -4.63211961e-007, 1)
  147. p2.Size = Vector3.new(0.215000004, 0.600000024, 0.215000004)
  148. p3 = Instance.new("Part", m)
  149. p3.BrickColor = BrickColor.new("Medium stone grey")
  150. p3.Name = "thumb"
  151. p3.CFrame = CFrame.new(12.8999729, 4.95004988, 21.3500023, 1, -2.44602666e-006, -1.10638405e-006, 2.44602711e-006, 1, 4.63209261e-007, 1.10638291e-006, -4.63211961e-007, 1)
  152. p3.Size = Vector3.new(0.215000004, 0.49999997, 0.215000004)
  153. p4 = Instance.new("Part", m)
  154. p4.BrickColor = BrickColor.new("Medium stone grey")
  155. p4.Transparency = 1
  156. p4.Name = "armHW"
  157. p4.CFrame = CFrame.new(12.4999943, 3.7000339, 21.5, -1.10638405e-006, 2.44602666e-006, 1, 4.63209261e-007, -1, 2.44602711e-006, 1, 4.63211961e-007, 1.10638291e-006)
  158. p4.Size = Vector3.new(1, 2, 1)
  159. p5 = Instance.new("Part", m)
  160. p5.BrickColor = BrickColor.new("Medium stone grey")
  161. p5.Name = "pinky"
  162. p5.CFrame = CFrame.new(12.1999722, 4.95004845, 21.9000034, 1, -2.44602666e-006, -1.10638405e-006, 2.44602711e-006, 1, 4.63209261e-007, 1.10638291e-006, -4.63211961e-007, 1)
  163. p5.Size = Vector3.new(0.215000004, 0.5, 0.215000004)
  164. w1 = Instance.new("Weld", p1)
  165. w1.Name = "pointer_Weld"
  166. w1.Part0 = p1
  167. w1.C0 = CFrame.new(-12.4999819, -2.35001493, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  168. w1.Part1 = p2
  169. w1.C1 = CFrame.new(-12.7999811, -2.30001497, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. w2 = Instance.new("Weld", p2)
  171. w2.Name = "thumb_Weld"
  172. w2.Part0 = p2
  173. w2.C0 = CFrame.new(-12.7999811, -2.30001497, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  174. w2.Part1 = p3
  175. w2.C1 = CFrame.new(-12.8999815, -2.25001502, -21.3500023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  176. w3 = Instance.new("Weld", p3)
  177. w3.Name = "armHW_Weld"
  178. w3.Part0 = p3
  179. w3.C0 = CFrame.new(-12.8999815, -2.25001502, -21.3500023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  180. w3.Part1 = p4
  181. w3.C1 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  182. w4 = Instance.new("Weld", p4)
  183. w4.Name = "pinky_Weld"
  184. w4.Part0 = p4
  185. w4.C0 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  186. w4.Part1 = p5
  187. w4.C1 = CFrame.new(-12.1999817, -2.25001502, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  188.  
  189. local f1 = m
  190. f1.Parent=nil
  191.  
  192. local m = Instance.new("Model")
  193. m.Name = "fingers"
  194. p1 = Instance.new("Part", m)
  195. p1.BrickColor = BrickColor.new("Medium stone grey")
  196. p1.Name = "middle"
  197. p1.CFrame = CFrame.new(12.499938, 2.32821345, 21.9010067, 1, -5.83338333e-005, -2.72759116e-005, 5.83215806e-005, 0.99999994, -0.000448981504, 2.73021014e-005, 0.000448979932, 0.999999881)
  198. p1.Size = Vector3.new(0.215000004, 0.700000048, 0.215000004)
  199. p2 = Instance.new("Part", m)
  200. p2.BrickColor = BrickColor.new("Medium stone grey")
  201. p2.Name = "pointer"
  202. p2.CFrame = CFrame.new(12.199975, 2.28902912, 21.9004459, 1, 1.32215405e-006, -9.40560881e-007, -1.32249284e-006, 0.99999994, -0.000360308099, 9.40084419e-007, 0.000360308099, 0.99999994)
  203. p2.Size = Vector3.new(0.215000004, 0.600000024, 0.215000004)
  204. p3 = Instance.new("Part", m)
  205. p3.BrickColor = BrickColor.new("Medium stone grey")
  206. p3.Name = "thumb"
  207. p3.CFrame = CFrame.new(12.0999737, 2.23922753, 21.3504276, 1, 1.32215405e-006, -9.40560881e-007, -1.32249284e-006, 0.99999994, -0.000360308099, 9.40084419e-007, 0.000360308099, 0.99999994)
  208. p3.Size = Vector3.new(0.215000004, 0.49999997, 0.215000004)
  209. p4 = Instance.new("Part", m)
  210. p4.BrickColor = BrickColor.new("Medium stone grey")
  211. p4.Transparency = 1
  212. p4.Name = "armHW"
  213. p4.CFrame = CFrame.new(12.4999924, 0.989158094, 21.4999752, -9.40560881e-007, -1.32215405e-006, 1, -0.000360308099, -0.99999994, -1.32249284e-006, 0.99999994, -0.000360308099, 9.40084419e-007)
  214. p4.Size = Vector3.new(1, 2, 1)
  215. p5 = Instance.new("Part", m)
  216. p5.BrickColor = BrickColor.new("Medium stone grey")
  217. p5.Name = "pinky"
  218. p5.CFrame = CFrame.new(12.7999744, 2.23902845, 21.9004288, 1, 1.32215405e-006, -9.40560881e-007, -1.32249284e-006, 0.99999994, -0.000360308099, 9.40084419e-007, 0.000360308099, 0.99999994)
  219. p5.Size = Vector3.new(0.215000004, 0.5, 0.215000004)
  220. w1 = Instance.new("Weld", p4)
  221. w1.Name = "pointer_Weld"
  222. w1.Part0 = p4
  223. w1.C0 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  224. w1.Part1 = p2
  225. w1.C1 = CFrame.new(-12.1999817, -2.30001497, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. w2 = Instance.new("Weld", p4)
  227. w2.Name = "thumb_Weld"
  228. w2.Part0 = p4
  229. w2.C0 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  230. w2.Part1 = p3
  231. w2.C1 = CFrame.new(-12.0999794, -2.25001502, -21.3500023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  232. w3 = Instance.new("Weld", p4)
  233. w3.Name = "armHW_Weld"
  234. w3.Part0 = p4
  235. w3.C0 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  236. w3.Part1 = p4
  237. w3.C1 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  238. w4 = Instance.new("Weld", p4)
  239. w4.Name = "pinky_Weld"
  240. w4.Part0 = p4
  241. w4.C0 = CFrame.new(-21.5, 1, -12.5, 0, 0, 1, 0, -1, 0, 1, 0, -0)
  242. w4.Part1 = p5
  243. w4.C1 = CFrame.new(-12.7999811, -2.25001502, -21.9000034, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  244.  
  245. local f2=m
  246. f2.Parent=nil
  247. --// Welds
  248.  
  249. local m = Instance.new("Model")
  250. m.Name = "arm_brace"
  251. p1 = Instance.new("Part", m)
  252. p1.BrickColor = BrickColor.new("Medium stone grey")
  253. p1.Transparency = 1
  254. p1.Name = "armhw"
  255. p1.CFrame = CFrame.new(3.49999666, 1.00002205, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  256. p1.Size = Vector3.new(1, 2, 1)
  257. b1 = Instance.new("SpecialMesh", p1)
  258. b1.MeshId = "rbxasset://fonts/rightarm.mesh"
  259. b1.TextureId = ""
  260. b1.MeshType = Enum.MeshType.FileMesh
  261. b1.Name = "Mesh"
  262. p2 = Instance.new("Part", m)
  263. p2.BrickColor = BrickColor.new("Institutional white")
  264. p2.Name = "part"
  265. p2.CFrame = CFrame.new(3.49999666, 1.810022, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  266. p2.Size = Vector3.new(1, 0.200000003, 1)
  267. b2 = Instance.new("SpecialMesh", p2)
  268. b2.MeshId = "rbxasset://fonts/rightarm.mesh"
  269. b2.TextureId = ""
  270. b2.MeshType = Enum.MeshType.FileMesh
  271. b2.Name = "Mesh"
  272. b2.Scale = Vector3.new(1.02999997, 0.0500000007, 1.02999997)
  273. p3 = Instance.new("Part", m)
  274. p3.BrickColor = BrickColor.new("Institutional white")
  275. p3.Name = "part"
  276. p3.CFrame = CFrame.new(3.49999666, 1.65002191, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. p3.Size = Vector3.new(1, 0.200000003, 1)
  278. b3 = Instance.new("SpecialMesh", p3)
  279. b3.MeshId = "rbxasset://fonts/rightarm.mesh"
  280. b3.TextureId = ""
  281. b3.MeshType = Enum.MeshType.FileMesh
  282. b3.Name = "Mesh"
  283. b3.Scale = Vector3.new(1.02999997, 0.0500000007, 1.02999997)
  284. p4 = Instance.new("Part", m)
  285. p4.BrickColor = BrickColor.new("Bright bluish green")
  286. p4.Material = Enum.Material.Neon
  287. p4.Name = "part"
  288. p4.CFrame = CFrame.new(3.49999666, 1.73002207, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. p4.Size = Vector3.new(1, 0.200000003, 1)
  290. b4 = Instance.new("SpecialMesh", p4)
  291. b4.MeshId = "rbxasset://fonts/rightarm.mesh"
  292. b4.TextureId = ""
  293. b4.MeshType = Enum.MeshType.FileMesh
  294. b4.Name = "Mesh"
  295. b4.Scale = Vector3.new(1.03199995, 0.0250000004, 1.03199995)
  296. p5 = Instance.new("Part", m)
  297. p5.BrickColor = BrickColor.new("Institutional white")
  298. p5.Name = "part"
  299. p5.CFrame = CFrame.new(3.49999666, 0.820021987, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. p5.Size = Vector3.new(1, 1.62, 1)
  301. b5 = Instance.new("BlockMesh", p5)
  302. b5.Name = "Mesh"
  303. b5.Scale = Vector3.new(1.01499999, 1, 0.100000001)
  304. p6 = Instance.new("Part", m)
  305. p6.BrickColor = BrickColor.new("Institutional white")
  306. p6.Name = "part"
  307. p6.CFrame = CFrame.new(3.49999666, 1.53002203, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  308. p6.Size = Vector3.new(1, 0.200000003, 1)
  309. b6 = Instance.new("BlockMesh", p6)
  310. b6.Name = "Mesh"
  311. b6.Scale = Vector3.new(1.14999998, 1, 0.100000001)
  312. p7 = Instance.new("Part", m)
  313. p7.BrickColor = BrickColor.new("Smoky grey")
  314. p7.Name = "part"
  315. p7.CFrame = CFrame.new(3.49999666, 1.5300225, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  316. p7.Shape = Enum.PartType.Cylinder
  317. p7.Size = Vector3.new(1, 0.200000003, 1)
  318. b7 = Instance.new("SpecialMesh", p7)
  319. b7.MeshType = Enum.MeshType.Cylinder
  320. b7.Name = "Mesh"
  321. b7.Scale = Vector3.new(1.125, 1, 1)
  322. p8 = Instance.new("Part", m)
  323. p8.BrickColor = BrickColor.new("Smoky grey")
  324. p8.Name = "part"
  325. p8.CFrame = CFrame.new(3.49999666, 1.5300225, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  326. p8.Shape = Enum.PartType.Cylinder
  327. p8.Size = Vector3.new(1, 0.200000003, 1)
  328. b8 = Instance.new("SpecialMesh", p8)
  329. b8.MeshType = Enum.MeshType.Cylinder
  330. b8.Name = "Mesh"
  331. b8.Scale = Vector3.new(1.20000005, 0.25, 0.25)
  332. p9 = Instance.new("Part", m)
  333. p9.BrickColor = BrickColor.new("Fossil")
  334. p9.Name = "part"
  335. p9.CFrame = CFrame.new(3.49999666, 1.64002216, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  336. p9.Size = Vector3.new(1, 0.200000003, 1)
  337. b9 = Instance.new("BlockMesh", p9)
  338. b9.Name = "Mesh"
  339. b9.Scale = Vector3.new(1.14999998, 0.100000001, 0.100000001)
  340. p10 = Instance.new("Part", m)
  341. p10.BrickColor = BrickColor.new("Fossil")
  342. p10.Name = "part"
  343. p10.CFrame = CFrame.new(3.49999666, 1.42002213, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  344. p10.Size = Vector3.new(1, 0.200000003, 1)
  345. b10 = Instance.new("BlockMesh", p10)
  346. b10.Name = "Mesh"
  347. b10.Scale = Vector3.new(1.14999998, 0.100000001, 0.100000001)
  348. p11 = Instance.new("Part", m)
  349. p11.BrickColor = BrickColor.new("Institutional white")
  350. p11.Name = "part"
  351. p11.CFrame = CFrame.new(3.49999666, 0.820021987, 23.7000046, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  352. p11.Size = Vector3.new(1, 1.62, 1)
  353. b11 = Instance.new("BlockMesh", p11)
  354. b11.Name = "Mesh"
  355. b11.Scale = Vector3.new(1.01499999, 1, 0.0250000004)
  356. p12 = Instance.new("Part", m)
  357. p12.BrickColor = BrickColor.new("Institutional white")
  358. p12.Name = "part"
  359. p12.CFrame = CFrame.new(3.89999628, 0.820021987, 23.7000046, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  360. p12.Size = Vector3.new(1, 1.62, 1)
  361. b12 = Instance.new("BlockMesh", p12)
  362. b12.Name = "Mesh"
  363. b12.Scale = Vector3.new(1.01499999, 1, 0.0250000004)
  364. p13 = Instance.new("Part", m)
  365. p13.BrickColor = BrickColor.new("Institutional white")
  366. p13.Name = "part"
  367. p13.CFrame = CFrame.new(3.09999609, 0.820021987, 23.7000046, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  368. p13.Size = Vector3.new(1, 1.62, 1)
  369. b13 = Instance.new("BlockMesh", p13)
  370. b13.Name = "Mesh"
  371. b13.Scale = Vector3.new(1.01499999, 1, 0.0250000004)
  372. p14 = Instance.new("Part", m)
  373. p14.BrickColor = BrickColor.new("Institutional white")
  374. p14.Name = "part"
  375. p14.CFrame = CFrame.new(3.49999666, 0.250021935, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  376. p14.Size = Vector3.new(1, 0.200000003, 1)
  377. b14 = Instance.new("SpecialMesh", p14)
  378. b14.MeshId = "rbxasset://fonts/rightarm.mesh"
  379. b14.TextureId = ""
  380. b14.MeshType = Enum.MeshType.FileMesh
  381. b14.Name = "Mesh"
  382. b14.Scale = Vector3.new(1.02999997, 0.0500000007, 1.02999997)
  383. p15 = Instance.new("Part", m)
  384. p15.BrickColor = BrickColor.new("Institutional white")
  385. p15.Name = "part"
  386. p15.CFrame = CFrame.new(3.49999666, 0.450021982, 23.7000046, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  387. p15.Size = Vector3.new(1, 0.200000003, 1)
  388. b15 = Instance.new("SpecialMesh", p15)
  389. b15.MeshId = "rbxasset://fonts/rightarm.mesh"
  390. b15.TextureId = ""
  391. b15.MeshType = Enum.MeshType.FileMesh
  392. b15.Name = "Mesh"
  393. b15.Scale = Vector3.new(1.02999997, 0.0500000007, 1.02999997)
  394. w1 = Instance.new("Weld", p1)
  395. w1.Name = "part_Weld"
  396. w1.Part0 = p1
  397. w1.C0 = CFrame.new(-4.5, -1.4000001, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  398. w1.Part1 = p2
  399. w1.C1 = CFrame.new(-4.5, -2.21000004, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  400. w2 = Instance.new("Weld", p2)
  401. w2.Name = "part_Weld"
  402. w2.Part0 = p2
  403. w2.C0 = CFrame.new(-4.5, -2.21000004, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. w2.Part1 = p3
  405. w2.C1 = CFrame.new(-4.5, -2.04999995, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  406. w3 = Instance.new("Weld", p3)
  407. w3.Name = "part_Weld"
  408. w3.Part0 = p3
  409. w3.C0 = CFrame.new(-4.5, -2.04999995, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  410. w3.Part1 = p4
  411. w3.C1 = CFrame.new(-4.5, -2.13000011, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  412. w4 = Instance.new("Weld", p4)
  413. w4.Name = "part_Weld"
  414. w4.Part0 = p4
  415. w4.C0 = CFrame.new(-4.5, -2.13000011, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  416. w4.Part1 = p5
  417. w4.C1 = CFrame.new(-4.5, -1.22000003, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  418. w5 = Instance.new("Weld", p5)
  419. w5.Name = "part_Weld"
  420. w5.Part0 = p5
  421. w5.C0 = CFrame.new(-4.5, -1.22000003, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  422. w5.Part1 = p6
  423. w5.C1 = CFrame.new(-4.5, -1.93000007, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  424. w6 = Instance.new("Weld", p6)
  425. w6.Name = "part_Weld"
  426. w6.Part0 = p6
  427. w6.C0 = CFrame.new(-4.5, -1.93000007, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  428. w6.Part1 = p7
  429. w6.C1 = CFrame.new(-4.5, -1.93000054, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  430. w7 = Instance.new("Weld", p7)
  431. w7.Name = "part_Weld"
  432. w7.Part0 = p7
  433. w7.C0 = CFrame.new(-4.5, -1.93000054, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  434. w7.Part1 = p8
  435. w7.C1 = CFrame.new(-4.5, -1.93000054, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  436. w8 = Instance.new("Weld", p8)
  437. w8.Name = "part_Weld"
  438. w8.Part0 = p8
  439. w8.C0 = CFrame.new(-4.5, -1.93000054, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  440. w8.Part1 = p9
  441. w8.C1 = CFrame.new(-4.5, -2.0400002, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  442. w9 = Instance.new("Weld", p9)
  443. w9.Name = "part_Weld"
  444. w9.Part0 = p9
  445. w9.C0 = CFrame.new(-4.5, -2.0400002, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  446. w9.Part1 = p10
  447. w9.C1 = CFrame.new(-4.5, -1.82000017, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  448. w10 = Instance.new("Weld", p10)
  449. w10.Name = "part_Weld"
  450. w10.Part0 = p10
  451. w10.C0 = CFrame.new(-4.5, -1.82000017, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  452. w10.Part1 = p11
  453. w10.C1 = CFrame.new(23.5, -1.22000003, -4.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  454. w11 = Instance.new("Weld", p11)
  455. w11.Name = "part_Weld"
  456. w11.Part0 = p11
  457. w11.C0 = CFrame.new(23.5, -1.22000003, -4.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  458. w11.Part1 = p12
  459. w11.C1 = CFrame.new(23.5, -1.22000003, -4.89999962, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  460. w12 = Instance.new("Weld", p12)
  461. w12.Name = "part_Weld"
  462. w12.Part0 = p12
  463. w12.C0 = CFrame.new(23.5, -1.22000003, -4.89999962, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  464. w12.Part1 = p13
  465. w12.C1 = CFrame.new(23.5, -1.22000003, -4.09999943, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  466. w13 = Instance.new("Weld", p13)
  467. w13.Name = "part_Weld"
  468. w13.Part0 = p13
  469. w13.C0 = CFrame.new(23.5, -1.22000003, -4.09999943, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  470. w13.Part1 = p14
  471. w13.C1 = CFrame.new(-4.5, -0.649999976, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  472. w14 = Instance.new("Weld", p14)
  473. w14.Name = "part_Weld"
  474. w14.Part0 = p14
  475. w14.C0 = CFrame.new(-4.5, -0.649999976, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  476. w14.Part1 = p15
  477. w14.C1 = CFrame.new(-4.5, -0.850000024, -23.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  478.  
  479. local b1=m
  480. b1.Parent=char
  481.  
  482. local handle1 = nil
  483. local hitbox1 = nil
  484. local trailbox1 = nil
  485.  
  486. local llw = Weld(Left_Leg, Torso, cf(.5,2,0))
  487. local rlw = Weld(Right_Leg, Torso, cf(-.5,2,0))
  488. local raw = Weld(Right_Arm, Torso, cf(-1.5,0,0))
  489. local law = Weld(Left_Arm, Torso, cf(1.5,0,0))
  490. local torw = Weld(Torso, HumanoidRootPart, cf(0,0,0))
  491. local hedw = Weld(Head, Torso, cf(0,-1.5,0))
  492. local h1w = Weld(rarm, f2['armHW'], cf(0,0,0)*ang(0,rad(0),0)) --// if weapon model
  493. local bracew = Weld(rarm, b1['armhw'], cf(0,0,0)*ang(0,0,0)) --// if weapon model
  494. --local tw=f2['armHW'].thumb_Weld
  495. --local pinw=f2['armHW'].pinky_Weld
  496. --local poiw=f2['armHW'].pointer_Weld
  497. --local mw=f2['armHW'].middle_Weld
  498. --local h2w = Weld(larm, f1['armHW'], cf(0,0,0)*ang(0,rad(90),0))--// if dual weapon model
  499.  
  500. --[[ State Example: Arms Out
  501. raw.C0 = clerp(raw.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  502. law.C0 = clerp(law.C0, cf(0,.5,-.5)*ang(rad(90),0,0),.1)
  503. --]]
  504.  
  505. local Used = {
  506. Executed={};
  507. Failed={};
  508. };
  509. local Keys={};
  510.  
  511. local BindKey = function(Name, Key, Function)
  512. local keydown
  513. Keys[Key]=Name
  514. keydown = mouse.KeyDown:connect(function(key)
  515. if Key:lower() == key:lower() then
  516. if dkd then
  517. table.insert(Used.Failed, {Name, Key, Function})
  518. else
  519. if NotifyKeyPresses then
  520. warn('executed('..Name..', "'..tostring(Key:upper())..'")')
  521. end
  522. Function(Name, Key)
  523. if NotifyKeyPresses then
  524. warn('ended('..Name..')')
  525. end
  526. table.insert(Used.Executed, {Name, Key, Function})
  527. end
  528. end
  529. end)
  530. end
  531.  
  532. --[[
  533.  
  534. BindKey('Attack Name', 'Key{Not case sensative}', function(AttackName, Key)
  535. ds,dkd = true,true
  536. for i = 0,1,.05 do
  537. local animspd = .1
  538. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  539. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  540. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  541. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  542. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  543. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  544. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  545. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  546. lrs:wait()
  547. end
  548. for i = 0,1,.05 do
  549. local animspd = .1
  550. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  551. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  552. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  553. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  554. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  555. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  556. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  557. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  558. lrs:wait()
  559. end
  560. ds,dkd = false,false
  561. end)
  562.  
  563. --]]
  564.  
  565. function rainb(hue)
  566. local section = hue % 1 * 3
  567. local secondary = 0.5 * math.pi * (section % 1)
  568. if section < 1 then
  569. return c3(1, 1 - cos(secondary), 1 - sin(secondary))
  570. elseif section < 2 then
  571. return c3(1 - sin(secondary), 1, 1 - cos(secondary))
  572. else
  573. return c3(1 - cos(secondary), 1 - sin(secondary), 1)
  574. end
  575. end
  576.  
  577. local CRIT = false
  578. showDamage = function(Parent, Txt, RemovalTime, Clr)
  579. ypcall(function()
  580. --// Sav's ShowDamage script
  581. if string.find('critical',Txt:lower()) then
  582. Clr = 'Really red'
  583. print'crit'
  584. end
  585. local Clr_Raw = Clr
  586. if Clr == nil then Clr = 'Mulberry' end
  587. Clr = bc(Clr).Color
  588. local Pert = Instance.new('Part', Parent)
  589. Pert.Size = vec3(.2,.2,.2)
  590. Pert.Transparency = 1
  591. Pert.CanCollide = false
  592. Pert.Anchored = true
  593. Pert.CFrame = Parent:FindFirstChild'Head'.CFrame
  594. Pert.BrickColor = bc'Really black'
  595. local Gui = Instance.new('BillboardGui',Pert)
  596. Gui.Adornee = Pert
  597. local n2 = 10
  598. Gui.Size = UDim2.new(n2,0,n2,0)
  599. local TextL = Instance.new('TextLabel', Gui)
  600. local r,g,b = Clr.r,Clr.g,Clr.b
  601. local clr = c3(r,g,b)
  602. if Clr_Raw:lower() == 'rainbow' then
  603. lrs:connect(function()
  604. Clr = rainb(tick()/3)
  605. r,g,b = Clr.r,Clr.g,Clr.b
  606. clr = c3(r,g,b)
  607. end)
  608. end
  609. ypcall(function()
  610. if type(tonumber(Txt)) == 'number' then
  611. TextL.Text = tostring(math.floor(tonumber(Txt)))
  612. else
  613. TextL.Text = tostring(Txt)
  614. end
  615. end)
  616. TextL.BackgroundTransparency = 1
  617. TextL.Font = 'SourceSansLight'
  618. TextL.Size = UDim2.new(1,0,1,0)
  619. TextL.TextScaled = true
  620. TextL.FontSize = 'Size8'
  621. TextL.TextColor3 = clr
  622. local n = 10
  623. local sp = Pert.CFrame * cf(rand(-n,n),rand(-n,n),rand(-n,n))
  624. lrs:connect(function()
  625. Pert.CFrame = clerp(Pert.CFrame,sp,.01)
  626. clr = c3(r,g,b)
  627. TextL.TextColor3 = clr
  628. end)
  629. delay(RemovalTime+1, function()
  630. local rn,bn,gn = 1-r,1-b,1-g
  631. spawn(function()
  632. for i = 0,1,.025 do
  633. TextL.TextTransparency = i
  634. lrs:wait()
  635. end
  636. Pert:Destroy()
  637. end)
  638. spawn(function()
  639. for i = 0,rn,.01 do
  640. r = rn-i
  641. lrs:wait()
  642. end
  643. end)
  644. spawn(function()
  645. for i = 0,bn,.01 do
  646. b = bn-i
  647. lrs:wait()
  648. end
  649. end)
  650. spawn(function()
  651. for i = 0,gn,.01 do
  652. g = gn-i
  653. lrs:wait()
  654. end
  655. end)
  656. end)
  657. end)
  658. end
  659.  
  660. CheckIfLanded = function()
  661. local Ray = Ray.new(torso.Position,vec3(0,-1,0)*10)
  662. local Ignore = {Char}
  663. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  664. if Hit == nil then return false,nil end
  665. return true,Hit
  666. end;
  667.  
  668. FindNearestTorso = function(Position, Distance, SinglePlayer)
  669. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  670. local List = {}
  671. for i,v in pairs(workspace:GetChildren())do
  672. if v:IsA("Model")then
  673. if v:findFirstChild("Torso")then
  674. if v ~= Char then
  675. if(v.Torso.Position -Position).magnitude <= Distance then
  676. table.insert(List,v)
  677. end
  678. end
  679. end
  680. end
  681. end
  682. return List
  683. end
  684.  
  685. DebounceHit = false
  686.  
  687. NewFXBox = function(name,prnt)
  688. if prnt == nil then
  689. prnt = Character
  690. end
  691. local FXBox = Instance.new('Model', prnt)
  692. FXBox.Name = 'FXBox'
  693. if name then
  694. FXBox.Name = name
  695. end
  696. local Count = 0
  697. local Check
  698. Check = FXBox.ChildAdded:connect(function(Object)
  699. if Object:IsA'BasePart' then
  700. FXBox.PrimaryPart = Object
  701. Check:disconnect()
  702. end
  703. end)
  704. return FXBox
  705. end
  706.  
  707. ReSurface = function(Part, Integer)
  708. if Part ~= nil and Part:IsA'BasePart' then
  709. Part.TopSurface = Integer
  710. Part.BottomSurface = Integer
  711. Part.LeftSurface = Integer
  712. Part.RightSurface = Integer
  713. Part.FrontSurface = Integer
  714. Part.BackSurface = Integer
  715. end
  716. end
  717.  
  718. function ni(name,prnt)
  719. return Instance.new(tostring(name),prnt)
  720. end
  721.  
  722. local TrailModel = NewFXBox'TrailBOX'
  723. function NewPart(prnt)
  724. local NPart = ni('Part', prnt)
  725. ReSurface(NPart,10)
  726. if prnt:IsA'BasePart' then
  727. NPart.CFrame = prnt.CFrame
  728. end
  729. NPart.Anchored = true
  730. NPart.Size = vec3(1,1,1)
  731. NPart.CanCollide = false
  732. --NPart.TopSurface,NPart.BottomSurface=0,0
  733. NPart.BrickColor = bc'Toothpaste'
  734. return NPart
  735. end
  736.  
  737. function GenTrail(Origin, Time) --// SavageMunkey's Trail
  738. --[[
  739. local Last = Origin
  740. spawn(function()
  741. lrs:wait()
  742. Last = Origin
  743. local fb = NewFXBox('trails',nil)
  744. local Part = NewPart(fb)
  745. --Part.CFrame = Origin.CFrame
  746. end)
  747. --]]
  748. end
  749.  
  750. function MagDmg(Part,magni,knock,func)
  751. for _,c in pairs(workspace:children()) do
  752. local hum=c:findFirstChild("Humanoid")
  753. if hum~=nil then
  754. local head=c:findFirstChild("Torso")
  755. if head~=nil then
  756. local targ=head.Position-Part.Position
  757. local mag=targ.magnitude
  758. if mag<=magni and c.Name~=Player.Name then
  759. func(c,hum)
  760. end
  761. end
  762. end
  763. end
  764. end
  765.  
  766. local Element='Ice'
  767.  
  768. BindKey('Controls', ']', function(Name, Key)
  769. for i,v in next, Keys do
  770. warn('\' '..i:upper()..' \' : '..v)
  771. end
  772. end)
  773.  
  774. BindKey('Ground Water Ascend', 'g', function(AttackName, Key)
  775. ds,dkd = true,true
  776. local fb=NewFXBox('derp')
  777. for i = 0,1,.05 do
  778. local animspd = .15
  779. torw.C0 = clerp(torw.C0, cf(0,0,0)*CFrame.new(-1.90734863e-006, 2.6224041, -0.0868358612, 0.939692259, -2.83122063e-007, 0.342021227, -0.0593909919, 0.984807849, 0.163175672, -0.336825192, -0.17364791, 0.92541635)*ang(0,-rad(40),0),animspd)
  780. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(-0.0447119251, 0.0056065321, 0.122857794, 0.938856542, 0.0298092216, 0.34301576, -0.0560224578, 0.996194899, 0.0667644441, -0.339720368, -0.0818988383, 0.936954021)*ang(0,0,0),animspd)
  781. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(-0.330499291, 0.172678888, -0.699603319, 0.906182826, 0.387694091, 0.168896496, -0.0199337415, 0.438106418, -0.898702145, -0.42241621, 0.811021686, 0.404732645)*ang(0,0,0),animspd)
  782. raw.C0 = clerp(raw.C0, cf(0,0,0)*CFrame.new(0.264802456, -0.208232492, -0.1720258, 0.958214164, -0.284303367, -0.0315763652, 0.262002051, 0.916593254, -0.302012861, 0.114805937, 0.281119943, 0.952780902)*ang(0,0,0),animspd)
  783. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(-2.83122063e-006, 2.33650208e-005, -1.93715096e-006, 0.99999994, 0, 0, 0, 1, -1.49011612e-008, 0, -1.49011612e-008, 1.00000012)*ang(0,0,0),animspd)
  784. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.0261345506, 0.165382981, -0.928192735, 0.99999994, -1.49011612e-008, -2.98023224e-008, 0, 0.866025984, 0.499999344, 0, -0.499999344, 0.866025925)*ang(0,0,0),animspd)
  785. lrs:wait()
  786. end
  787. local hp=root.CFrame
  788. local positions={}
  789. local partz={}
  790. for i=0,16,2 do
  791. local np=NewPart(fb)
  792. np.CFrame=hp*ang(0,-rad(i),0)*cf(-8+i,-3.2,-14)*eu(rad(rand(-4,4)),rad(rand(-20,20)),rad(rand(-7,7)))
  793. np.Size=Vector3.new(2,.2,2)
  794. np.Transparency=1
  795. table.insert(positions,np.CFrame)
  796. local np2=NewPart(np)
  797. table.insert(partz,np)
  798. table.insert(partz,np2)
  799. np2.CFrame=np.CFrame*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))
  800. np2.Size=Vector3.new(3.5,3.5,3.5)
  801. np2.Transparency=0
  802. np2.Material='Slate'
  803. np2.Color=bc'Pastel blue-green'.Color
  804. local P_E = Instance.new('ParticleEmitter', np)
  805. P_E.Color = ColorSequence.new(bc'Toothpaste'.Color,Color3.new(1,1,1))
  806. P_E.LightEmission = 1
  807. P_E.Size = NumberSequence.new(.1,.4)
  808. P_E.Texture = 'rbxassetid://242201991'
  809. P_E.Transparency = NumberSequence.new(.1,.3)
  810. P_E.ZOffset = 0
  811. P_E.Name = 'fog'
  812. P_E.LockedToPart = false
  813. P_E.Lifetime = NumberRange.new(1,3)
  814. P_E.Rate = 100
  815. P_E.RotSpeed = NumberRange.new(15,30)
  816. P_E.Speed = NumberRange.new(1,3)
  817. P_E.VelocitySpread = 80
  818. wait(.1)
  819. delay(5,function()
  820. P_E:Destroy()
  821. end)
  822. end
  823. wait(.2)
  824. delay(.1,function()
  825. for i,v in next, positions do
  826. local np3=NewPart(fb)
  827. table.insert(partz,np3)
  828. np3.CFrame=v*cf(0,-6,0)
  829. np3.Size=Vector3.new(3,12,3)
  830. np3.Transparency=.3
  831. np3.CanCollide=true
  832. np3.Material='Slate'
  833. np3.Color=bc'Pastel light blue'.Color
  834. spawn(function()
  835. local pos=np3.CFrame
  836. for i = 0,12,.5 do
  837. np3.CFrame=clerp(np3.CFrame,pos*cf(0,i,0),.2)
  838. lrs:wait()
  839. end
  840. end)
  841. end
  842. end)
  843. for i = 0,1,.05 do
  844. local animspd = .15
  845. torw.C0 = clerp(torw.C0, cf(0,0,0)*CFrame.new(-1.90734863e-006, 2.62240314, -0.0868415833, 0.93969202, -3.74391675e-007, 0.342022032, -0.0593913011, 0.984807849, 0.163176328, -0.336825907, -0.173648596, 0.925415754)*ang(0,-rad(40),0),animspd)
  846. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(-0.0535775274, 0.0289516449, -0.288858682, 0.943033874, 0.0357196219, 0.33077392, 0.0307064224, 0.98063153, -0.193440214, -0.331276864, 0.192577541, 0.923671782)*ang(0,0,0),animspd)
  847. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(-0.184325457, 0.845791936, -0.885428011, 0.906183124, 0.360723317, -0.22070609, -0.0199345555, -0.484886765, -0.874349892, -0.422415763, 0.796720564, -0.43220526)*ang(0,0,0),animspd)
  848. raw.C0 = clerp(raw.C0, cf(0,0,0)*CFrame.new(-0.179211617, 0.799872458, -0.283458829, 0.948380113, 0.313267231, -0.0493861586, 0.123820588, -0.509127736, -0.851737916, -0.291965395, 0.801656187, -0.521635532)*ang(0,0,0),animspd)
  849. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(-5.78165054e-006, 2.27689743e-005, -3.82959843e-006, 1.00000012, 1.86264515e-009, 2.98023224e-008, 1.86264515e-009, 1.00000012, 0, 2.98023224e-008, 0, 1)*ang(0,0,0),animspd)
  850. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.0261363983, 0.165383101, -0.928189278, 1.00000012, -1.49011612e-008, 0, 1.86264515e-009, 0.866026282, 0.499998599, 2.98023224e-008, -0.499998569, 0.866026282)*ang(0,0,0),animspd)
  851. lrs:wait()
  852. end
  853. delay(rand(8,16),function()
  854. for i,v in next, partz do
  855. spawn(function()
  856. for i = 0,2,.05 do
  857. v.Transparency=v.Transparency+.05
  858. lrs:wait()
  859. end
  860. v:Destroy()
  861. end)
  862. end
  863. end)
  864. ds,dkd = false,false
  865. end)
  866.  
  867. BindKey('Lay Down', 'l', function(AttackName, Key)
  868. ds,dkd = true,true
  869. hum.WalkSpeed = 0
  870. delay(.5,function()
  871. hum.WalkSpeed = 10
  872. end)
  873. repeat
  874. FaceMouse()
  875. local animspd = .2
  876. torw.C0 = clerp(torw.C0, cf(0,0-sin(sine/16)/3,0)*CFrame.new(-0.482990265, 2.22939396, -0.200000048, 0.24999994, -0.950350344, -0.185295373, 0.933012784, 0.18529515, 0.30846864, -0.258818954, -0.250000119, 0.933012664)*ang(0,0,0),animspd)
  877. hedw.C0 = clerp(hedw.C0, cf(0,0,-cos(sine/16)/26)*CFrame.new(-0.359177589, 0.1250664, -0.0787416622, 0.933012843, 0.308469027, -0.185295075, -0.314705104, 0.949178934, -0.00448743999, 0.174493939, 0.0625000745, 0.982672632)*ang(cos(sine/16)/26,0,0),animspd)
  878. law.C0 = clerp(law.C0, CFrame.new(0.468412578, 0.981580019, 0.0708976835, 0.946090937, -0.29880929, 0.125000089, -0.305040181, -0.951745093, 0.0336439162, 0.108915083, -0.0699602216, -0.991586149)*ang(0,0,0),animspd)
  879. raw.C0 = clerp(raw.C0, CFrame.new(-0.828222156, 0.864441633, 0.30142796, 0.685298264, 0.726752639, -0.0468733013, -0.302758366, 0.225768551, -0.925940633, -0.662347257, 0.648736715, 0.374749154)*ang(0,0,0),animspd)
  880. rlw.C0 = clerp(rlw.C0, cf(cos(sine/16)/26,0,0)*CFrame.new(0.527912021, 0.244418263, -0.249614716, 0.899519026, 0.37500006, -0.224144161, -0.313563436, 0.911415875, 0.266457021, 0.304209858, -0.169399709, 0.937422037)*ang(0,0,-cos(sine/16)/26),animspd)
  881. llw.C0 = clerp(llw.C0, CFrame.new(-0.228842348, 0.386762857, -0.514651418, 0.933012784, -0.174494147, -0.314704657, 0.18529515, 0.982672751, 0.00448712707, 0.30846864, -0.0624997914, 0.949179053)*ang(0,0,0),animspd)
  882. lrs:wait()
  883. until State == 'Moving'
  884. hum.WalkSpeed = 0
  885. ds,dkd = false,false
  886. end)
  887.  
  888. BindKey('Play Around', 'k', function(AttackName, Key)
  889. ds,dkd = true,true
  890. hum.WalkSpeed = 0
  891. delay(.5,function()
  892. hum.WalkSpeed = 10
  893. end)
  894. local ball=NewPart(rarm)
  895. ball.CFrame=rarm.CFrame*cf(0,-1.5,-.9)
  896. ball.Size=Vector3.new(.5,.5,.5)
  897. ball.Anchored=false
  898. ball.Color=bc'Pastel blue-green'.Color
  899. ball.Transparency=.3
  900. ball.Material='Slate'
  901. local btaw=Weld(Right_Arm,ball,cf(0,-1,-.8))
  902. local i=0
  903. repeat
  904. i=i+1
  905. --FaceMouse()
  906. local animspd = .25
  907. btaw.C0=lerp(btaw.C0,cf(0,0,.2-sin(sine/5)/3)*eu(0,0,rad(i)),animspd)
  908. torw.C0 = clerp(torw.C0, cf(-sin(sine/5)/16,-sin(sine/5)/8,0)*CFrame.new(0, 3, 0, 1.00000012, -2.32830644e-009, -1.39698386e-008, -2.32830644e-009, 0.99999994, 0, -1.39698386e-008, 0, 1)*ang(-rad(90),0,-cos(sine/5)/40),animspd)
  909. hedw.C0 = clerp(hedw.C0, cf(0,0,sin(sine/5)/7)*CFrame.new(-0.0139540099, 0.340087056, -0.558372915, 0.936116934, 0.0266671758, -0.350676477, -0.218770072, 0.824873686, -0.521270633, 0.275362939, 0.564687848, 0.778012216)*ang(-sin(sine/5)/7,-rad(22),0),animspd/4)
  910. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(0.440753937, 0.203005075, -0.169209003, 0.692407012, -0.70642823, 0.146737024, -0.591227055, -0.672093213, -0.445804089, 0.413549572, 0.221922994, -0.883021474)*ang(0,0,0),animspd)
  911. raw.C0 = clerp(raw.C0, cf(0,0,-cos(sine/5)/7)*CFrame.new(0.1588518858, 1.16434693, -0.746104658, 0.965925932, -0.258818775, 1.30617991e-006, -0.166364551, -0.620885551, -0.766044259, 0.19826743, 0.739941835, -0.642787755)*ang(-cos(sine/5)/7,0,0),animspd)
  912. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(0.79446888, 0.0219111443, -0.843867457, 0.902859271, 0.344731003, 0.256915927, -0.422617853, 0.821394563, 0.383021235, -0.0789900646, -0.454391539, 0.887293041)*ang(0,0,0),animspd)
  913. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.368179977, 0.269208193, -0.0977735668, 0.934236646, -0.347736239, 0.0792566538, 0.341038465, 0.936031103, 0.0868240446, -0.104378559, -0.0540845841, 0.993065894)*ang(0,0,0),animspd)
  914. lrs:wait()
  915. until State == 'Moving'
  916. btaw:Destroy()
  917. ball:Destroy()
  918. hum.WalkSpeed = 0
  919. ds,dkd = false,false
  920. end)
  921.  
  922. local icepet,firepet,voidpet,earthpet=false,false,false,false
  923.  
  924. BindKey('Summon Pet', 'f', function(AttackName,Key)
  925. if Element=='Ice' and icepet==false then
  926. local fb = NewFXBox('summon_effects')
  927. local s1=snd(588738712,fb)
  928. local s2=snd(588732660,fb)
  929. local s3=snd(588731098,fb)
  930. local s4=snd(588730685,fb)
  931. local s5=snd(588737825,fb)
  932. --wait()
  933. hum.WalkSpeed=0
  934. ds,dkd = true,true
  935. for i = 0,1,.01 do
  936. local animspd = .1
  937. torw.C0 = clerp(torw.C0, cf(0,-sin(sine/16)/5.5,0)*CFrame.new(0, 2.62240458, -0.0868360996, 0.939693093, 8.75157298e-008, 0.342019022, -0.0593910068, 0.984807849, 0.163175792, -0.336823016, -0.173648015, 0.925417006)*ang(0,0,0),animspd)
  938. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(-0.0447137877, 0.00560760498, 0.122847803, 0.423539102, 0.0298085548, -0.905387402, 0.0616278872, 0.996194839, 0.0616276935, 0.903779149, -0.0818988532, 0.420090407)*ang(0,0,0),animspd)
  939. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(-0.346446753, -0.287446797, 0.0445638299, 0.939692378, 0.336825192, 0.0593916476, -0.34071973, 0.937029302, 0.0767228007, -0.0298095942, -0.0923317373, 0.995281935)*ang(0,0,0),animspd)
  940. raw.C0 = clerp(raw.C0, cf(0,0,0)*CFrame.new(1.92405653, -1.00079525, -0.291472614, 0.0773547888, -0.984707892, 0.156099021, 0.995029986, 0.0664025024, -0.074204661, 0.0627045333, 0.161063224, 0.984950125)*ang(0,0,0),animspd)
  941. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(-1.01327896e-006, 2.21729279e-005, -4.47034836e-007, 1.00000012, 0, 0, 0, 1.00000012, 1.49011612e-008, 0, 1.49011612e-008, 1)*ang(0,0,0),animspd)
  942. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.026132524, 0.165382504, -0.928200483, 1.00000012, 0, 2.98023224e-008, 0, 0.866025627, 0.499999732, 0, -0.499999642, 0.866025567)*ang(0,0,0),animspd)
  943. lrs:wait()
  944. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  945. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,-rad(90),0),animspd)
  946. end
  947. ds=false
  948. local np=Instance.new('Part',fb)
  949. np.Size=Vector3.new(1.25,1.25,1.25)
  950. np.Shape='Ball'
  951. np.Material='Neon'
  952. np.Transparency=1
  953. np.Color=bc'Pastel blue-green'.Color
  954. np.Anchored,np.CanCollide=true,false
  955. np.CFrame=rarm.CFrame*cf(.9,-1,0)
  956. s1:Play()
  957. for i = 0,.3,.05 do
  958. np.Transparency=1-i
  959. lrs:wait()
  960. end
  961. wait(.5)
  962. local perts={}
  963. for i = 0,1.5,.15 do
  964. local np2=Instance.new('Part',fb)
  965. np2.Size=Vector3.new(.2+i,.2+i,.2+i)
  966. np2.Material='Slate'
  967. np2.Transparency=.5
  968. np2.Color=bc'Pastel blue-green'.Color
  969. np2.Anchored,np2.CanCollide=true,false
  970. np2.CFrame=np.CFrame*ang(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360)))
  971. table.insert(perts,np2)
  972. lrs:wait()
  973. end
  974. s3:play()
  975. s4:Play()
  976. wait(.75)
  977. local can={}
  978. for i,v in next, perts do
  979. can[i]=false
  980. spawn(function()
  981. for i = 0,.5,.5 do
  982. v.Transparency=.5-i
  983. lrs:wait()
  984. end
  985. v.Transparency=0
  986. can[i]=true
  987. end)
  988. end
  989. local continue=true
  990. repeat
  991. for i,v in next, can do
  992. if v then
  993. continue=false
  994. end
  995. end
  996. lrs:wait()
  997. until continue
  998. --print'dun'
  999. for i,v in next, perts do
  1000. local bp=Instance.new('BodyPosition',v)
  1001. bp.P=50000
  1002. bp.D=2000
  1003. v.Anchored=false
  1004. bp.position = v.Position+vec3(rand(-8,8),8,rand(-8,8))
  1005. delay(.5,function()
  1006. bp:Destroy()
  1007. v.CanCollide=true
  1008. delay(2,function()
  1009. for i = 0,1,.01 do
  1010. v.Transparency=i
  1011. lrs:wait()
  1012. end
  1013. v:Destroy()
  1014. end)
  1015. end)
  1016. end
  1017. s2:Play()
  1018. np.Material='Slate'
  1019. ds=true
  1020. for i = 0,1,.05 do
  1021. local animspd = .1
  1022. np.CFrame=clerp(np.CFrame,rarm.CFrame*cf(.9,-1,0),.5)
  1023. torw.C0 = clerp(torw.C0, cf(0,-sin(sine/16)/5.5,0)*CFrame.new(0, 2.62240458, -0.0868360996, 0.939693093, 8.75157298e-008, 0.342019022, -0.0593910068, 0.984807849, 0.163175792, -0.336823016, -0.173648015, 0.925417006)*ang(0,0,0),animspd)
  1024. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(-0.0447137877, 0.00560760498, 0.122847803, 0.423539102, 0.0298085548, -0.905387402, 0.0616278872, 0.996194839, 0.0616276935, 0.903779149, -0.0818988532, 0.420090407)*ang(0,0,0),animspd)
  1025. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(-0.346446753, -0.287446797, 0.0445638299, 0.939692378, 0.336825192, 0.0593916476, -0.34071973, 0.937029302, 0.0767228007, -0.0298095942, -0.0923317373, 0.995281935)*ang(0,0,0),animspd)
  1026. raw.C0 = clerp(raw.C0, cf(-rad(6),-rad(6),0)*CFrame.new(1.92405653, -1.00079525, -0.291472614, 0.0773547888, -0.984707892, 0.156099021, 0.995029986, 0.0664025024, -0.074204661, 0.0627045333, 0.161063224, 0.984950125)*ang(0,0,-rad(6)),animspd)
  1027. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(-1.01327896e-006, 2.21729279e-005, -4.47034836e-007, 1.00000012, 0, 0, 0, 1.00000012, 1.49011612e-008, 0, 1.49011612e-008, 1)*ang(0,0,0),animspd)
  1028. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.026132524, 0.165382504, -0.928200483, 1.00000012, 0, 2.98023224e-008, 0, 0.866025627, 0.499999732, 0, -0.499999642, 0.866025567)*ang(0,0,0),animspd)
  1029. lrs:wait()
  1030. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1031. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,-rad(90),0),animspd)
  1032. end
  1033. for i = 0,1,.05 do
  1034. local animspd = .3
  1035. np.CFrame=clerp(np.CFrame,rarm.CFrame*cf(.9+i/3,-1-i*1.5,0),.25)
  1036. torw.C0 = clerp(torw.C0, cf(0,-sin(sine/16)/5.5,0)*CFrame.new(0, 2.62240458, -0.0868360996, 0.939693093, 8.75157298e-008, 0.342019022, -0.0593910068, 0.984807849, 0.163175792, -0.336823016, -0.173648015, 0.925417006)*ang(0,0,0),animspd)
  1037. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(-0.0447137877, 0.00560760498, 0.122847803, 0.423539102, 0.0298085548, -0.905387402, 0.0616278872, 0.996194839, 0.0616276935, 0.903779149, -0.0818988532, 0.420090407)*ang(0,0,0),animspd)
  1038. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(-0.346446753, -0.287446797, 0.0445638299, 0.939692378, 0.336825192, 0.0593916476, -0.34071973, 0.937029302, 0.0767228007, -0.0298095942, -0.0923317373, 0.995281935)*ang(0,0,0),animspd)
  1039. raw.C0 = clerp(raw.C0, cf(rad(25),rad(25),0)*CFrame.new(1.92405653, -1.00079525, -0.291472614, 0.0773547888, -0.984707892, 0.156099021, 0.995029986, 0.0664025024, -0.074204661, 0.0627045333, 0.161063224, 0.984950125)*ang(0,0,rad(25)),animspd)
  1040. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(-1.01327896e-006, 2.21729279e-005, -4.47034836e-007, 1.00000012, 0, 0, 0, 1.00000012, 1.49011612e-008, 0, 1.49011612e-008, 1)*ang(0,0,0),animspd)
  1041. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(-0.026132524, 0.165382504, -0.928200483, 1.00000012, 0, 2.98023224e-008, 0, 0.866025627, 0.499999732, 0, -0.499999642, 0.866025567)*ang(0,0,0),animspd)
  1042. lrs:wait()
  1043. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1044. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,-rad(90),0),animspd)
  1045. end
  1046. s5:Play()
  1047. for i = 0,.7,.05 do
  1048. np.Transparency=.7-i
  1049. lrs:wait()
  1050. end
  1051. np.Transparency=0
  1052. np.CFrame=cf(np.Position)
  1053. np.CFrame=np.CFrame*ang(0,-rad(90),0)
  1054. np.Parent=char
  1055. --print(ncf)
  1056. local e1=Instance.new('Part',np)
  1057. e1.Size=Vector3.new(.4,.4,.4)
  1058. e1.Material='Neon'
  1059. e1.Transparency=0
  1060. e1.Color=bc'Pastel blue-green'.Color
  1061. e1.Anchored,e1.CanCollide=true,false
  1062. e1.CFrame=np.CFrame*cf(.2,0,.4)
  1063. local ms1=Instance.new('SpecialMesh',e1)
  1064. ms1.MeshType='Sphere'
  1065. local e2=Instance.new('Part',np)
  1066. e2.Size=Vector3.new(.4,.4,.4)
  1067. e2.Material='Neon'
  1068. e2.Transparency=0
  1069. e2.Color=bc'Pastel blue-green'.Color
  1070. e2.Anchored,e2.CanCollide=true,false
  1071. e2.CFrame=np.CFrame*cf(-.2,0,.4)
  1072. local ms2=Instance.new('SpecialMesh',e2)
  1073. ms2.MeshType='Sphere'
  1074. hum.WalkSpeed=0
  1075. --1323306
  1076. local e3=Instance.new('Part',np)
  1077. e3.Size=Vector3.new(.4,1,.4)
  1078. e3.Material='Neon'
  1079. e3.Transparency=0
  1080. e3.Color=bc'Pastel blue-green'.Color
  1081. e3.Anchored,e2.CanCollide=true,false
  1082. e3.CFrame=np.CFrame*cf(0,.2,0)
  1083. local ms3=Instance.new('SpecialMesh',e3)
  1084. ms3.MeshType='FileMesh'
  1085. ms3.MeshId='rbxassetid://1323306'
  1086. ms3.Scale=vec3(.5,.5,.5)
  1087. local e4=Instance.new('Part',np)
  1088. e4.Size=Vector3.new(.4,1,.4)
  1089. e4.Material='Neon'
  1090. e4.Transparency=0
  1091. e4.Color=bc'Pastel blue-green'.Color
  1092. e4.Anchored,e2.CanCollide=true,false
  1093. e4.CFrame=np.CFrame
  1094. local ms4=Instance.new('SpecialMesh',e4)
  1095. ms4.MeshType='FileMesh'
  1096. ms4.MeshId='rbxassetid://3270017'
  1097. ms4.Scale=vec3(1.35,1.35,.2)
  1098. local e5=Instance.new('Part',np)
  1099. e5.Size=Vector3.new(.4,1,.4)
  1100. e5.Material='Neon'
  1101. e5.Transparency=0
  1102. e5.Color=bc'Pastel blue-green'.Color
  1103. e5.Anchored,e2.CanCollide=true,false
  1104. e5.CFrame=np.CFrame
  1105. local ms5=Instance.new('SpecialMesh',e5)
  1106. ms5.MeshType='FileMesh'
  1107. ms5.MeshId='rbxassetid://68241543'
  1108. ms5.Scale=vec3(1,.2,.6)
  1109. local poss={};
  1110. for i = 0,1,.05 do
  1111. table.insert(poss,i)
  1112. end
  1113. spawn(function()
  1114. while wait(math.random(4,7)) do
  1115. local spd=.15
  1116. ms1.Scale=vec3(1,1,1)
  1117. ms2.Scale=vec3(1,1,1)
  1118. for i = 0,.9,spd do
  1119. ms1.Scale=vec3(1,1-i,1)
  1120. ms2.Scale=vec3(1,1-i,1)
  1121. lrs:wait()
  1122. end
  1123. for i = 0,.9,spd do
  1124. ms1.Scale=vec3(1,.1+i,1)
  1125. ms2.Scale=vec3(1,.1+i,1)
  1126. lrs:wait()
  1127. end
  1128. ms1.Scale=vec3(1,1,1)
  1129. ms2.Scale=vec3(1,1,1)
  1130. end
  1131. end)
  1132. local clrz={'Toothpaste','Pastel blue-green'}
  1133. spawn(function()
  1134. while wait(rand()/2.5) and np.Parent ~= nil do
  1135. local clr = clrz[math.random(1,#clrz)]
  1136. pos = np.CFrame*cf(0,-3,0)
  1137. local p = Instance.new('Part')
  1138. local mafc,mafa = rand(-10,10), rand(-360,360)
  1139. p.CanCollide = false
  1140. p.FormFactor = 3
  1141. p.Size = Vector3.new(.4,.4,.4)
  1142. p.Parent=char
  1143. p.Shape='Ball'
  1144. local m = Instance.new('SpecialMesh',p)
  1145. m.MeshType = 'Sphere'
  1146. spawn(function()
  1147. for i = 0,50 do
  1148. local int,int2 = .02,.02
  1149. m.Scale = m.Scale - Vector3.new(int,int,int)
  1150. p.Transparency = p.Transparency + int2
  1151. game:service'RunService'.RenderStepped:wait()
  1152. end
  1153. pcall(function()
  1154. p:Destroy()
  1155. end)
  1156. end)
  1157. p.BrickColor = BrickColor.new(clr)
  1158. p.Material = 'Slate'
  1159. local radius=1
  1160. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius)+2,math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1161. local bp = Instance.new('BodyPosition',p)
  1162. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1163. bp.D = 100
  1164. bp.P = 100
  1165. bp.Position = pos.p
  1166. game.Debris:AddItem(p,10)
  1167. end
  1168. end)
  1169. local okd
  1170. local i1=snd(588733125,char.Torso)
  1171. local i2=snd(588733880,char.Torso)
  1172. local i3=snd(588738949,char.Torso)
  1173. local cankeydown=true
  1174.  
  1175. odk=mouse.KeyDown:connect(function(k)
  1176. if k:lower()=='e' and cankeydown then --// frost beam
  1177. cankeydown=false
  1178. delay(1,function()
  1179. cankeydown=true
  1180. end)
  1181. elseif k:lower()=='q' and cankeydown then --// ice shard
  1182. cankeydown=false
  1183. delay(.3,function()
  1184. cankeydown=true
  1185. end)
  1186. local mcd=357408908
  1187. local fb2=char.Torso
  1188. local m1 = rand(-360,360)
  1189. local pe = Instance.new('Part')
  1190. pe.CanCollide = false
  1191. pe.TopSurface,pe.BottomSurface=0,0
  1192. pe.Size = Vector3.new(2,2,.2)
  1193. pe.Anchored=true
  1194. pe.Transparency=1
  1195. pe.CFrame=np.CFrame*cf(rand(-.5,.5),rand(2,3),0)*ang(0,0,m1)
  1196. local d1=Instance.new('Decal',pe)
  1197. d1.Face='Front'
  1198. d1.Texture='rbxassetid://'..mcd
  1199. local d2=Instance.new('Decal',pe)
  1200. d2.Face='Back'
  1201. d2.Texture='rbxassetid://'..mcd
  1202. pe.Parent=fb2
  1203. local nic = Instance.new("Part")
  1204. game.Debris:AddItem(nic,15)
  1205. nic.BrickColor = BrickColor.new("Bright bluish green")
  1206. nic.Material = Enum.Material.Slate
  1207. nic.Name = "center"
  1208. nic.Transparency=0
  1209. nic.Material='Slate'
  1210. nic.CFrame = pe.CFrame
  1211. nic.CanCollide = false
  1212. nic.Anchored=true
  1213. nic.Locked = true
  1214. nic.Size = Vector3.new(.2,.2,3)
  1215. nic.BottomSurface = Enum.SurfaceType.Smooth
  1216. nic.TopSurface = Enum.SurfaceType.Smooth
  1217. local nic2 = Instance.new("Part")
  1218. nic2.BrickColor = BrickColor.new("Bright bluish green")
  1219. nic2.Material = Enum.Material.Slate
  1220. nic2.Name = "spikeimage"
  1221. nic2.CFrame = nic.CFrame*ang(-rad(90),0,0)
  1222. nic2.CanCollide = false
  1223. nic2.Anchored=true
  1224. nic2.Locked = true
  1225. nic2.Size = Vector3.new(.2,.2,3)
  1226. nic2.BottomSurface = Enum.SurfaceType.Smooth
  1227. nic2.TopSurface = Enum.SurfaceType.Smooth
  1228. b2 = Instance.new("SpecialMesh", nic2)
  1229. b2.MeshId = "rbxassetid://1033714"
  1230. b2.TextureId = ""
  1231. b2.MeshType = Enum.MeshType.FileMesh
  1232. b2.Name = "Mesh"
  1233. b2.Scale = Vector3.new(.3,5,.3)
  1234. nic.Parent,nic2.Parent=fb2,nic
  1235. lrs:connect(function()
  1236. if nic.Parent then
  1237. nic2.CFrame=nic.CFrame*ang(-rad(90),0,0)
  1238. end
  1239. end)
  1240. delay(0,function()
  1241. i2:Play()
  1242.  
  1243. table.insert(Projectiles,{pe.CFrame*cf(0,0,nic.Size.Z/2),nic,i1,nic2,400,cf(0,0,-50),-20,300})
  1244. spawn(function()
  1245. i3:play()
  1246. for i = 0,1,.1 do
  1247. d1.Transparency=1-i
  1248. d2.Transparency=1-i
  1249. lrs:wait()
  1250. end
  1251. d1.Transparency,d2.Transparency=0,0
  1252. end)
  1253. delay(.5,function()
  1254. for i = 0,1,.1 do
  1255. d1.Transparency=i
  1256. d2.Transparency=i
  1257. lrs:wait()
  1258. end
  1259. d1:Destroy()
  1260. d2:Destroy()
  1261. pe:Destroy()
  1262. end)
  1263. local i=0
  1264. local ncf=pe.CFrame
  1265. repeat
  1266. i=i+1
  1267. pe.CFrame=lerp(pe.CFrame,ncf*ang(0,0,rad(i)),.3)
  1268. lrs:wait()
  1269. until pe.Parent==nil
  1270. end)
  1271. end
  1272. end)
  1273. lrs:connect(function()
  1274. if np.Parent then
  1275. np.Anchored=true
  1276. local stuff = lerp(np.CFrame,torso.CFrame*cf(3.5,2.75+-cos(sine/16)/5.5,0),.1);
  1277. stuff = cf(stuff.p, mouse.hit.p);
  1278. np.CFrame = lerp(np.CFrame,stuff,.15)
  1279. e1.CFrame=np.CFrame*cf(.2,0,-.4)
  1280. e2.CFrame=np.CFrame*cf(-.2,0,-.4)
  1281. e3.CFrame=np.CFrame*cf(0,.65,0)*ang(rad(15),0,0)
  1282. e4.CFrame=np.CFrame*cf(0,-.2,0)*ang(rad(65)+-cos(sine/16)/5.5,0,-cos(sine/16)/5.5)
  1283. e5.CFrame=np.CFrame*cf(0,0,0)*ang(rad(0),-rad(90),0,0)
  1284. end
  1285. end)
  1286. delay(80,function()
  1287. np:Destroy()
  1288. icepet=false
  1289. odk:disconnect()
  1290. end)
  1291. icepet=true
  1292. ds,dkd = false,false
  1293. game.Debris:AddItem(fb,20)
  1294. end
  1295. end)
  1296.  
  1297. BindKey('Toggle Flight', 'disabled', function(AttackName, Key)
  1298. local fb=NewFXBox('velo\'s',root)
  1299. local vw=Instance.new('BodyVelocity',fb)
  1300. local va=Instance.new('BodyVelocity',fb)
  1301. local vs=Instance.new('BodyVelocity',fb)
  1302. local vd=Instance.new('BodyVelocity',fb)
  1303. for i,v in next, fb:children() do
  1304. if v:IsA'BodyVelocity' then
  1305. v.MaxVelocity=Vector3.new(1000,10,1000)
  1306. end
  1307. end
  1308. local cam=workspace.CurrentCamera
  1309. local kd
  1310. kd=mouse.KeyDown:connect(function(ke)
  1311. if ke==' ' then
  1312. fb:Destroy()
  1313. kd:disconnect()
  1314. end
  1315. if ke=='w' then
  1316. vw.Velocity=root.CFrame.lookVector*200
  1317. end
  1318. if ke=='a' then
  1319. --va.Velocity=root.CFrame.lookVector*200
  1320. end
  1321. if ke=='s' then
  1322. vs.Velocity=root.CFrame.lookVector*-200
  1323. end
  1324. if ke=='d' then
  1325. --vd.Velocity=root.CFrame.lookVector*200
  1326. end
  1327. end)
  1328. local ku
  1329. ku=mouse.KeyUp:connect(function(ke)
  1330. if ke==' ' then
  1331. fb:Destroy()
  1332. ku:disconnect()
  1333. end
  1334. if ke=='w' then
  1335. vw.Velocity=root.CFrame.lookVector*0
  1336. end
  1337. if ke=='a' then
  1338. --va.Velocity=root.CFrame.lookVector*0
  1339. end
  1340. if ke=='s' then
  1341. vs.Velocity=root.CFrame.lookVector*-0
  1342. end
  1343. if ke=='d' then
  1344. --vd.Velocity=root.CFrame.lookVector*0
  1345. end
  1346. end)
  1347. end)
  1348.  
  1349. function Attack1()
  1350. dkd,ds = true,true
  1351. for i = 0,1,.05 do
  1352. lrs:wait()
  1353. end
  1354. dkd,ds = false,false
  1355. end
  1356.  
  1357. function Attack2()
  1358. dkd,ds = true,true
  1359. for i = 0,1,.05 do
  1360. lrs:wait()
  1361. end
  1362. dkd,ds = false,false
  1363. end
  1364.  
  1365. function Attack3()
  1366. dkd,ds = true,true
  1367. for i = 0,1,.05 do
  1368. lrs:wait()
  1369. end
  1370. dkd,ds = false,false
  1371. end
  1372.  
  1373. function Attack4()
  1374. dkd,ds = true,true
  1375. for i = 0,1,.05 do
  1376. lrs:wait()
  1377. end
  1378. dkd,ds = false,false
  1379. end
  1380.  
  1381. local ComboResetTime,canatk = .3,true
  1382. local combo = 0
  1383. local output_clicks = true
  1384. --// debst is debounce state
  1385. ComboUp = function()
  1386. if dkd == true then return end
  1387. --print'k'
  1388. if combo == 0 and canatk == true then
  1389. canatk = false
  1390. if output_clicks then
  1391. --print'Attack1'
  1392. end
  1393. Attack1()
  1394. combo = 1
  1395. canatk = true
  1396. spawn(function()
  1397. ds = true
  1398. wait(ComboResetTime)
  1399. if canatk == true then
  1400. ds = false
  1401. end
  1402. if combo == 1 and not ds then
  1403. combo = 0
  1404. if output_clicks then
  1405. --print'Combo Reset'
  1406. end
  1407. end
  1408. end)
  1409. return
  1410. end
  1411. if combo == 1 and canatk == true then
  1412. canatk = false
  1413. if output_clicks then
  1414. --print'Attack2'
  1415. end
  1416. Attack2()
  1417. combo = 2
  1418. canatk = true
  1419. spawn(function()
  1420. ds = true
  1421. wait(ComboResetTime)
  1422. if canatk == true then
  1423. ds = false
  1424. end
  1425. if combo == 2 and not ds then
  1426. combo = 0
  1427. if output_clicks then
  1428. --print'Combo Reset'
  1429. end
  1430. end
  1431. end)
  1432. return
  1433. end
  1434. if combo == 2 and canatk == true then
  1435. canatk = false
  1436. Attack3()
  1437. if output_clicks then
  1438. --print'Attack3'
  1439. end
  1440. combo = 3
  1441. canatk = true
  1442. spawn(function()
  1443. ds = true
  1444. wait(ComboResetTime)
  1445. if canatk == true then
  1446. ds = false
  1447. end
  1448. if combo == 3 and not ds then
  1449. combo = 0
  1450. if output_clicks then
  1451. --print'Combo Reset'
  1452. end
  1453. end
  1454. end)
  1455. return
  1456. end
  1457. if combo == 3 and canatk == true then
  1458. canatk = false
  1459. if output_clicks then
  1460. --print'Attack4'
  1461. end
  1462. Attack4()
  1463. combo = 0
  1464. wait(ComboResetTime)
  1465. canatk = true
  1466. spawn(function()
  1467. if canatk == true then
  1468. ds = false
  1469. end
  1470. wait(ComboResetTime/4)
  1471. if combo == 0 and not ds then
  1472. combo = 0
  1473. if output_clicks then
  1474. --print'Combo Reset'
  1475. end
  1476. end
  1477. end)
  1478. return
  1479. end
  1480. end
  1481.  
  1482. FaceMouse = function()
  1483. local torso, torsoPos = torso, HumanoidRootPart.Position
  1484. local torso = Char:FindFirstChild'Torso'
  1485. if torso then
  1486. torsoPos = HumanoidRootPart.CFrame.p
  1487. --headPos = vec3(hedw.C1)
  1488. HumanoidRootPart.CFrame = lerp(HumanoidRootPart.CFrame,cf(torsoPos,Vector3.new(mouse.Hit.X,torsoPos.Y,mouse.Hit.Z)),.1)
  1489. --hedw.C0 = lerp(hedw.C0,cf(headPos,Vector3.new(mouse.Hit.X,headPos.Y,mouse.Hit.Z)),.5)
  1490. end
  1491. end
  1492.  
  1493. Lightning = function()
  1494. local perts={};
  1495. local fb=NewFXBox('lightning')
  1496. for i = 0,1,.2 do
  1497. local np=Instance.new('Part',fb)
  1498. np.Size=Vector3.new(.2,.2,.2)
  1499. np.Material='Slate'
  1500. np.Transparency=1
  1501. np.Color=bc'Pastel blue-green'.Color
  1502. np.Anchored,np.CanCollide=true,false
  1503. local nums={}
  1504. for i = 0,1.5,.05 do
  1505. table.insert(nums,i)
  1506. end np.CFrame=rarm.CFrame*cf(rand(-1,1),rand(-nums[rand(1,#nums)],nums[rand(1,#nums)]),rand(-1,1))
  1507. table.insert(perts,np)
  1508. end
  1509. local last,final=nil,perts[#perts-1]
  1510. local lightning={};
  1511. for i,v in next, perts do
  1512. lrs:wait()
  1513. if last then
  1514. local mag=(last.CFrame.p-v.CFrame.p).magnitude
  1515. local np2=Instance.new('Part',fb)
  1516. np2.Size=Vector3.new(.2,.2,mag)
  1517. np2.CFrame=cf(last.CFrame.p,v.CFrame.p)*cf(0,0,-mag/2)
  1518. np2.Material='Neon'
  1519. np2.Transparency=.5
  1520. np2.Color=bc'Pastel blue-green'.Color
  1521. np2.Anchored,np2.CanCollide=true,false
  1522. Instance.new('BlockMesh',np2).Scale=vec3(.1,.1,1)
  1523. table.insert(lightning,np2)
  1524. last=np2
  1525. else
  1526. last=v
  1527. end
  1528. end
  1529. --wait(6)
  1530. for i,v in next, lightning do
  1531. spawn(function()
  1532. for i = 0,.5,.05 do
  1533. v.Transparency=.5+i
  1534. lrs:wait()
  1535. end
  1536. v:Destroy()
  1537. end)
  1538. lrs:wait()
  1539. end
  1540. end
  1541.  
  1542. local wz={}
  1543. for i = .75,3,.01 do
  1544. table.insert(wz,i)
  1545. end
  1546. spawn(function()
  1547. while wait(wz[rand(1,#wz)]) do
  1548. spawn(Lightning)
  1549. end
  1550. end)
  1551.  
  1552. mouse.Button1Down:connect(function()
  1553. ComboUp()
  1554. end)
  1555.  
  1556. Twitch1 = function()
  1557. end
  1558.  
  1559. Twitch2 = function()
  1560. end
  1561.  
  1562. hum.MaxHealth = 2000
  1563. wait(.1)
  1564. hum.Health = 2000
  1565. HumanoidRootPart.Transparency = 1
  1566. --241539438
  1567. HandleProjectiles=function()
  1568. for i,v in next, Projectiles do
  1569. spawn(function()
  1570. local IgnoreTable={char,v[2],v[2].Parent}
  1571. local TrailBool=false
  1572. local Bullet=v[2]
  1573. local distY = Bullet.Size.Z/2
  1574. local i1 = v[3]
  1575. --table.foreach(v,print)
  1576. local bulletposition = (v[1]*cf(0,0,distY)*ang(rad(90),0,0)).p
  1577. local sprd=vec3(rand(-0,0),rand(-0,0),rand(-0,0))
  1578. local bulletvelocity = (sprd+(v[1]*v[6]).p - bulletposition).unit*v[5]
  1579. local bulletlastposition = bulletposition
  1580. Bullet.CFrame = cf( bulletposition, bulletposition+bulletvelocity )
  1581. local dt = lrs:wait()
  1582. bulletlastposition = bulletposition
  1583. bulletvelocity = bulletvelocity + (Vector3.new(0, v[7]*1.1, 0)*dt)
  1584. local ray = Ray.new(v[1].p, (v[1].p- bulletlastposition))
  1585. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, IgnoreTable )
  1586. if (torso.Position - Bullet.Position).magnitude > v[8] then
  1587. table.remove(Projectiles,i)
  1588. v[4]:Destroy()
  1589. Bullet:Destroy()
  1590. end
  1591. local cp=true
  1592. if hit and not hit:IsDescendantOf(Character) then
  1593. print(hit.Name)
  1594. --delay(.4,function()
  1595. Bullet:Destroy()
  1596. v[4]:Destroy()
  1597. table.remove(Projectiles,i)
  1598. --end)
  1599. if cp then
  1600. cp=false
  1601. v[3]:Play()
  1602. end
  1603. --local inv=Weld(hit,v[4],hit.CFrame:inverse()*v[2].CFrame:inverse())
  1604. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1605. if not hit.Parent:findFirstChild("Humanoid"):IsA'Humanoid' then return end
  1606. if not hit.Parent then return end
  1607. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(15, 31)
  1608. end
  1609. if hit.Name == 'Head' and hit.Parent:findFirstChild("Humanoid") ~= nil then
  1610. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(45, 72)
  1611. end
  1612. if hit.Parent:IsA("Accessory") and hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  1613. if not hit.Parent.Parent:findFirstChild("Humanoid"):IsA'Humanoid' then return end
  1614. hit.Parent.Parent:findFirstChild("Humanoid").Health = hit.Parent.Parent:findFirstChild("Humanoid").Health - rand(45,72)
  1615. end
  1616. return
  1617. else
  1618. local tbl=Bullet:GetTouchingParts()
  1619. if #tbl > 0 then
  1620. for i,v in next, tbl do
  1621. if not v:IsDescendantOf(Character) and (v.Parent:FindFirstChild'Humanoid') or (v.Parent.Parent:FindFirstChild'Humanoid') or (v.Parent.Parent.Parent:FindFirstChild'Humanoid') or (v.Parent.Parent.Parent.Parent:FindFirstChild'Humanoid') or (v.Parent.Parent.Parent.Parent.Parent:FindFirstChild'Humanoid')then
  1622. local lastp=v.Parent
  1623. repeat lastp=lastp.Parent until lastp:FindFirstChild'Humanoid'
  1624. local lph = lastp:WaitForChild'Humanoid'
  1625. lph.Health=lph.Health - rand(45,72)
  1626. Bullet:Destroy()
  1627. v[4]:Destroy()
  1628. table.remove(Projectiles,i)
  1629. if cp then
  1630. cp=false
  1631. v[3]:Play()
  1632. end
  1633. end
  1634. end
  1635. end
  1636. bulletposition = bulletposition + (bulletvelocity*dt)
  1637. Bullet.CFrame = cf(bulletposition, bulletposition+bulletvelocity)
  1638. v[1] = Bullet.CFrame
  1639. end
  1640. end)
  1641. end
  1642. end
  1643.  
  1644. lrs:connect(HandleProjectiles)
  1645.  
  1646. --char:MakeJoints()
  1647.  
  1648. lrs:connect(function()
  1649. if Torso.CFrame.Y < -40 then
  1650. Torso.CFrame = cf(rand(-100,100),10,rand(-100,100))
  1651. end
  1652. sine = sine+change/2
  1653. FreeFalling = false
  1654. hum.PlatformStand = false
  1655. local tmag_xz = (torso.Velocity*vec3(1, 0, 1)).magnitude
  1656. local tmag_y = torso.Velocity.Y
  1657. local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z)
  1658. local TiltOnAxis = (root.CFrame-root.CFrame.p):inverse()*speed/50
  1659. local trot = torso.RotVelocity.Y/20
  1660. --print(trot)
  1661. --print(tmag_y)
  1662. local cap = 2
  1663. if tmag_y > cap then
  1664. State, Mode = 'Falling', 'Jumping'
  1665. elseif tmag_y < -cap then
  1666. State, Mode = 'Falling', 'Normal'
  1667. end
  1668. if AFKAnimSequenceCount >= MaxSequenceCount then
  1669. local AFKAnimations = {
  1670. Twitch1,Twitch2,
  1671. };
  1672. local Index = rand(1, #AFKAnimations)
  1673. spawn(AFKAnimations[Index])
  1674. AFKAnimSequenceCount = 0
  1675. return
  1676. end
  1677. AFKAnimSequenceCount = AFKAnimSequenceCount + .5
  1678. workspace.CurrentCamera.CameraSubject = torso
  1679. if FreeFalling == true then
  1680.  
  1681. elseif tmag_xz < 7 then
  1682. State, Mode = 'Idle', 'Floating'
  1683. elseif tmag_xz >= 7 then
  1684. State = 'Moving'
  1685. if tmag_xz > 25 then
  1686. Mode = 'Fast'
  1687. else
  1688. Mode = 'Normal'
  1689. end
  1690. end
  1691. hum.AutoRotate=true
  1692. hum.JumpPower = 0
  1693. if ds then
  1694. return
  1695. end
  1696. hum.WalkSpeed = 20
  1697. hum.AutoRotate=false
  1698. FaceMouse()
  1699. local RestoreDefault = function(Current)
  1700. Current = Current or State
  1701. if LastState ~= Current then
  1702. LastState = Current
  1703. sine = 0
  1704. end
  1705. end
  1706. --State, Mode = '',''
  1707. local Default_Anims = function()
  1708. local animspd = .1
  1709. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1710. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1711. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1712. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1713. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1714. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1715. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1716. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1717. end
  1718. change=1
  1719. if State == 'Falling' and ds == false then
  1720. RestoreDefault()
  1721. local animspd = .1
  1722. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1723. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1724. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1725. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1726. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1727. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1728. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1729. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1730. elseif State == 'Idle' and ds == false then
  1731. RestoreDefault()
  1732. if Mode == 'Floating' and ds == false then
  1733. local animspd = .1
  1734. change=.8
  1735. torw.C0 = clerp(torw.C0, cf(TiltOnAxis)*cf(0,-sin(sine/16)/5.5,0)*cf(0, 2.50240202, -0.0868360996, 0.939693093, 8.75157298e-008, 0.342019022, -0.0593910068, 0.984807849, 0.163175792, -0.336823016, -0.173648015, 0.925417006)*ang(sin(sine/16)/30,0,0),animspd)
  1736.  
  1737. local acb=cf(0,0,-cos(sine/16)/20)*cf(-0.0447133183, 0.00560772419, 0.122849166, 0.939693093, 0.0298088789, -0.340717584, 8.75157298e-008, 0.99619478, 0.0871558487, 0.342019022, -0.0818997622, 0.936117232)*ang(-rad(8)+cos(sine/16)/20,0,0)
  1738. local stuff = lerp(hedw.C0,acb,.1);
  1739. stuff = cf(stuff.p, vec3(mouse.hit.X,-hedw.C0.Y,mouse.hit.Z));
  1740.  
  1741. hedw.C0 = lerp(hedw.C0, acb, animspd)
  1742.  
  1743. law.C0 = clerp(law.C0, cf(-rad(12)+sin(sine/16)/24,sin(sine/16)/24,0)*cf(-0.0553687811, -0.226759991, -0.0504205972, 0.99619472, 0.0871562138, 1.1920929e-007, -0.0868245661, 0.992403924, -0.0871551931, -0.00759622455, 0.0868235454, 0.99619472)*ang(0,0,-rad(12)+sin(sine/16)/24),animspd/2.5)
  1744.  
  1745. raw.C0 = clerp(raw.C0, cf(rad(3)+-sin(sine/16)/24,sin(sine/16)/24,0)*cf(0.264802575, -0.258233178, -0.17202577, 0.958214402, -0.266443729, -0.104081899, 0.262002349, 0.963527858, -0.0544902682, 0.114804327, 0.0249436535, 0.993074954)*ang(0,0,rad(3)+-sin(sine/16)/24),animspd)
  1746.  
  1747. rlw.C0 = clerp(rlw.C0, cf(0,0,-sin(sine/16)/20)*cf(-2.62260437e-006, -0.00758528709, -0.174312115, 1.00000012, 7.4505806e-009, 2.98023224e-008, 0, 0.99619478, 0.0871560574, 0, -0.0871560574, 0.996194661)*ang(-sin(sine/16)/20,0,0),animspd)
  1748.  
  1749. llw.C0 = clerp(llw.C0, cf(0,sin(sine/16)/20,cos(sine/16)/20)*cf(-0.0261328816, 0.165385127, -0.928200483, 1.00000012, 0, 2.98023224e-008, 0, 0.866025627, 0.499999732, 0, -0.499999642, 0.866025567)*ang(cos(sine/16)/14,0,0),animspd)
  1750.  
  1751. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1752. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1753. else
  1754. Default_Anims()
  1755. warn'Idle: Unknown Mode Used'
  1756. end
  1757. elseif State == 'Moving' and ds == false then
  1758. RestoreDefault()
  1759. if Mode == 'Normal' and ds == false then
  1760. local animspd = .1
  1761. torw.C0 = clerp(torw.C0, cf(0,0,0)*CFrame.new(0, 2.63301897, -0.32141304, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414)*ang(rad(15)+TiltOnAxis.Z,-TiltOnAxis.X,trot+-TiltOnAxis.X),animspd)
  1762. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*CFrame.new(0, 0.04040277, -0.266627759, 1, 0, 0, 0, 0.965925634, -0.258819878, 0, 0.258819878, 0.965925634)*ang(0,0,0),animspd)
  1763. law.C0 = clerp(law.C0, cf(0,0,0)*CFrame.new(0.678582788, 0.555288911, 0.126882374, 0.866025388, -0.5, 0, 0.453154027, 0.784885764, 0.422617853, -0.211308926, -0.365997791, 0.906308055)*ang(0,0,0),animspd)
  1764. raw.C0 = clerp(raw.C0, cf(0,0,0)*CFrame.new(-0.63903904, 0.555296779, 0.126904935, 0.866025269, 0.500000238, 4.89455431e-007, -0.453154147, 0.784885168, 0.422618806, 0.211309135, -0.365998834, 0.906307578)*ang(0,0,0),animspd)
  1765. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*CFrame.new(0, -0.0397446156, -0.136011362, 1, 0, 0, 0, 0.996194839, 0.0871559381, 0, -0.0871559381, 0.996194839)*ang(0,0,0),animspd)
  1766. llw.C0 = clerp(llw.C0, cf(0,0,0)*CFrame.new(0, 0.213100076, -0.926180363, 1, 0, 0, 0, 0.939692438, 0.34202075, 0, -0.34202075, 0.939692438)*ang(0,0,0),animspd)
  1767. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1768. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1769. elseif Mode == 'Fast' and ds == false then
  1770. local animspd = .1
  1771. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1772. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1773. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1774. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1775. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1776. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1777. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1778. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1779. else
  1780. Default_Anims()
  1781. warn'Walking: Unknown Mode Used'
  1782. end
  1783. else --// New Animation Test Stage
  1784. local animspd = .1
  1785. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1786. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1787. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1788. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1789. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1790. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1791. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1792. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1793. end
  1794. local sr
  1795. sr=function(prt)
  1796. for i,v in next, prt:children() do
  1797. if v:IsA'BasePart' then
  1798. v.TopSurface,v.BottomSurface=0,0
  1799. v.Locked=true
  1800. --v.CanCollide=false
  1801. end
  1802. sr(v)
  1803. end
  1804. end
  1805. sr(char)
  1806. end)
  1807.  
  1808. --[[ Default Welds
  1809. local animspd = .1
  1810. torw.C0 = clerp(torw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1811. hedw.C0 = clerp(hedw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1812. law.C0 = clerp(law.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1813. raw.C0 = clerp(raw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1814. rlw.C0 = clerp(rlw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1815. llw.C0 = clerp(llw.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1816. h1w.C0 = lerp(h1w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1817. --h2w.C0 = lerp(h2w.C0, cf(0,0,0)*ang(0,0,0),animspd)
  1818. --]]
  1819.  
  1820. --print'script ran'
Add Comment
Please, Sign In to add comment