Advertisement
ThatOneGuy561

Untitled

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