Advertisement
memberhero

Eco

Jul 14th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.08 KB | None | 0 0
  1.  
  2. function CreateStuff()
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. StringValue0 = Instance.new("StringValue")
  20. NumberValue1 = Instance.new("NumberValue")
  21. NumberValue2 = Instance.new("NumberValue")
  22. BoolValue3 = Instance.new("BoolValue")
  23. NumberValue4 = Instance.new("NumberValue")
  24. NumberValue5 = Instance.new("NumberValue")
  25. NumberValue6 = Instance.new("NumberValue")
  26. StringValue7 = Instance.new("StringValue")
  27. StringValue8 = Instance.new("StringValue")
  28. StringValue9 = Instance.new("StringValue")
  29. StringValue10 = Instance.new("StringValue")
  30. StringValue11 = Instance.new("StringValue")
  31. StringValue12 = Instance.new("StringValue")
  32. StringValue13 = Instance.new("StringValue")
  33. StringValue14 = Instance.new("StringValue")
  34. StringValue15 = Instance.new("StringValue")
  35. StringValue16 = Instance.new("StringValue")
  36. BoolValue17 = Instance.new("BoolValue")
  37. BoolValue18 = Instance.new("BoolValue")
  38. BoolValue19 = Instance.new("BoolValue")
  39. BoolValue20 = Instance.new("BoolValue")
  40. BoolValue21 = Instance.new("BoolValue")
  41. BoolValue22 = Instance.new("BoolValue")
  42. BoolValue23 = Instance.new("BoolValue")
  43. BoolValue24 = Instance.new("BoolValue")
  44. BoolValue25 = Instance.new("BoolValue")
  45. BoolValue26 = Instance.new("BoolValue")
  46. LocalScript27 = Instance.new("LocalScript")
  47. Part28 = Instance.new("Part")
  48. BillboardGui29 = Instance.new("BillboardGui")
  49. Frame30 = Instance.new("Frame")
  50. TextLabel31 = Instance.new("TextLabel")
  51. ScreenGui32 = Instance.new("ScreenGui")
  52. Frame33 = Instance.new("Frame")
  53. Frame34 = Instance.new("Frame")
  54. TextLabel35 = Instance.new("TextLabel")
  55. Frame36 = Instance.new("Frame")
  56. Frame37 = Instance.new("Frame")
  57. TextLabel38 = Instance.new("TextLabel")
  58. Frame39 = Instance.new("Frame")
  59. Frame40 = Instance.new("Frame")
  60. TextLabel41 = Instance.new("TextLabel")
  61. Frame42 = Instance.new("Frame")
  62. Frame43 = Instance.new("Frame")
  63. TextLabel44 = Instance.new("TextLabel")
  64. Frame45 = Instance.new("Frame")
  65. Frame46 = Instance.new("Frame")
  66. TextLabel47 = Instance.new("TextLabel")
  67. Frame48 = Instance.new("Frame")
  68. Frame49 = Instance.new("Frame")
  69. TextLabel50 = Instance.new("TextLabel")
  70. Frame51 = Instance.new("Frame")
  71. Frame52 = Instance.new("Frame")
  72. TextLabel53 = Instance.new("TextLabel")
  73. Frame54 = Instance.new("Frame")
  74. Frame55 = Instance.new("Frame")
  75. TextLabel56 = Instance.new("TextLabel")
  76. Frame57 = Instance.new("Frame")
  77. Frame58 = Instance.new("Frame")
  78. TextLabel59 = Instance.new("TextLabel")
  79. Script60 = Instance.new("Script")
  80. UnionOperation61 = Instance.new("UnionOperation")
  81. StringValue0.Name = "Stats"
  82. StringValue0.Parent = mas
  83. StringValue0.Value = "Stats"
  84. NumberValue1.Name = "Energy"
  85. NumberValue1.Parent = StringValue0
  86. NumberValue2.Name = "Mana"
  87. NumberValue2.Parent = StringValue0
  88. BoolValue3.Name = "Frozen"
  89. BoolValue3.Parent = StringValue0
  90. NumberValue4.Name = "Defense"
  91. NumberValue4.Parent = StringValue0
  92. NumberValue4.Value = 1
  93. NumberValue5.Name = "Attack"
  94. NumberValue5.Parent = StringValue0
  95. NumberValue5.Value = 1
  96. NumberValue6.Name = "Speed"
  97. NumberValue6.Parent = StringValue0
  98. NumberValue6.Value = 1
  99. StringValue7.Name = "Staleness"
  100. StringValue7.Parent = mas
  101. StringValue8.Name = "1"
  102. StringValue8.Parent = StringValue7
  103. StringValue9.Name = "2"
  104. StringValue9.Parent = StringValue7
  105. StringValue10.Name = "3"
  106. StringValue10.Parent = StringValue7
  107. StringValue11.Name = "4"
  108. StringValue11.Parent = StringValue7
  109. StringValue12.Name = "7"
  110. StringValue12.Parent = StringValue7
  111. StringValue13.Name = "5"
  112. StringValue13.Parent = StringValue7
  113. StringValue14.Name = "8"
  114. StringValue14.Parent = StringValue7
  115. StringValue15.Name = "6"
  116. StringValue15.Parent = StringValue7
  117. StringValue16.Name = "9"
  118. StringValue16.Parent = StringValue7
  119. BoolValue17.Name = "StalenessChecker"
  120. BoolValue17.Parent = mas
  121. BoolValue18.Name = "1"
  122. BoolValue18.Parent = BoolValue17
  123. BoolValue19.Name = "2"
  124. BoolValue19.Parent = BoolValue17
  125. BoolValue20.Name = "3"
  126. BoolValue20.Parent = BoolValue17
  127. BoolValue21.Name = "4"
  128. BoolValue21.Parent = BoolValue17
  129. BoolValue22.Name = "5"
  130. BoolValue22.Parent = BoolValue17
  131. BoolValue23.Name = "6"
  132. BoolValue23.Parent = BoolValue17
  133. BoolValue24.Name = "7"
  134. BoolValue24.Parent = BoolValue17
  135. BoolValue25.Name = "8"
  136. BoolValue25.Parent = BoolValue17
  137. BoolValue26.Name = "9"
  138. BoolValue26.Parent = BoolValue17
  139. LocalScript27.Name = "Freeze"
  140. LocalScript27.Parent = mas
  141. table.insert(cors,sandbox(LocalScript27,function()
  142. local Torso = game.Players.LocalPlayer:FindFirstChild("Torso")
  143. local Rbx = LoadLibrary("RbxUtility")
  144. local Create = Rbx.Create
  145.  
  146. local BodPos = Create("BodyPosition"){
  147. P = 50000,
  148. D = 1000,
  149. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  150. position = Torso.Position,
  151. Parent = Torso
  152. }
  153. game:GetService("Debris"):AddItem(BodPos,1.5)
  154.  
  155. for i=math.random(3,6),1,-1 do
  156. if Torso then
  157. local p = Create("Part"){
  158. Size = Vector3.new(math.random(3,5),math.random(3,5),math.random(3,5)),
  159. Reflectance = 0.5,
  160. Transparency = 0.5,
  161. BrickColor = BrickColor.new("Pastel blue"),
  162. Material = "Ice",
  163. Anchored = true,
  164. CanCollide = true,
  165. Locked = true,
  166. Parent = Torso.Parent,
  167. CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
  168. }
  169. Torso.Anchored = true
  170. game:GetService("Debris"):AddItem(p,1.65)
  171. end
  172. end
  173.  
  174. wait(1.5)
  175. Torso.Anchored = false
  176. script:Destroy()
  177. end))
  178. LocalScript27.Disabled = true
  179. Part28.Name = "Label"
  180. Part28.Parent = mas
  181. Part28.CFrame = CFrame.new(2742.92993, 125.424095, -99.8500366, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  182. Part28.Position = Vector3.new(2742.92993, 125.424095, -99.8500366)
  183. Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  184. Part28.Transparency = 1
  185. Part28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  186. Part28.Anchored = true
  187. Part28.BackSurface = Enum.SurfaceType.Unjoinable
  188. Part28.BottomSurface = Enum.SurfaceType.Unjoinable
  189. Part28.BrickColor = BrickColor.new("Really black")
  190. Part28.CanCollide = false
  191. Part28.FrontSurface = Enum.SurfaceType.Unjoinable
  192. Part28.LeftSurface = Enum.SurfaceType.Unjoinable
  193. Part28.Locked = true
  194. Part28.Material = Enum.Material.SmoothPlastic
  195. Part28.RightSurface = Enum.SurfaceType.Unjoinable
  196. Part28.TopSurface = Enum.SurfaceType.Unjoinable
  197. Part28.brickColor = BrickColor.new("Really black")
  198. BillboardGui29.Name = "GUI"
  199. BillboardGui29.Parent = Part28
  200. BillboardGui29.Size = UDim2.new(0, 200, 0, 50)
  201. Frame30.Name = "Main"
  202. Frame30.Parent = BillboardGui29
  203. Frame30.Size = UDim2.new(0, 100, 0, 100)
  204. Frame30.BackgroundColor = BrickColor.new("Institutional white")
  205. Frame30.BackgroundColor3 = Color3.new(1, 1, 1)
  206. Frame30.BackgroundTransparency = 1
  207. Frame30.BorderSizePixel = 0
  208. TextLabel31.Name = "Label"
  209. TextLabel31.Parent = Frame30
  210. TextLabel31.Size = UDim2.new(1, 0, 1, 0)
  211. TextLabel31.BackgroundColor = BrickColor.new("Institutional white")
  212. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  213. TextLabel31.BackgroundTransparency = 1
  214. TextLabel31.BorderSizePixel = 0
  215. TextLabel31.Font = Enum.Font.SourceSans
  216. TextLabel31.FontSize = Enum.FontSize.Size14
  217. TextLabel31.Text = "0"
  218. TextLabel31.TextColor = BrickColor.new("Institutional white")
  219. TextLabel31.TextColor3 = Color3.new(1, 1, 1)
  220. TextLabel31.TextScaled = true
  221. TextLabel31.TextSize = 14
  222. TextLabel31.TextStrokeTransparency = 0
  223. TextLabel31.TextWrap = true
  224. TextLabel31.TextWrapped = true
  225. ScreenGui32.Name = "WeaponGUI"
  226. ScreenGui32.Parent = mas
  227. Frame33.Name = "Skill3"
  228. Frame33.Parent = ScreenGui32
  229. Frame33.Position = UDim2.new(0.230000004, 0, 0.925000012, 0)
  230. Frame33.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  231. Frame33.BackgroundColor = BrickColor.new("Institutional white")
  232. Frame33.BackgroundColor3 = Color3.new(1, 1, 1)
  233. Frame33.BackgroundTransparency = 0.69999998807907
  234. Frame33.BorderSizePixel = 0
  235. Frame34.Name = "Cover"
  236. Frame34.Parent = Frame33
  237. Frame34.Size = UDim2.new(1.00222218, 0, 1, 0)
  238. Frame34.BackgroundColor = BrickColor.new("Institutional white")
  239. Frame34.BackgroundColor3 = Color3.new(1, 1, 1)
  240. Frame34.BackgroundTransparency = 0.5
  241. Frame34.BorderSizePixel = 0
  242. TextLabel35.Name = "Label"
  243. TextLabel35.Parent = Frame33
  244. TextLabel35.Size = UDim2.new(1, 0, 1, 0)
  245. TextLabel35.BackgroundTransparency = 1
  246. TextLabel35.BorderSizePixel = 0
  247. TextLabel35.Font = Enum.Font.SourceSansBold
  248. TextLabel35.FontSize = Enum.FontSize.Size32
  249. TextLabel35.Text = "[C] Skill3"
  250. TextLabel35.TextColor = BrickColor.new("Institutional white")
  251. TextLabel35.TextColor3 = Color3.new(1, 1, 1)
  252. TextLabel35.TextScaled = true
  253. TextLabel35.TextSize = 32
  254. TextLabel35.TextStrokeTransparency = 0
  255. TextLabel35.TextWrap = true
  256. TextLabel35.TextWrapped = true
  257. Frame36.Name = "Skill4"
  258. Frame36.Parent = ScreenGui32
  259. Frame36.Position = UDim2.new(0.5, 0, 0.925000012, 0)
  260. Frame36.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  261. Frame36.BackgroundColor = BrickColor.new("Institutional white")
  262. Frame36.BackgroundColor3 = Color3.new(1, 1, 1)
  263. Frame36.BackgroundTransparency = 0.69999998807907
  264. Frame36.BorderSizePixel = 0
  265. Frame37.Name = "Cover"
  266. Frame37.Parent = Frame36
  267. Frame37.Size = UDim2.new(1.00222218, 0, 1, 0)
  268. Frame37.BackgroundColor = BrickColor.new("Institutional white")
  269. Frame37.BackgroundColor3 = Color3.new(1, 1, 1)
  270. Frame37.BackgroundTransparency = 0.5
  271. Frame37.BorderSizePixel = 0
  272. TextLabel38.Name = "Label"
  273. TextLabel38.Parent = Frame36
  274. TextLabel38.Size = UDim2.new(1, 0, 1, 0)
  275. TextLabel38.BackgroundTransparency = 1
  276. TextLabel38.BorderSizePixel = 0
  277. TextLabel38.Font = Enum.Font.SourceSansBold
  278. TextLabel38.FontSize = Enum.FontSize.Size32
  279. TextLabel38.Text = "[4] Skill4"
  280. TextLabel38.TextColor = BrickColor.new("Institutional white")
  281. TextLabel38.TextColor3 = Color3.new(1, 1, 1)
  282. TextLabel38.TextScaled = true
  283. TextLabel38.TextSize = 32
  284. TextLabel38.TextStrokeTransparency = 0
  285. TextLabel38.TextWrap = true
  286. TextLabel38.TextWrapped = true
  287. Frame39.Name = "Skill2"
  288. Frame39.Parent = ScreenGui32
  289. Frame39.Position = UDim2.new(0.5, 0, 0.860000014, 0)
  290. Frame39.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  291. Frame39.BackgroundColor = BrickColor.new("Institutional white")
  292. Frame39.BackgroundColor3 = Color3.new(1, 1, 1)
  293. Frame39.BackgroundTransparency = 0.69999998807907
  294. Frame39.BorderSizePixel = 0
  295. Frame40.Name = "Cover"
  296. Frame40.Parent = Frame39
  297. Frame40.Size = UDim2.new(1.00222218, 0, 1, 0)
  298. Frame40.BackgroundColor = BrickColor.new("Institutional white")
  299. Frame40.BackgroundColor3 = Color3.new(1, 1, 1)
  300. Frame40.BackgroundTransparency = 0.5
  301. Frame40.BorderSizePixel = 0
  302. TextLabel41.Name = "Label"
  303. TextLabel41.Parent = Frame39
  304. TextLabel41.Size = UDim2.new(1, 0, 1, 0)
  305. TextLabel41.BackgroundTransparency = 1
  306. TextLabel41.BorderSizePixel = 0
  307. TextLabel41.Font = Enum.Font.SourceSansBold
  308. TextLabel41.FontSize = Enum.FontSize.Size32
  309. TextLabel41.Text = "[X] Skill2"
  310. TextLabel41.TextColor = BrickColor.new("Institutional white")
  311. TextLabel41.TextColor3 = Color3.new(1, 1, 1)
  312. TextLabel41.TextScaled = true
  313. TextLabel41.TextSize = 32
  314. TextLabel41.TextStrokeTransparency = 0
  315. TextLabel41.TextWrap = true
  316. TextLabel41.TextWrapped = true
  317. Frame42.Name = "Skill1"
  318. Frame42.Parent = ScreenGui32
  319. Frame42.Position = UDim2.new(0.230000004, 0, 0.860000014, 0)
  320. Frame42.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
  321. Frame42.BackgroundColor = BrickColor.new("Institutional white")
  322. Frame42.BackgroundColor3 = Color3.new(1, 1, 1)
  323. Frame42.BackgroundTransparency = 0.69999998807907
  324. Frame42.BorderSizePixel = 0
  325. Frame43.Name = "Cover"
  326. Frame43.Parent = Frame42
  327. Frame43.Size = UDim2.new(1.00199997, 0, 1, 0)
  328. Frame43.BackgroundColor = BrickColor.new("Institutional white")
  329. Frame43.BackgroundColor3 = Color3.new(1, 1, 1)
  330. Frame43.BackgroundTransparency = 0.5
  331. Frame43.BorderSizePixel = 0
  332. TextLabel44.Name = "Label"
  333. TextLabel44.Parent = Frame42
  334. TextLabel44.Size = UDim2.new(1, 0, 1, 0)
  335. TextLabel44.BackgroundTransparency = 1
  336. TextLabel44.BorderSizePixel = 0
  337. TextLabel44.Font = Enum.Font.SourceSansBold
  338. TextLabel44.FontSize = Enum.FontSize.Size32
  339. TextLabel44.Text = "[Z] Skill1"
  340. TextLabel44.TextColor = BrickColor.new("Institutional white")
  341. TextLabel44.TextColor3 = Color3.new(1, 1, 1)
  342. TextLabel44.TextScaled = true
  343. TextLabel44.TextSize = 32
  344. TextLabel44.TextStrokeTransparency = 0
  345. TextLabel44.TextWrap = true
  346. TextLabel44.TextWrapped = true
  347. Frame45.Name = "Bar1"
  348. Frame45.Parent = ScreenGui32
  349. Frame45.Position = UDim2.new(0.230000004, 0, 0.800000012, 0)
  350. Frame45.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
  351. Frame45.BackgroundColor = BrickColor.new("Institutional white")
  352. Frame45.BackgroundColor3 = Color3.new(1, 1, 1)
  353. Frame45.BackgroundTransparency = 0.69999998807907
  354. Frame45.BorderSizePixel = 0
  355. Frame46.Name = "Cover"
  356. Frame46.Parent = Frame45
  357. Frame46.Size = UDim2.new(1, 0, 1, 0)
  358. Frame46.BackgroundColor = BrickColor.new("Institutional white")
  359. Frame46.BackgroundColor3 = Color3.new(1, 1, 1)
  360. Frame46.BackgroundTransparency = 0.5
  361. Frame46.BorderSizePixel = 0
  362. TextLabel47.Name = "Label"
  363. TextLabel47.Parent = Frame45
  364. TextLabel47.Size = UDim2.new(1, 0, 1, 0)
  365. TextLabel47.BackgroundTransparency = 1
  366. TextLabel47.BorderSizePixel = 0
  367. TextLabel47.Font = Enum.Font.SourceSansBold
  368. TextLabel47.FontSize = Enum.FontSize.Size32
  369. TextLabel47.Text = "Mana ~{#}~"
  370. TextLabel47.TextColor = BrickColor.new("Institutional white")
  371. TextLabel47.TextColor3 = Color3.new(1, 1, 1)
  372. TextLabel47.TextScaled = true
  373. TextLabel47.TextSize = 32
  374. TextLabel47.TextStrokeTransparency = 0
  375. TextLabel47.TextWrap = true
  376. TextLabel47.TextWrapped = true
  377. Frame48.Name = "Bar2"
  378. Frame48.Parent = ScreenGui32
  379. Frame48.Position = UDim2.new(0.5, 0, 0.800000012, 0)
  380. Frame48.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
  381. Frame48.BackgroundColor = BrickColor.new("Institutional white")
  382. Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
  383. Frame48.BackgroundTransparency = 0.69999998807907
  384. Frame48.BorderSizePixel = 0
  385. Frame49.Name = "Cover"
  386. Frame49.Parent = Frame48
  387. Frame49.Size = UDim2.new(1, 0, 1, 0)
  388. Frame49.BackgroundColor = BrickColor.new("Institutional white")
  389. Frame49.BackgroundColor3 = Color3.new(1, 1, 1)
  390. Frame49.BackgroundTransparency = 0.5
  391. Frame49.BorderSizePixel = 0
  392. TextLabel50.Name = "Label"
  393. TextLabel50.Parent = Frame48
  394. TextLabel50.Size = UDim2.new(1, 0, 1, 0)
  395. TextLabel50.BackgroundTransparency = 1
  396. TextLabel50.BorderSizePixel = 0
  397. TextLabel50.Font = Enum.Font.SourceSansBold
  398. TextLabel50.FontSize = Enum.FontSize.Size32
  399. TextLabel50.Text = "Energy ~{#}~"
  400. TextLabel50.TextColor = BrickColor.new("Institutional white")
  401. TextLabel50.TextColor3 = Color3.new(1, 1, 1)
  402. TextLabel50.TextScaled = true
  403. TextLabel50.TextSize = 32
  404. TextLabel50.TextStrokeTransparency = 0
  405. TextLabel50.TextWrap = true
  406. TextLabel50.TextWrapped = true
  407. Frame51.Name = "Speed"
  408. Frame51.Parent = ScreenGui32
  409. Frame51.Position = UDim2.new(0.239999995, 0, 0.720000029, 0)
  410. Frame51.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
  411. Frame51.BackgroundColor = BrickColor.new("Neon green")
  412. Frame51.BackgroundColor3 = Color3.new(0.87451, 1, 0.313726)
  413. Frame51.BackgroundTransparency = 0.69999998807907
  414. Frame51.BorderSizePixel = 0
  415. Frame52.Name = "Cover"
  416. Frame52.Parent = Frame51
  417. Frame52.Size = UDim2.new(1, 0, 1, 0)
  418. Frame52.BackgroundColor = BrickColor.new("Neon green")
  419. Frame52.BackgroundColor3 = Color3.new(0.87451, 1, 0.313726)
  420. Frame52.BackgroundTransparency = 0.5
  421. Frame52.BorderSizePixel = 0
  422. TextLabel53.Name = "Label"
  423. TextLabel53.Parent = Frame51
  424. TextLabel53.Size = UDim2.new(1, 0, 1, 0)
  425. TextLabel53.BackgroundTransparency = 1
  426. TextLabel53.BorderSizePixel = 0
  427. TextLabel53.Font = Enum.Font.SourceSansBold
  428. TextLabel53.FontSize = Enum.FontSize.Size32
  429. TextLabel53.Text = "Speed {#}"
  430. TextLabel53.TextColor = BrickColor.new("Institutional white")
  431. TextLabel53.TextColor3 = Color3.new(1, 1, 1)
  432. TextLabel53.TextScaled = true
  433. TextLabel53.TextSize = 32
  434. TextLabel53.TextStrokeTransparency = 0
  435. TextLabel53.TextWrap = true
  436. TextLabel53.TextWrapped = true
  437. Frame54.Name = "Defense"
  438. Frame54.Parent = ScreenGui32
  439. Frame54.Position = UDim2.new(0.610000014, 0, 0.720000029, 0)
  440. Frame54.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
  441. Frame54.BackgroundColor = BrickColor.new("Pastel blue-green")
  442. Frame54.BackgroundColor3 = Color3.new(0.643137, 0.941177, 1)
  443. Frame54.BackgroundTransparency = 0.69999998807907
  444. Frame54.BorderSizePixel = 0
  445. Frame55.Name = "Cover"
  446. Frame55.Parent = Frame54
  447. Frame55.Size = UDim2.new(1, 0, 1, 0)
  448. Frame55.BackgroundColor = BrickColor.new("Pastel blue-green")
  449. Frame55.BackgroundColor3 = Color3.new(0.643137, 0.941177, 1)
  450. Frame55.BackgroundTransparency = 0.5
  451. Frame55.BorderSizePixel = 0
  452. TextLabel56.Name = "Label"
  453. TextLabel56.Parent = Frame54
  454. TextLabel56.Size = UDim2.new(1, 0, 1, 0)
  455. TextLabel56.BackgroundTransparency = 1
  456. TextLabel56.BorderSizePixel = 0
  457. TextLabel56.Font = Enum.Font.SourceSansBold
  458. TextLabel56.FontSize = Enum.FontSize.Size32
  459. TextLabel56.Text = "Defense {#}"
  460. TextLabel56.TextColor = BrickColor.new("Institutional white")
  461. TextLabel56.TextColor3 = Color3.new(1, 1, 1)
  462. TextLabel56.TextScaled = true
  463. TextLabel56.TextSize = 32
  464. TextLabel56.TextStrokeTransparency = 0
  465. TextLabel56.TextWrap = true
  466. TextLabel56.TextWrapped = true
  467. Frame57.Name = "Attack"
  468. Frame57.Parent = ScreenGui32
  469. Frame57.Position = UDim2.new(0.425000012, 0, 0.720000029, 0)
  470. Frame57.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
  471. Frame57.BackgroundColor = BrickColor.new("Salmon")
  472. Frame57.BackgroundColor3 = Color3.new(1, 0.501961, 0.509804)
  473. Frame57.BackgroundTransparency = 0.69999998807907
  474. Frame57.BorderSizePixel = 0
  475. Frame58.Name = "Cover"
  476. Frame58.Parent = Frame57
  477. Frame58.Size = UDim2.new(1, 0, 1, 0)
  478. Frame58.BackgroundColor = BrickColor.new("Salmon")
  479. Frame58.BackgroundColor3 = Color3.new(1, 0.501961, 0.509804)
  480. Frame58.BackgroundTransparency = 0.5
  481. Frame58.BorderSizePixel = 0
  482. TextLabel59.Name = "Label"
  483. TextLabel59.Parent = Frame57
  484. TextLabel59.Size = UDim2.new(1, 0, 1, 0)
  485. TextLabel59.BackgroundTransparency = 1
  486. TextLabel59.BorderSizePixel = 0
  487. TextLabel59.Font = Enum.Font.SourceSansBold
  488. TextLabel59.FontSize = Enum.FontSize.Size32
  489. TextLabel59.Text = "Attack {#}"
  490. TextLabel59.TextColor = BrickColor.new("Institutional white")
  491. TextLabel59.TextColor3 = Color3.new(1, 1, 1)
  492. TextLabel59.TextScaled = true
  493. TextLabel59.TextSize = 32
  494. TextLabel59.TextStrokeTransparency = 0
  495. TextLabel59.TextWrap = true
  496. TextLabel59.TextWrapped = true
  497. Script60.Name = "Deleter"
  498. Script60.Parent = mas
  499. table.insert(cors,sandbox(Script60,function()
  500. wait(7)
  501. script.Parent:Destroy()
  502. end))
  503. Script60.Disabled = true
  504. UnionOperation61.Name = "Blades"
  505. UnionOperation61.Parent = mas
  506. UnionOperation61.CFrame = CFrame.new(2820.84375, -397.057983, 123.994339, -1.00000012, -0.000293178018, 0.000269000971, 0.000119509743, -0.866171181, -0.499747783, 0.000379515899, -0.499747694, 0.866171122)
  507. UnionOperation61.Orientation = Vector3.new(29.9799995, 0.0199999996, 179.98999)
  508. UnionOperation61.Position = Vector3.new(2820.84375, -397.057983, 123.994339)
  509. UnionOperation61.Rotation = Vector3.new(29.9799995, 0.0199999996, 179.979996)
  510. UnionOperation61.Color = Color3.new(0.294118, 0.592157, 0.294118)
  511. UnionOperation61.Size = Vector3.new(0.300962001, 2.50051451, 7.39995384)
  512. UnionOperation61.BrickColor = BrickColor.new("Bright green")
  513. UnionOperation61.CanCollide = false
  514. UnionOperation61.Material = Enum.Material.Neon
  515. UnionOperation61.brickColor = BrickColor.new("Bright green")
  516. UnionOperation61.UsePartColor = true
  517. for i,v in pairs(mas:GetChildren()) do
  518. v.Parent = script
  519. pcall(function() v:MakeJoints() end)
  520. end
  521. mas:Destroy()
  522. for i,v in pairs(cors) do
  523. spawn(function()
  524. pcall(v)
  525. end)
  526. end
  527. end
  528. CreateStuff()
  529.  
  530. wait(2)
  531.  
  532. --[[CUSTOMIZATION]]--
  533.  
  534. Frames = 1 / 60
  535.  
  536. Base_Speed = 16
  537. Base_Speed_Value = 1.6
  538. Base_Attack_Value = 0.7
  539. Base_Defense_Value = 0.7
  540.  
  541. Skill1cooldown = 4
  542. Skill2cooldown = 6
  543. Skill3cooldown = 7
  544. Skill4cooldown = 9
  545.  
  546. Recover_Mana = 1
  547. MaxMana = 100
  548.  
  549. Recover_Energy = 1
  550. MaxEnergy = 75
  551.  
  552. ManaInterval = 15
  553. EnergyInterval = 22
  554.  
  555. Text1 = "[Z] Birth"
  556. Text2 = "[X] Adolescense"
  557. Text3 = "[C] Age"
  558. Text4 = "[V] Death"
  559.  
  560. ManaBar_Color = BrickColor.new("Institutional white")
  561. EnergyBar_Color = BrickColor.new("Medium green")
  562. Primary_Color = BrickColor.new("Mid gray")
  563. Secondary_Color = BrickColor.new("Really black")
  564.  
  565. --[[Variables]]--
  566.  
  567. Rbx = LoadLibrary("RbxUtility")
  568. Create = Rbx.Create
  569.  
  570. m=Instance.new('Model',game.Players.LocalPlayer.Character)
  571.  
  572. Arm_Held = game.Players.LocalPlayer.Character["Right Arm"]
  573.  
  574. Stat = script.Stats
  575. Mana = Stat.Mana
  576. Energy = Stat.Energy
  577. Frozen = Stat.Frozen
  578. Attack = Stat.Attack
  579. Defense = Stat.Defense
  580. Speed = Stat.Speed
  581.  
  582. GUI = script.WeaponGUI
  583.  
  584. Bar1 = GUI.Bar1
  585. Bar2 = GUI.Bar2
  586. Skill1 = GUI.Skill1
  587. Skill2 = GUI.Skill2
  588. Skill3 = GUI.Skill3
  589. Skill4 = GUI.Skill4
  590.  
  591. Bar1Cover = Bar1.Cover
  592. Bar2Cover = Bar2.Cover
  593. Cover1 = Skill1.Cover
  594. Cover2 = Skill2.Cover
  595. Cover3 = Skill3.Cover
  596. Cover4 = Skill4.Cover
  597.  
  598. Bar1.BackgroundColor3 = ManaBar_Color.Color
  599. Bar1Cover.BackgroundColor3 = ManaBar_Color.Color
  600. Bar2.BackgroundColor3 = EnergyBar_Color.Color
  601. Bar2Cover.BackgroundColor3 = EnergyBar_Color.Color
  602. Skill1.BackgroundColor3 = Primary_Color.Color
  603. Cover1.BackgroundColor3 = Primary_Color.Color
  604. Skill2.BackgroundColor3 = Primary_Color.Color
  605. Cover2.BackgroundColor3 = Primary_Color.Color
  606. Skill3.BackgroundColor3 = Primary_Color.Color
  607. Cover3.BackgroundColor3 = Primary_Color.Color
  608. Skill4.BackgroundColor3 = Primary_Color.Color
  609. Cover4.BackgroundColor3 = Primary_Color.Color
  610.  
  611. Skill1text = Skill1.Label
  612. Skill2text = Skill2.Label
  613. Skill3text = Skill3.Label
  614. Skill4text = Skill4.Label
  615.  
  616. Skill1text.Text = Text1
  617. Skill2text.Text = Text2
  618. Skill3text.Text = Text3
  619. Skill4text.Text = Text4
  620.  
  621. function NoOutline(part)
  622. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  623. end
  624.  
  625. Weapon = Instance.new("Model",game.Players.LocalPlayer.Character)
  626. Weapon.Name = "Weapon"
  627. Handle = Create("Part"){
  628. Parent = Weapon,
  629. Name = "ShieldHandle",
  630. Size = Vector3.new(0.3, 3, 3),
  631. Material = "Neon",
  632. Anchored = false,
  633. CanCollide = false,
  634. Locked = true,
  635. BrickColor = BrickColor.new("Bright green")
  636. }
  637. Mesh = Create("SpecialMesh"){
  638. MeshType = "Cylinder",
  639. Parent = Handle
  640. }
  641. NoOutline(Handle)
  642. Hitbox = Create("Part"){
  643. Parent = Weapon,
  644. Name = "Hitbox",
  645. Size = Vector3.new(0.25, 3.5, 3.5),
  646. Material = "Granite",
  647. Anchored = false,
  648. CanCollide = false,
  649. Locked = true,
  650. BrickColor = BrickColor.new("Institutional white")
  651. }
  652. Mesh = Create("SpecialMesh"){
  653. MeshType = "Cylinder",
  654. Parent = Hitbox
  655. }
  656. NoOutline(Hitbox)
  657. Blades = script.Blades:Clone()
  658. Blades.Parent = Weapon
  659. Part1 = Create("Part"){
  660. Parent = Weapon,
  661. Name = "Part1",
  662. Size = Vector3.new(0.2, 4, 4),
  663. Material = "Slate",
  664. Anchored = false,
  665. CanCollide = false,
  666. Locked = true,
  667. BrickColor = BrickColor.new("Institutional white")
  668. }
  669. Mesh = Create("SpecialMesh"){
  670. MeshType = "Cylinder",
  671. Parent = Part1
  672. }
  673. NoOutline(Part1)
  674.  
  675. Gunhandle = Create("Part"){
  676. Parent = Weapon,
  677. Name = "GunHandle",
  678. Size = Vector3.new(0.4, 0.9, 0.5),
  679. Material = "DiamondPlate",
  680. Anchored = false,
  681. CanCollide = false,
  682. Locked = true,
  683. BrickColor = BrickColor.new("Bright green")
  684. }
  685. NoOutline(Gunhandle)
  686. Barrel = Create("Part"){
  687. Parent = Weapon,
  688. Name = "Barrel",
  689. Size = Vector3.new(0.25, 0.2, 0.25),
  690. Material = "Neon",
  691. Anchored = false,
  692. CanCollide = false,
  693. Locked = true,
  694. BrickColor = BrickColor.new("Bright green")
  695. }
  696. NoOutline(Barrel)
  697. GunPart1 = Create("Part"){
  698. Parent = Weapon,
  699. Name = "GunPart1",
  700. Size = Vector3.new(0.5, 0.85, 0.65),
  701. Material = "Concrete",
  702. Anchored = false,
  703. CanCollide = false,
  704. Locked = true,
  705. BrickColor = BrickColor.new("Really black")
  706. }
  707. NoOutline(GunPart1)
  708. GunPart2 = Create("Part"){
  709. Parent = Weapon,
  710. Name = "GunPart2",
  711. Size = Vector3.new(0.4, 0.35, 0.85),
  712. Material = "SmoothPlastic",
  713. Anchored = false,
  714. CanCollide = false,
  715. Locked = true,
  716. BrickColor = BrickColor.new("Black")
  717. }
  718. NoOutline(GunPart2)
  719. GunPart3 = Create("Part"){
  720. Parent = Weapon,
  721. Name = "GunPart3",
  722. Size = Vector3.new(0.5, 0.6, 1),
  723. Material = "Concrete",
  724. Anchored = false,
  725. CanCollide = false,
  726. Locked = true,
  727. BrickColor = BrickColor.new("Really black")
  728. }
  729. NoOutline(GunPart3)
  730. GunPart4 = Create("Part"){
  731. Parent = Weapon,
  732. Name = "GunPart4",
  733. Size = Vector3.new(0.4, 0.7, 0.85),
  734. Material = "DiamondPlate",
  735. Anchored = false,
  736. CanCollide = false,
  737. Locked = true,
  738. BrickColor = BrickColor.new("Bright green")
  739. }
  740. NoOutline(GunPart4)
  741.  
  742. Scarf = Create("Part"){
  743. Parent = Weapon,
  744. Name = "Part1",
  745. Size = Vector3.new(2, 2, 1),
  746. Material = "Plastic",
  747. Anchored = false,
  748. CanCollide = false,
  749. Locked = true,
  750. BrickColor = BrickColor.new("Medium green")
  751. }
  752. Mesh = Create("SpecialMesh"){
  753. MeshType = "FileMesh",
  754. MeshId = "http://www.roblox.com/asset/?id=448710145",
  755. Scale = Vector3.new(1,1.3,1),
  756. Parent = Scarf
  757. }
  758. NoOutline(Scarf)
  759.  
  760.  
  761. Spin = Create("Sound"){
  762. Parent = Handle,
  763. SoundId = "rbxassetid://143301643",
  764. Volume = 0.25,
  765. Pitch = 1.4,
  766. Looped = true,
  767. }
  768. Spin2 = Create("Sound"){
  769. Parent = Handle,
  770. SoundId = "rbxassetid://149560784",
  771. Volume =0.5,
  772. Pitch = 0.4,
  773. Looped = true,
  774. }
  775. Spin:Play()
  776. Spin2:Play()
  777.  
  778. Speed.Value = Base_Speed_Value
  779. Attack.Value = Base_Attack_Value
  780. Defense.Value = Base_Defense_Value
  781.  
  782. Staleness = script.Staleness
  783. Stale1 = Staleness["1"]
  784. Stale2 = Staleness["2"]
  785. Stale3 = Staleness["3"]
  786. Stale4 = Staleness["4"]
  787. Stale5 = Staleness["5"]
  788. Stale6 = Staleness["6"]
  789. Stale7 = Staleness["7"]
  790. Stale8 = Staleness["8"]
  791. Stale9 = Staleness["9"]
  792.  
  793. StaleCheck = script.StalenessChecker
  794. StaleCheck1 = StaleCheck["1"]
  795. StaleCheck2 = StaleCheck["2"]
  796. StaleCheck3 = StaleCheck["3"]
  797. StaleCheck4 = StaleCheck["4"]
  798. StaleCheck5 = StaleCheck["5"]
  799. StaleCheck6 = StaleCheck["6"]
  800. StaleCheck7 = StaleCheck["7"]
  801. StaleCheck8 = StaleCheck["8"]
  802. StaleCheck9 = StaleCheck["9"]
  803.  
  804. Lag = false
  805. Player = game.Players.LocalPlayer
  806. Character = Player.Character
  807. PlayerGui = Player.PlayerGui
  808. Backpack = Player.Backpack
  809. Torso = Character.Torso
  810. Head = Character.Head
  811. Humanoid = Character.Humanoid
  812. LeftArm = Character["Left Arm"]
  813. LeftLeg = Character["Left Leg"]
  814. RightArm = Character["Right Arm"]
  815. RightLeg = Character["Right Leg"]
  816. Character = Player.Character
  817. PlayerGui = Player.PlayerGui
  818. GUI.Parent = PlayerGui
  819. Backpack = Player.Backpack
  820. Torso = Character.Torso
  821. Head = Character.Head
  822. Humanoid = Character.Humanoid
  823. LeftArm = Character["Left Arm"]
  824. LeftLeg = Character["Left Leg"]
  825. RightArm = Character["Right Arm"]
  826. RightLeg = Character["Right Leg"]
  827. LS = Torso["Left Shoulder"]
  828. LH = Torso["Left Hip"]
  829. RS = Torso["Right Shoulder"]
  830. RH = Torso["Right Hip"]
  831. Neck = Torso.Neck
  832. attacktype = 1
  833. vt = Vector3.new
  834. cf = CFrame.new
  835. euler = CFrame.fromEulerAnglesXYZ
  836. angles = CFrame.Angles
  837. Sheathed = false
  838. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  839. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  840. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  841. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  842. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  843. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  844. RootPart = Character.HumanoidRootPart
  845. RootJoint = RootPart.RootJoint
  846. RootCF = euler(-1.57, 0, 3.14)
  847. attack = false
  848. equipped = true
  849. local Anim = "Idle"
  850. local Effects = {}
  851. cam = workspace.CurrentCamera
  852. ZTarget = nil
  853. RocketTarget = nil
  854. local CurrentMove = "[BLANK]"
  855. mouse = Player:GetMouse()
  856. RSH, LSH = nil, nil
  857. LH = Torso["Left Hip"]
  858. RH = Torso["Right Hip"]
  859. RSH = Torso["Right Shoulder"]
  860. LSH = Torso["Left Shoulder"]
  861. StaledNum = 0
  862. local spin = 0
  863. Spinning = false
  864.  
  865. RSH.Parent = nil
  866. LSH.Parent = nil
  867.  
  868. RW = Create("Weld"){
  869. Name = "Right Shoulder",
  870. Part0 = Torso ,
  871. C0 = cf(1.5, 0.5, 0),
  872. C1 = cf(0, 0.5, 0),
  873. Part1 = RightArm ,
  874. Parent = Torso ,
  875. }
  876.  
  877. LW = Create("Weld"){
  878. Name = "Left Shoulder",
  879. Part0 = Torso ,
  880. C0 = cf(-1.5, 0.5, 0),
  881. C1 = cf(0, 0.5, 0) ,
  882. Part1 = LeftArm ,
  883. Parent = Torso ,
  884. }
  885.  
  886. --[[Functions]]--
  887.  
  888. function NoOutline(Part)
  889. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  890. end
  891.  
  892. function nooutline(part)
  893. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  894. end
  895.  
  896. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  897. local fp = Create("Part"){
  898. formFactor = formfactor,
  899. Parent = parent,
  900. Reflectance = reflectance,
  901. Transparency = transparency,
  902. CanCollide = false,
  903. Locked = true,
  904. BrickColor = BrickColor.new(tostring(brickcolor)),
  905. Name = name,
  906. Size = size,
  907. Position = Character.Torso.Position,
  908. Material = material,
  909. }
  910. nooutline(fp)
  911. return fp
  912. end
  913.  
  914. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  915. local Msh = Create(Mesh){
  916. Parent = part,
  917. Offset = offset,
  918. Scale = scale,
  919. }
  920. if Mesh == "SpecialMesh" then
  921. Msh.MeshType = meshtype
  922. Msh.MeshId = meshid
  923. end
  924. return Msh
  925. end
  926.  
  927. function weld(parent, part0, part1, c0, c1)
  928. local Weld = Create("Weld"){
  929. Parent = parent,
  930. Part0 = part0,
  931. Part1 = part1,
  932. C0 = c0,
  933. C1 = c1,
  934. }
  935. return Weld
  936. end
  937.  
  938. local nr=NumberRange.new
  939. local ns=NumberSequence.new
  940. local cs=ColorSequence.new
  941. local nsk=NumberSequenceKeypoint.new
  942. function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
  943. local fp=Instance.new("ParticleEmitter")
  944. fp.Parent=parent
  945. fp.Color= cs(col1,col2)
  946. fp.LightEmission=lightemis
  947. fp.Size=size
  948. fp.Texture=texture
  949. fp.Transparency=transparency
  950. fp.ZOffset=zoffset
  951. fp.Acceleration=accel
  952. fp.Drag=drag
  953. fp.LockedToPart=ltp
  954. fp.VelocityInheritance=velinher
  955. fp.EmissionDirection=emisdir
  956. fp.Enabled=enabled
  957. fp.Lifetime=lifetime
  958. fp.Rate=rate
  959. fp.Rotation=rotation
  960. fp.RotSpeed=rotspeed
  961. fp.Speed=speed
  962. fp.VelocitySpread=velspread
  963. return fp
  964. end
  965.  
  966. sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
  967. transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
  968. local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
  969. sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
  970. transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
  971. local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
  972. sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
  973. transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
  974.  
  975. handleweld = weld(m,Arm_Held,Handle,CFrame.new(0,0,0),CFrame.new(0,0,0))
  976. bladeweld = weld(m,Handle,Blades,CFrame.new(0,0,0),CFrame.new(0,0,0))
  977. hitboxweld = weld(m,Handle,Hitbox,CFrame.new(0,0,0),CFrame.new(0,0,0))
  978. partweld = weld(m,Handle,Part1,CFrame.new(0,0,0),CFrame.new(0,0,0))
  979. scarfweld = weld(m,Torso,Scarf,CFrame.new(-0.1,0,0)*CFrame.Angles(0,math.rad(180),math.rad(-5)),CFrame.new(0,0,0))
  980.  
  981. gunweld = weld(m,LeftArm,Gunhandle,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),CFrame.new(0,0,0))
  982. barrelweld = weld(m,Gunhandle,Barrel,CFrame.new(-1,0.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
  983. partweld = weld(m,Gunhandle,GunPart1,CFrame.new(0.33,0.65,0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(90)),CFrame.new(0,0,0))
  984. partweld = weld(m,Gunhandle,GunPart2,CFrame.new(-0.6,0.6,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
  985. partweld = weld(m,Gunhandle,GunPart3,CFrame.new(-0.6,0.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
  986. partweld = weld(m,Gunhandle,GunPart4,CFrame.new(0.225,0.65,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
  987.  
  988. local function CFrameFromTopBack(at, top, back)
  989. local right = top:Cross(back)
  990. return CFrame.new(at.x, at.y, at.z,
  991. right.x, top.x, back.x,
  992. right.y, top.y, back.y,
  993. right.z, top.z, back.z)
  994. end
  995.  
  996. function Triangle(a, b, c)
  997. local edg1 = (c - a):Dot((b - a).unit)
  998. local edg2 = (a - b):Dot((c - b).unit)
  999. local edg3 = (b - c):Dot((a - c).unit)
  1000. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1001. a, b, c = a, b, c
  1002. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1003. a, b, c = b, c, a
  1004. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1005. a, b, c = c, a, b
  1006. else
  1007. assert(false, "unreachable")
  1008. end
  1009.  
  1010. local len1 = (c - a):Dot((b - a).unit)
  1011. local len2 = (b - a).magnitude - len1
  1012. local width = (a + (b - a).unit * len1 - c).magnitude
  1013.  
  1014. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1015.  
  1016. local list = {}
  1017.  
  1018. local Color = BrickColor.new("Dark stone grey")
  1019.  
  1020. if len1 > 0.01 then
  1021. local w1 = Create('WedgePart', m){
  1022. Material = "SmoothPlastic",
  1023. FormFactor = 'Custom',
  1024. BrickColor = Color,
  1025. Transparency = 0,
  1026. Reflectance = 0,
  1027. Material = "SmoothPlastic",
  1028. CanCollide = false,
  1029. Anchored = true,
  1030. Parent = workspace,
  1031. Transparency = 0.3,
  1032. }
  1033. game:GetService("Debris"):AddItem(w1, 5)
  1034. NoOutline(w1)
  1035. local sz = Vector3.new(0.2, width, len1)
  1036. w1.Size = sz
  1037. local sp = Create("SpecialMesh"){
  1038. Parent = w1,
  1039. MeshType = "Wedge",
  1040. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  1041. }
  1042. w1:BreakJoints()
  1043. table.insert(Effects, {
  1044. w1,
  1045. "Disappear",
  1046. .03
  1047. })
  1048. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1049. table.insert(list, w1)
  1050. end
  1051. if len2 > 0.01 then
  1052. local w2 = Create('WedgePart', m){
  1053. Material = "SmoothPlastic",
  1054. FormFactor = 'Custom',
  1055. BrickColor = Color,
  1056. Transparency = 0,
  1057. Reflectance = 0,
  1058. Material = "SmoothPlastic",
  1059. CanCollide = false,
  1060. Anchored = true,
  1061. Parent = workspace,
  1062. Transparency = 0.3,
  1063. }
  1064. game:GetService("Debris"):AddItem(w2, 5)
  1065. NoOutline(w2)
  1066. local sz = Vector3.new(0.2, width, len2)
  1067. w2.Size = sz
  1068. local sp = Create("SpecialMesh"){
  1069. Parent = w2,
  1070. MeshType = "Wedge",
  1071. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  1072. }
  1073. w2:BreakJoints()
  1074. table.insert(Effects, {
  1075. w2,
  1076. "Disappear",
  1077. .03
  1078. })
  1079. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1080. table.insert(list, w2)
  1081. end
  1082. return unpack(list)
  1083. end
  1084.  
  1085. function so(id, par, vol, pit)
  1086. coroutine.resume(coroutine.create(function()
  1087. local sou = Instance.new("Sound", par)
  1088. sou.Volume = vol
  1089. sou.Pitch = pit
  1090. sou.SoundId = id
  1091. swait()
  1092. sou:play()
  1093. local clo = script.Deleter:Clone()
  1094. clo.Parent = sou
  1095. clo.Disabled = false
  1096. end))
  1097. end
  1098.  
  1099. function clerp(a, b, t)
  1100. return a:lerp(b, t)
  1101. end
  1102.  
  1103. ArtificialHB = Instance.new("BindableEvent", script)
  1104. ArtificialHB.Name = "Heartbeat"
  1105.  
  1106. script:WaitForChild("Heartbeat")
  1107.  
  1108. tf = 0
  1109. allowframeloss = false
  1110. tossremainder = false
  1111. lastframe = tick()
  1112. script.Heartbeat:Fire()
  1113.  
  1114. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1115. tf = tf + s
  1116. if tf >= Frames then
  1117. if allowframeloss then
  1118. script.Heartbeat:Fire()
  1119. lastframe = tick()
  1120. else
  1121. for i = 1, math.floor(tf / Frames) do
  1122. script.Heartbeat:Fire()
  1123. end
  1124. lastframe = tick()
  1125. end
  1126. if tossremainder then
  1127. tf = 0
  1128. else
  1129. tf = tf - Frames * math.floor(tf / Frames)
  1130. end
  1131. end
  1132. end)
  1133.  
  1134. function swait(num)
  1135. if num == 0 or num == nil then
  1136. ArtificialHB.Event:wait()
  1137. else
  1138. for i = 0, num do
  1139. ArtificialHB.Event:wait()
  1140. end
  1141. end
  1142. end
  1143.  
  1144. function rayCast(Pos, Dir, Max, Ignore)
  1145. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1146. end
  1147.  
  1148. Asset = "http://www.roblox.com/asset/?id="
  1149.  
  1150. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch,DefenseHexCheck,DefenseHex,SpeedHexCheck,SpeedHex,AttackHexCheck,AttackHex)
  1151. if hit.Parent == nil then
  1152. return
  1153. end
  1154. local h = hit.Parent:FindFirstChild("Humanoid")
  1155. for _, v in pairs(hit.Parent:children()) do
  1156. if v:IsA("Humanoid") then
  1157. h = v
  1158. end
  1159. end
  1160. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1161. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1162. if hit.Parent.DebounceHit.Value == true then
  1163. return
  1164. end
  1165. end
  1166. if h.MaxHealth >= math.huge then
  1167. hit:BreakJoints()
  1168. end
  1169. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1170. return
  1171. end]]
  1172. -- hs(hit,1.2)
  1173. local c = Create("ObjectValue"){
  1174. Name = "creator",
  1175. Value = game:service("Players").LocalPlayer,
  1176. Parent = h,
  1177. }
  1178. game:GetService("Debris"):AddItem(c, .5)
  1179. if HitSound ~= nil and HitPitch ~= nil then
  1180. so(HitSound, hit, 1, HitPitch)
  1181. end
  1182. local Damage = math.floor((math.random(minim, maxim))*Attack.Value)
  1183. local hitpar = game.Players:FindFirstChild(hit.Parent.Name)
  1184. if hitpar ~= nil then
  1185. if hitpar:FindFirstChild("Backpack") ~= nil then
  1186. for i,v in pairs(hitpar:GetChildren()) do
  1187. if v.className == "LocalScript" then
  1188. for c,b in pairs(v:GetChildren()) do
  1189. if b.Name == "Stats" then
  1190. if b.Stats:FindFirstChild("Defense") then
  1191. def = b.Stats.Defense
  1192. Damage = Damage / def.Value
  1193. if DefenseHexCheck == true then
  1194. def.Value = def.Value - DefenseHex
  1195. ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Defense["..DefenseHex.."]")
  1196. end
  1197. end
  1198. if b.Stats:FindFirstChild("Attack") then
  1199. if AttackHexCheck == true then
  1200. b.Stats.Attack.Value = b.Stats.Attack.Value - AttackHex
  1201. ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Attack["..AttackHex.."]")
  1202. end
  1203. end
  1204. if b.Stats:FindFirstChild("Speed") then
  1205. if SpeedHexCheck == true then
  1206. b.Stats.Speed.Value = b.Stats.Speed.Value - SpeedHex
  1207. ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Speed["..SpeedHex.."]")
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end
  1215. end
  1216. local blocked = false
  1217. local block = hit.Parent:findFirstChild("Block")
  1218. if block ~= nil then
  1219. if block.className == "IntValue" then
  1220. if block.Value > 0 then
  1221. blocked = true
  1222. block.Value = block.Value - 1
  1223. print(block.Value)
  1224. end
  1225. end
  1226. end
  1227. local Stalenum = 1
  1228. if Stale1.Value == CurrentMove then
  1229. StaleCheck1.Value = true
  1230. Stalenum = Stalenum + 1
  1231. end
  1232. if Stale2.Value == CurrentMove then
  1233. StaleCheck2.Value = true
  1234. Stalenum = Stalenum + 1
  1235. end
  1236. if Stale3.Value == CurrentMove then
  1237. StaleCheck3.Value = true
  1238. Stalenum = Stalenum + 1
  1239. end
  1240. if Stale4.Value == CurrentMove then
  1241. StaleCheck4.Value = true
  1242. Stalenum = Stalenum + 1
  1243. end
  1244. if Stale5.Value == CurrentMove then
  1245. StaleCheck5.Value = true
  1246. Stalenum = Stalenum + 1
  1247. end
  1248. if Stale6.Value == CurrentMove then
  1249. StaleCheck6.Value = true
  1250. Stalenum = Stalenum + 1
  1251. end
  1252. if Stale7.Value == CurrentMove then
  1253. StaleCheck7.Value = true
  1254. Stalenum = Stalenum + 1
  1255. end
  1256. if Stale8.Value == CurrentMove then
  1257. StaleCheck8.Value = true
  1258. Stalenum = Stalenum + 1
  1259. end
  1260. if Stale9.Value == CurrentMove then
  1261. StaleCheck9.Value = true
  1262. Stalenum = Stalenum + 1
  1263. end
  1264. if StaledNum >= 9 then
  1265. StaledNum = 0
  1266. end
  1267. StaledNum = StaledNum + 1
  1268. if StaledNum == 1 then
  1269. Stale1.Value = CurrentMove
  1270. elseif StaledNum == 2 then
  1271. Stale2.Value = CurrentMove
  1272. elseif StaledNum == 3 then
  1273. Stale3.Value = CurrentMove
  1274. elseif StaledNum == 4 then
  1275. Stale4.Value = CurrentMove
  1276. elseif StaledNum == 5 then
  1277. Stale5.Value = CurrentMove
  1278. elseif StaledNum == 6 then
  1279. Stale6.Value = CurrentMove
  1280. elseif StaledNum == 7 then
  1281. Stale7.Value = CurrentMove
  1282. elseif StaledNum == 8 then
  1283. Stale8.Value = CurrentMove
  1284. elseif StaledNum == 9 then
  1285. Stale9.Value = CurrentMove
  1286. end
  1287. Damage = Damage - (Stalenum/5)
  1288. if blocked == false then
  1289. -- h:TakeDamage(Damage)
  1290. h.Health = h.Health - Damage
  1291. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), math.floor(-Damage), 1.5, Secondary_Color.Color)
  1292. else
  1293. h.Health = h.Health - (Damage / 2)
  1294. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), math.floor(-Damage), 1.5, Part.BrickColor.Color)
  1295. end
  1296. if Type == "Knockdown" then
  1297. local hum = hit.Parent.Humanoid
  1298. hum.PlatformStand = true
  1299. coroutine.resume(coroutine.create(function(HHumanoid)
  1300. swait(1)
  1301. HHumanoid.PlatformStand = false
  1302. end), hum)
  1303. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1304. local bodvol = Create("BodyVelocity"){
  1305. velocity = angle * (knockback - (StaledNum/5)),
  1306. P = 5000,
  1307. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1308. Parent = hit,
  1309. }
  1310. local rl = Create("BodyAngularVelocity"){
  1311. P = 3000,
  1312. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1313. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1314. Parent = hit,
  1315. }
  1316. game:GetService("Debris"):AddItem(bodvol, .5)
  1317. game:GetService("Debris"):AddItem(rl, .5)
  1318. elseif Type == "Normal" then
  1319. local vp = Create("BodyVelocity"){
  1320. P = 500,
  1321. maxForce = Vector3.new(math.huge, 0, math.huge),
  1322. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1323. }
  1324. if knockback > 0 then
  1325. vp.Parent = hit.Parent.Torso
  1326. end
  1327. game:GetService("Debris"):AddItem(vp, .5)
  1328. elseif Type == "Up" then
  1329. local bodyVelocity = Create("BodyVelocity"){
  1330. velocity = vt(0, 20, 0),
  1331. P = 5000,
  1332. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1333. Parent = hit,
  1334. }
  1335. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1336. elseif Type == "Snare" then
  1337. local bp = Create("BodyPosition"){
  1338. P = 2000,
  1339. D = 100,
  1340. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1341. position = hit.Parent.Torso.Position,
  1342. Parent = hit.Parent.Torso,
  1343. }
  1344. game:GetService("Debris"):AddItem(bp, 1)
  1345. elseif Type == "Freeze" then
  1346. if hitpar ~= nil then
  1347. if hitpar:FindFirstChild("Backpack") ~= nil then
  1348. for i,v in pairs(hitpar:GetChildren()) do
  1349. if v.className == "LocalScript" then
  1350. for c,b in pairs(v:GetChildren()) do
  1351. if b.Name == "Stats" then
  1352. if b.Stats:FindFirstChild("Frozen") then
  1353. b.Stats.Frozen.Value = true
  1354. coroutine.resume(coroutine.create(function()
  1355. wait(1.5)
  1356. b.Stats.Frozen.Value = false
  1357. end))
  1358. end
  1359. end
  1360. end
  1361. end
  1362. end
  1363. end
  1364. end
  1365. local clo = script.Freeze:Clone()
  1366. clo.Parent = hit.Parent
  1367. clo.Disabled = false
  1368. elseif Type == "Stun" then
  1369. local BodPos = Create("BodyPosition"){
  1370. P = 50000,
  1371. D = 1000,
  1372. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1373. position = hit.Parent.Torso.Position,
  1374. Parent = hit.Parent.Torso,
  1375. }
  1376. local BodGy = Create("BodyGyro") {
  1377. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1378. P = 20e+003,
  1379. Parent = hit.Parent.Torso,
  1380. cframe = hit.Parent.Torso.CFrame,
  1381. }
  1382. hit.Parent.Torso.Anchored = true
  1383. coroutine.resume(coroutine.create(function(Part)
  1384. swait(1.5)
  1385. Part.Anchored = false
  1386. end), hit.Parent.Torso)
  1387. game:GetService("Debris"):AddItem(BodPos, 3)
  1388. game:GetService("Debris"):AddItem(BodGy, 3)
  1389. end
  1390. local debounce = Create("BoolValue"){
  1391. Name = "DebounceHit",
  1392. Parent = hit.Parent,
  1393. Value = true,
  1394. }
  1395. game:GetService("Debris"):AddItem(debounce, Delay)
  1396. c = Instance.new("ObjectValue")
  1397. c.Name = "creator"
  1398. c.Value = Player
  1399. c.Parent = h
  1400. game:GetService("Debris"):AddItem(c, .5)
  1401. end
  1402. end
  1403.  
  1404. function ShowDamage(Pos, Text, Time, Color)
  1405. local Rate = (1 / 30)
  1406. local Pos = (Pos or Vector3.new(0, 0, 0))
  1407. local Text = (Text or "")
  1408. local Time = (Time or 2)
  1409. local Color = (Color or Color3.new(1, 0, 0))
  1410. local EffectPart = script.Label:Clone()
  1411. local TextLabel = EffectPart.GUI.Main.Label
  1412. TextLabel.Text = Text
  1413. EffectPart.Parent = game:GetService("Workspace")
  1414. delay(0, function()
  1415. local Frames = (Time / Rate)
  1416. for Frame = 1, Frames do
  1417. wait(Rate)
  1418. local Percent = (Frame / Frames)
  1419. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1420. TextLabel.TextTransparency = Percent
  1421. end
  1422. if EffectPart and EffectPart.Parent then
  1423. EffectPart:Destroy()
  1424. end
  1425. end)
  1426. end
  1427.  
  1428. function ShowStat(Pos, Text, Time, Color, Check, StatChange)
  1429. local Rate = (1 / 30)
  1430. local Pos = (Pos or Vector3.new(0, 0, 0))
  1431. local Text = (Text or "")
  1432. local Time = (Time or 2)
  1433. local Color = (Color or Color3.new(1, 0, 0))
  1434. local EffectPart = script.Label:Clone()
  1435. local TextLabel = EffectPart.GUI.Main.Label
  1436. TextLabel.Text = Check..StatChange
  1437. EffectPart.Parent = game:GetService("Workspace")
  1438. delay(0, function()
  1439. local Frames = (Time / Rate)
  1440. for Frame = 1, Frames do
  1441. wait(Rate)
  1442. local Percent = (Frame / Frames)
  1443. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1444. TextLabel.TextTransparency = Percent
  1445. end
  1446. if EffectPart and EffectPart.Parent then
  1447. EffectPart:Destroy()
  1448. end
  1449. end)
  1450. end
  1451.  
  1452. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  1453. for _,c in pairs(workspace:children()) do
  1454. local hum=c:findFirstChild("Humanoid")
  1455. if hum~=nil then
  1456. local head=c:findFirstChild("Torso")
  1457. if head~=nil then
  1458. local targ=head.Position-Part.Position
  1459. local mag=targ.magnitude
  1460. if mag<=magni and c.Name~=Player.Name then
  1461. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  1462. end
  1463. end
  1464. end
  1465. end
  1466. end
  1467.  
  1468. function AerialLag(Delay,Time)
  1469. if Lag == false then
  1470. if Floor == nil then
  1471. if Anim == "Fall" then
  1472. swait(Delay)
  1473. HitFloor = false
  1474. coroutine.resume(coroutine.create(function()
  1475. while true do
  1476. wait(0.05)
  1477. if Floor ~= nil then
  1478. HitFloor = true
  1479. break
  1480. end
  1481. end
  1482. end))
  1483. if HitFloor == true then
  1484. Lag = true
  1485. attack = true
  1486. local wat = Speed.Value
  1487. Speed.Value = 0
  1488. swait(Time)
  1489. Speed.Value = wat
  1490. Lag = false
  1491. attack = false
  1492. end
  1493. end
  1494. end
  1495. end
  1496. end
  1497.  
  1498. --[[Effect Functions]]--
  1499.  
  1500. effect = Create("Model"){
  1501. Parent = Character
  1502. }
  1503. Effects = {}
  1504.  
  1505. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1506.  
  1507. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1508. NoOutline(Part)
  1509. return Part
  1510. end
  1511.  
  1512. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1513.  
  1514. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1515. if Mesh == "SpecialMesh" then
  1516. Msh.MeshType = MeshType
  1517. Msh.MeshId = MeshId
  1518. end
  1519. return Msh
  1520. end
  1521.  
  1522. SlashEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1523.  
  1524. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1525. prt.Anchored = true
  1526. prt.CFrame = cframe
  1527. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1528. game:GetService("Debris"):AddItem(prt, 2)
  1529. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  1530.  
  1531. for i = 0, 1, delay do
  1532. swait()
  1533. Part.Transparency = i
  1534. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1535. end
  1536. Part.Parent = nil
  1537. end
  1538. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  1539. end
  1540.  
  1541. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1542.  
  1543. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1544. prt.Anchored = true
  1545. prt.CFrame = cframe
  1546. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1547. game:GetService("Debris"):AddItem(prt, 10)
  1548. if Type == 1 or Type == nil then
  1549. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1550. else
  1551. if Type == 2 then
  1552. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1553. end
  1554. end
  1555. end
  1556.  
  1557. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1558.  
  1559. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1560. prt.Anchored = true
  1561. prt.CFrame = cframe
  1562. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1563. game:GetService("Debris"):AddItem(prt, 10)
  1564. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1565. end
  1566.  
  1567. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1568.  
  1569. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1570. prt.Anchored = true
  1571. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1572. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1573. game:GetService("Debris"):AddItem(prt, 10)
  1574. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1575. end
  1576.  
  1577. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1578.  
  1579. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1580. prt.Anchored = true
  1581. prt.CFrame = cframe
  1582. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1583. game:GetService("Debris"):AddItem(prt, 10)
  1584. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1585. end
  1586.  
  1587. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1588.  
  1589. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1590. prt.Anchored = true
  1591. prt.CFrame = cframe
  1592. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1593. game:GetService("Debris"):AddItem(prt, 10)
  1594. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1595. end
  1596.  
  1597. function ExplosionEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1598. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1599. prt.Anchored = true
  1600. prt.CFrame = cframe
  1601. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://15170610", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1602. game:GetService("Debris"):AddItem(prt, 10)
  1603. table.insert(Effects, {prt,"Block1",delay,x3,y3,z3,msh})
  1604. end
  1605.  
  1606. function OpenHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1607. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1608. prt.Anchored = true
  1609. prt.CFrame = cframe
  1610. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://73031750", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1611. game:GetService("Debris"):AddItem(prt, 10)
  1612. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1613. end
  1614.  
  1615. function CloseHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1616. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1617. prt.Anchored = true
  1618. prt.CFrame = cframe
  1619. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://90718752", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1620. game:GetService("Debris"):AddItem(prt, 10)
  1621. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1622. end
  1623.  
  1624. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1625. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1626. prt.Anchored = true
  1627. prt.CFrame = cframe
  1628. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1629. game:GetService("Debris"):AddItem(prt, 10)
  1630. table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
  1631. end
  1632.  
  1633. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1634.  
  1635. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1636. prt.Anchored = true
  1637. prt.CFrame = cframe
  1638. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1639. game:GetService("Debris"):AddItem(prt, 10)
  1640. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1641. end
  1642.  
  1643. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1644. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1645. prt.Anchored = true
  1646. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1647. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1648. local num = math.random(10, 50) / 1000
  1649. game:GetService("Debris"):AddItem(prt, 10)
  1650. table.insert(Effects, {prt,"Shatter",num,prt.CFrame,math.random() - math.random(),0,math.random(50, 100) / 100})
  1651. end
  1652.  
  1653.  
  1654. CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1655.  
  1656. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1657. prt.Anchored = true
  1658. prt.CFrame = cframe
  1659. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1660. game:GetService("Debris"):AddItem(prt, 10)
  1661. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1662. end
  1663.  
  1664. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,ne)
  1665. if ne == nil or ne == false then
  1666. prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1667. else
  1668. prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  1669. end
  1670. prt.Anchored=true
  1671. prt.CFrame=cframe
  1672. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1673. game:GetService("Debris"):AddItem(prt,5)
  1674. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1675. end
  1676.  
  1677. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1678. local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1679. prt.Anchored=true
  1680. prt.CFrame=cframe
  1681. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1682. game:GetService("Debris"):AddItem(prt,5)
  1683. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1684. end
  1685.  
  1686. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1687. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1688. prt.Anchored=true
  1689. prt.CFrame=cframe
  1690. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1691. game:GetService("Debris"):AddItem(prt,2)
  1692. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1693. end
  1694.  
  1695. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1696. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1697. prt.Anchored=true
  1698. prt.CFrame=cframe
  1699. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1700. game:GetService("Debris"):AddItem(prt,2)
  1701. coroutine.resume(coroutine.create(function(Part,Mesh)
  1702. for i=0,1,delay do
  1703. swait()
  1704. Part.CFrame=Part.CFrame
  1705. Part.Transparency=i
  1706. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1707. end
  1708. Part.Parent=nil
  1709. end),prt,msh)
  1710. end
  1711.  
  1712. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1713. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1714. prt.Anchored=true
  1715. prt.CFrame=cframe
  1716. prt.CanCollide = false
  1717. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1718. game:GetService("Debris"):AddItem(prt,2)
  1719. coroutine.resume(coroutine.create(function(Part,Mesh)
  1720. for i=0,1,delay do
  1721. swait()
  1722. Part.CFrame=Part.CFrame
  1723. Part.Transparency=i
  1724. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1725. end
  1726. Part.Parent=nil
  1727. end),prt,msh)
  1728. end
  1729.  
  1730. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1731. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1732. prt.Anchored=true
  1733. prt.CFrame=cframe
  1734. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1735. game:GetService("Debris"):AddItem(prt,2)
  1736. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1737. for i=0,1,delay do
  1738. swait()
  1739. Part.Transparency=i
  1740. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1741. end
  1742. Part.Parent=nil
  1743. end),prt,msh,(math.random(0,1)+math.random())/5)
  1744. end
  1745.  
  1746. function Laser(Part,Color1,Color2,LaserSize1,LaserSize2,Size1,Size2,Magnitude,Mindam,Maxdam,Knock,Type)
  1747. sp = Part.Position
  1748. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
  1749. local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
  1750. local las=Instance.new("Part",Character)
  1751. las.Material = "SmoothPlastic"
  1752. las.Anchored=true
  1753. las.Locked=true
  1754. las.CanCollide=false
  1755. las.TopSurface=0
  1756. las.BottomSurface=0
  1757. rootlook=RootPart.CFrame
  1758. las.FormFactor = "Custom"
  1759. las.BrickColor=BrickColor.new(Color1)
  1760. las.Size=Vector3.new(1,1,1)
  1761. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  1762. local msh=Instance.new("SpecialMesh",las)
  1763. mag = (Part.Position-pos).magnitude
  1764. msh.Scale=Vector3.new(0.1,mag,0.1)
  1765. so("rbxassetid://263610152",Part,1,1.5)
  1766. coroutine.resume(coroutine.create(function(Part,Mesh)
  1767. for i = 0,1,0.1 do
  1768. wait()
  1769. Part.Transparency = Part.Transparency + 0.1
  1770. Mesh.Scale = Mesh.Scale + Vector3.new(LaserSize1,LaserSize2,LaserSize1)
  1771. end
  1772. Part.Parent = nil
  1773. end),las,msh)
  1774. if pos ~= nil then
  1775. MagicBlock(BrickColor.new(Color1),cf(pos)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),Size1,Size1,Size1,Size1,Size1,Size1,.07)
  1776. CloudEffect(BrickColor.new(Color2),cf(pos),Size2,Size2,Size2,Size2,Size2,Size2,.07)
  1777. end
  1778. if hit ~= nil and pos ~= nil then
  1779. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1780. if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1781. MagniDamage(hit.Parent.Torso,hit.Parent.Torso,Magnitude,Mindam,Maxdam,Knock,Type)
  1782. end
  1783. end
  1784. end
  1785. end
  1786.  
  1787. function Shot(Part,Color1,Color2,LaserSize1,LaserSize2,Size1,Size2,Magnitude,Mindam,Maxdam,Knock,Type)
  1788. sp = Part.Position
  1789. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
  1790. local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
  1791. local las=Instance.new("Part",Character)
  1792. las.Material = "SmoothPlastic"
  1793. las.Anchored=true
  1794. las.Locked=true
  1795. las.CanCollide=false
  1796. las.TopSurface=0
  1797. las.BottomSurface=0
  1798. rootlook=RootPart.CFrame
  1799. las.FormFactor = "Custom"
  1800. las.BrickColor=BrickColor.new(Color1)
  1801. las.Size=Vector3.new(1,1,1)
  1802. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  1803. local msh=Instance.new("SpecialMesh",las)
  1804. mag = (Part.Position-pos).magnitude
  1805. msh.Scale=Vector3.new(0.1,mag,0.1)
  1806. so("rbxassetid://263610152",Part,1,1.5)
  1807. coroutine.resume(coroutine.create(function(Part,Mesh)
  1808. for i = 0,1,0.1 do
  1809. wait()
  1810. Part.Transparency = Part.Transparency + 0.1
  1811. Mesh.Scale = Mesh.Scale + Vector3.new(LaserSize1,LaserSize2,LaserSize1)
  1812. end
  1813. Part.Parent = nil
  1814. end),las,msh)
  1815. if hit ~= nil and pos ~= nil then
  1816. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1817. if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1818. end
  1819. end
  1820. end
  1821. end
  1822.  
  1823. --[[Left Click Combo]]--
  1824.  
  1825. function Shoot()
  1826. attack = true
  1827. for i = 0, 1, 0.1 do
  1828. swait()
  1829. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1830. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3)
  1831. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1832. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1833. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  1834. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
  1835. end
  1836. so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
  1837. so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
  1838. so("http://www.roblox.com/asset/?id=169380505", Barrel, 0.7, 1.1)
  1839. so("http://www.roblox.com/asset/?id=169380505", Barrel, 0.7, 1.1)
  1840. Laser(Barrel,"Medium green","Medium green",0.15,0.7,5,1,15,6,8,0,"Normal",false,0,true,0.05,false,0)
  1841. for i = 0, 1, 0.05 do
  1842. swait()
  1843. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1844. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(5), math.rad(-50)), 0.3)
  1845. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(30), math.rad(10)), 0.3)
  1846. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(50)), 0.3)
  1847. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  1848. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
  1849. end
  1850. attack = false
  1851. end
  1852.  
  1853. --[[Skills]]--
  1854.  
  1855. function Z()
  1856. attack = true
  1857. for i = 0,1,0.05 do
  1858. swait()
  1859. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1860. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1861. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(30), math.rad(0), math.rad(-90)), 0.3)
  1862. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(30)), 0.3)
  1863. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1864. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1865. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  1866. end
  1867. local Hit1 = Hitbox.Touched:connect(function(hit)
  1868. Damagefunc(Hitbox,hit,10,12,-5,"Knockdown",Hitbox,0.2,"Hit1",1,false,0,false,0,true,0.05)
  1869. end)
  1870. Spinning = true
  1871. Mana.Value = Mana.Value - 10
  1872. for x=0,10 do
  1873. swait()
  1874. MagicBlock("Medium green",Hitbox.CFrame,3,3,3,3,3,3,0.05,true)
  1875. MagniDamage(Hitbox,Hitbox,25,5,10,0,"Knockdown")
  1876. so("rbxassetid://557322360",Hitbox,1,1)
  1877. Energy.Value = Energy.Value - 2
  1878. if Energy.Value <= 0 then
  1879. break
  1880. end
  1881. for i = 0, 1, 0.05 do
  1882. swait()
  1883. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-0.5), math.rad(0), math.rad(80)), 0.3)
  1884. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-80)), 0.3)
  1885. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1886. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1887. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-0.5)), 0.3)
  1888. LH.C0 = clerp(LH.C0, CFrame.new(-0.9, -1, -0.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-0.5)), 0.3)
  1889. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -15, 0) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(90)), 0.3)
  1890. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  1891. end
  1892. end
  1893. Spinning = false
  1894. Hit1:disconnect()
  1895. attack = false
  1896. end
  1897.  
  1898. function X()
  1899. attack = true
  1900. for i = 0,1,.1 do
  1901. swait()
  1902. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(-50), math.rad(-50)), .3)
  1903. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(60)), .3)
  1904. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1905. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1906. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1907. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1908. end
  1909. for i = 0,1,.1 do
  1910. swait()
  1911. if i == .4 then
  1912. coroutine.resume(coroutine.create(function()
  1913. for i, v in pairs(Character:children()) do
  1914. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1915. v.Transparency=1
  1916. end
  1917. if (v:IsA("Accessory")) then
  1918. v.Handle.Transparency=1
  1919. end
  1920. Head.face.Transparency=1
  1921. end
  1922. for i, v in pairs(m:children()) do
  1923. if (v:IsA("BasePart")) then
  1924. v.Transparency=1
  1925. end
  1926. end
  1927. end))
  1928. RingEffect(BrickColor.new("Bright green"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1929. end
  1930. Torso.Velocity=RootPart.CFrame.lookVector*75
  1931. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1932. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1933. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1934. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1935. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1936. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1937. end
  1938. for i = 1,8,1 do
  1939. local ef=CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new("White"),"Effect",vt())
  1940. ef.Anchored=true
  1941. ef.CFrame=RootPart.CFrame*cf(0,0,-7.5*i)
  1942. so("http://www.roblox.com/asset/?id=231917788",ef,1,1)
  1943. MagniDamage(ef,ef,12,20,35,10,"Knockdown")
  1944. game:GetService("Debris"):AddItem(ef,.5)
  1945. SphereEffect(BrickColor.new("Bright green"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
  1946. for i=10,1,-1 do
  1947. BreakEffect(BrickColor.new("Bright green"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
  1948. end
  1949. BlockEffect(BrickColor.new("White"),ef.CFrame*angles(math.random(1,360),math.random(1,360),math.random(1,360)),3,3,3,3,3,3,0.05)
  1950. BlockEffect(BrickColor.new("White"),ef.CFrame*angles(math.random(1,360),math.random(1,360),math.random(1,360)),3,3,3,3,3,3,0.05)
  1951. end
  1952. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1953. coroutine.resume(coroutine.create(function()
  1954. for i, v in pairs(Character:children()) do
  1955. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1956. v.Transparency=0
  1957. end
  1958. if (v:IsA("Accessory")) then
  1959. v.Handle.Transparency=0
  1960. end
  1961. Head.face.Transparency=0
  1962. end
  1963. for i, v in pairs(m:children()) do
  1964. if (v:IsA("BasePart")) and v ~= Handle then
  1965. v.Transparency=0
  1966. end
  1967. end
  1968. Hitbox.Transparency=1
  1969. end))
  1970. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1971. for i = 0,1,.1 do
  1972. swait()
  1973. if i == .1 then
  1974. coroutine.resume(coroutine.create(function()
  1975. for i, v in pairs(Character:children()) do
  1976. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1977. v.Transparency=0
  1978. end
  1979. if (v:IsA("Accessory")) then
  1980. v.Handle.Transparency=0
  1981. end
  1982. Head.face.Transparency=0
  1983. end
  1984. for i, v in pairs(m:children()) do
  1985. if (v:IsA("BasePart")) and v ~= Handle then
  1986. v.Transparency=0
  1987. end
  1988. Hitbox.Transparency=1
  1989. end
  1990. end))
  1991. RingEffect(BrickColor.new("Black"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1992. end
  1993. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -5, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1994. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1995. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1996. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1997. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1998. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1999. end
  2000. Mana.Value = Mana.Value - 12
  2001. Energy.Value = Energy.Value - 7
  2002. attack = false
  2003. end
  2004.  
  2005. function C()
  2006. attack = true
  2007. local Hit1 = Hitbox.Touched:connect(function(hit)
  2008. Damagefunc(Hitbox,hit,9,12,5,"Knockdown",RootPart,0.2,"Hit1",1,false,0,false,0,false,0)
  2009. end)
  2010. for i = 0,1,0.05 do
  2011. swait()
  2012. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  2013. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(15),math.rad(0),math.rad(0)),.2)
  2014. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(205), math.rad(0), math.rad(0)),.2)
  2015. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),.2)
  2016. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.2)
  2017. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.2)
  2018. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)), 0.3)
  2019. end
  2020. so("http://www.roblox.com/asset/?id=203691447",Hitbox,1,1)
  2021. for i = 0,1,0.05 do
  2022. swait()
  2023. MagicBlock("Medium green",Hitbox.CFrame*CFrame.new(2,0,0)*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),0.5,0.5,0.5,0.5,0.5,0.5,0.05,true)
  2024. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.2)
  2025. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  2026. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(45), math.rad(0), math.rad(0)),.2)
  2027. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)),.2)
  2028. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(30)),.2)
  2029. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.2)
  2030. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)), 0.3)
  2031. end
  2032. swait()
  2033. so("rbxassetid://110284742",Hitbox,1,5)
  2034. Energy.Value = Energy.Value - 15
  2035. MagicBlock("Medium green",Hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),12,12,12,12,12,12,0.05,true)
  2036. MagicBlock("Medium green",Hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),12,12,12,12,12,12,0.05,true)
  2037. MagniDamage(Hitbox,Hitbox,35,10,18,5,"Knockdown",true,0.1,false,0,false,0)
  2038. MagniDamage(Hitbox,Hitbox,45,5,7,8,"Normal",false,0,false,0,false,0)
  2039. Hit1:disconnect()
  2040. Mana.Value = Mana.Value - 15
  2041. Energy.Value = Energy.Value - 20
  2042. attack = false
  2043. end
  2044.  
  2045. function V()
  2046. attack = true
  2047. for i = 0, 1, 0.1 do
  2048. swait()
  2049. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2050. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3)
  2051. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(10)), 0.3)
  2052. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  2053. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  2054. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
  2055. end
  2056. so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
  2057. Shot(Barrel,"Really black","Really black",0.15,0.7,5,1,15,6,8,0,"Normal",false,0,true,0.05,false,0)
  2058. for i = 0, 1, 0.2 do
  2059. swait()
  2060. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  2061. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(5), math.rad(-50)), 0.3)
  2062. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(90), math.rad(10)), 0.3)
  2063. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  2064. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  2065. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
  2066. end
  2067. attack = false
  2068. Mana.Value = Mana.Value - 25
  2069. for i=1,8 do
  2070. local dacf=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  2071. local dacf2=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  2072. local dacf3=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  2073. local icepart1=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
  2074. i1msh=CreateMesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  2075. icepart1.CFrame=dacf
  2076. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  2077. for i=0,1,0.1 do
  2078. swait()
  2079. icepart1.CFrame=dacf
  2080. dacf=dacf*cf(0,math.random(400,800)/10,0)
  2081. end
  2082. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(icepart1.Position-(icepart1.Position+vt(0,-1,0))).magnitude/100
  2083. local TheHit=mouse.Hit.p
  2084. local MouseLook=cf((icepart1.Position+TheHit)/2,TheHit+spread)
  2085. local hit,pos = rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  2086. local target1,distance1=rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  2087. --local target1,distance1=findNearestTorso(icepart1.Position)
  2088. local test1,dist1=mouse.Hit.p
  2089. local pos1=nil
  2090. local refpart1=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Ref",vt()) refpart1.Anchored=true
  2091. if target1~=nil then
  2092. --pos1=target1.Position
  2093. refpart1.CFrame=cf(pos)*cf(math.random(-5,5),5,math.random(-5,5))
  2094. end
  2095. local move=40
  2096. for i=0,1,0.1 do
  2097. swait()
  2098. move=40-40*i
  2099. if hit~=nil then
  2100. refpart1.CFrame=cf(refpart1.Position,pos)
  2101. SphereEffect(BrickColor.new("Really black"),icepart1.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  2102. icepart1.CFrame=dacf
  2103. dacf=dacf*cf(0,move,0)
  2104. end
  2105. end
  2106. local laser1=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Really black"),"Effect",vt())
  2107. laser1.Anchored=true
  2108. local lmsh1=CreateMesh("SpecialMesh",laser1,"Head","",vt(0,0,0),vt(10,1,10))
  2109. local ref=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  2110. ref.Anchored=true
  2111. ref.CFrame=cf(0,0,0)
  2112. game:GetService("Debris"):AddItem(ref,1)
  2113. local ref1=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  2114. ref1.Anchored=true
  2115. ref1.CFrame=cf(0,0,0)
  2116. game:GetService("Debris"):AddItem(ref1,5)
  2117. local ice1=0
  2118. for i=0,3,0.05 do
  2119. swait()
  2120. ice1=ice1+1
  2121. if hit~=nil then
  2122. if i>1 then
  2123. refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
  2124. end
  2125. local cfnew=cf(icepart1.Position,refpart1.Position)
  2126. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  2127. local mag1=(icepart1.Position-pos).magnitude
  2128. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  2129. lmsh1.Scale=vt(10,mag1*5,10)
  2130. BlockEffect(BrickColor.new("Really black"),cf(pos1),5,5,5,5,5,5,.1,1)
  2131. ref.CFrame=cf(pos1)
  2132. MagniDamage(ref,ref,5,8,14,0,"Normal")
  2133. ref1.CFrame=cf(ref.Position)
  2134. if ice1%2==0 then
  2135. so("http://www.roblox.com/asset/?id=333476017",ref1,.3,1.4)
  2136. end
  2137. end
  2138. end
  2139. if hit~=nil then
  2140. local pos1=laser1.CFrame
  2141. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  2142. HeadEffect(BrickColor.new("Really black"),pos1,x1,y1,z1,1,1,1,.1)
  2143. end
  2144. SphereEffect(BrickColor.new("Really black"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  2145. icepart1.Parent=nil
  2146. refpart1.Parent=nil
  2147. laser1.Parent=nil
  2148. ref.Parent=nil
  2149. Energy.Value = Energy.Value - 4
  2150. if Energy.Value <= 0 then
  2151. break
  2152. end
  2153. end
  2154. end
  2155.  
  2156. --[[Key Functions]]--
  2157.  
  2158. local cd1 = false
  2159. local cd2 = false
  2160. local cd3 = false
  2161. local cd4 = false
  2162. local Block = false
  2163.  
  2164. mouse.Button1Down:connect(function()
  2165. if attack == true then return end
  2166. Shoot()
  2167. end)
  2168.  
  2169. mouse.KeyDown:connect(function(key)
  2170. key = key:lower()
  2171. if attack == true then return end
  2172. if Sheathed == false then
  2173. if key == "z" and cd1 == false and Mana.Value >= 10 and Energy.Value >= 20 then
  2174. cd1 = true
  2175. Cover1.Size = UDim2.new(0,0,1,0)
  2176. Z()
  2177. Cover1:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill1cooldown)
  2178. repeat wait() until Cover1.Size == UDim2.new(1,0,1,0)
  2179. cd1 = false
  2180. elseif key == "x" and cd2 == false and Mana.Value >= 12 and Energy.Value >= 7 then
  2181. cd2 = true
  2182. Cover2.Size = UDim2.new(0,0,1,0)
  2183. X()
  2184. Cover2:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill2cooldown)
  2185. repeat wait() until Cover2.Size == UDim2.new(1,0,1,0)
  2186. cd2 = false
  2187. elseif key == "c" and cd3 == false and Mana.Value >= 15 and Energy.Value >= 20 then
  2188. cd3 = true
  2189. Cover3.Size = UDim2.new(0,0,1,0)
  2190. C()
  2191. Cover3:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill3cooldown)
  2192. repeat wait() until Cover3.Size == UDim2.new(1,0,1,0)
  2193. cd3 = false
  2194. elseif key == "v" and cd4 == false and Mana.Value >= 25 and Energy.Value >= 32 then
  2195. cd4 = true
  2196. Cover4.Size = UDim2.new(0,0,1,0)
  2197. V()
  2198. Cover4:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill4cooldown)
  2199. repeat wait() until Cover4.Size == UDim2.new(1,0,1,0)
  2200. cd4 = false
  2201. elseif key == "e" then
  2202. attack = true
  2203. Block = true
  2204. Defense.Value = Defense.Value + 1.7
  2205. Speed.Value = Speed.Value - 1.1
  2206. Humanoid.WalkSpeed = Base_Speed * Speed.Value
  2207. while Block == true do
  2208. swait()
  2209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2210. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2211. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.7) * CFrame.Angles(math.rad(90), math.rad(0) ,math.rad(-79)), 0.3)
  2212. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(79)), 0.3)
  2213. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.5) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2214. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  2215. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2216. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2217. gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
  2218. end
  2219. end
  2220. elseif Sheathed == true then
  2221.  
  2222. end
  2223. end)
  2224.  
  2225. mouse.KeyUp:connect(function(key)
  2226. key = key:lower()
  2227. if key == "e" then
  2228. Block = false
  2229. Defense.Value = Defense.Value - 1.7
  2230. Speed.Value = Speed.Value + 1.1
  2231. Humanoid.WalkSpeed = Base_Speed * Speed.Value
  2232. attack = false
  2233. end
  2234. end)
  2235.  
  2236. --[[Engine]]--
  2237.  
  2238. local sine = 0
  2239. local change = 1
  2240. local val = 0
  2241. local Mananum = 0
  2242. local Energynum = 0
  2243. local idle = 0
  2244.  
  2245. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  2246. RHCF = CFrame.Angles(0, math.rad(90), 0)
  2247.  
  2248. Humanoid.WalkSpeed = Base_Speed * Speed.Value
  2249.  
  2250. while true do
  2251. swait()
  2252. if spin >= 360 or spin < 0 then
  2253. spin = 0
  2254. else
  2255. if Block == true then
  2256. spin = spin + 7
  2257. elseif Spinning == true then
  2258. spin = spin + 12
  2259. else
  2260. spin = spin + 3
  2261. end
  2262. end
  2263. if attack == false and Frozen == false then
  2264. Humanoid.WalkSpeed = Base_Speed * Speed.Value
  2265. end
  2266. if Mana.Value >= MaxMana then
  2267. Mana.Value = MaxMana
  2268. else
  2269. if Mananum <= ManaInterval then
  2270. Mananum = Mananum + 1
  2271. else
  2272. Mananum = 0
  2273. Mana.Value = math.floor(Mana.Value) + Recover_Mana
  2274. end
  2275. end
  2276. if Energy.Value >= MaxEnergy then
  2277. Energy.Value = MaxEnergy
  2278. else
  2279. if Energynum <= EnergyInterval then
  2280. Energynum = Energynum + 1
  2281. else
  2282. Energynum = 0
  2283. Energy.Value = math.floor(Energy.Value) + Recover_Energy
  2284. end
  2285. end
  2286. Bar1.Label.Text = "Mana ~{"..Mana.Value.."}~"
  2287. Bar2.Label.Text = "Synergy ~{"..Energy.Value.."}~"
  2288. Bar1Cover:TweenSize(UDim2.new(1 * (Mana.Value / MaxMana), 0, 1, 0), "Out", "Linear", 0.5)
  2289. Bar2Cover:TweenSize(UDim2.new(1 * (Energy.Value / MaxEnergy), 0, 1, 0), "Out", "Linear", 0.5)
  2290. GUI.Speed.Label.Text = "Speed {"..Speed.Value.."}"
  2291. GUI.Attack.Label.Text = "Attack {"..Attack.Value.."}"
  2292. GUI.Defense.Label.Text = "Defense {"..Defense.Value.."}"
  2293. sine = sine + change
  2294. local torvel = (RootPart.Velocity * Vector3.new(1,0,1)).magnitude
  2295. local velderp = RootPart.Velocity.y
  2296. Floor,FloorPosition = rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2297. if equipped == true or equipped == false then
  2298. if attack == false then
  2299. idle = idle + 1
  2300. else
  2301. idle = 0
  2302. end
  2303. if RootPart.Velocity.y > 1 and Floor == nil then
  2304. Anim = "Jump"
  2305. if attack == false and Lag == false then
  2306. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2307. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2308. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
  2309. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-10)), 0.3)
  2310. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2311. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2312. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2313. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2314. gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
  2315. end
  2316. elseif RootPart.Velocity.y < -1 and Floor == nil then
  2317. Anim = "Fall"
  2318. if attack == false and Lag == false then
  2319. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2320. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2321. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
  2322. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-7.5)), 0.3)
  2323. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2324. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2325. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2326. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2327. gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
  2328. end
  2329. elseif torvel < 1 and Floor ~= nil then
  2330. Anim = "Idle"
  2331. if attack == false and Lag == false then
  2332. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)), 0.3)
  2333. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
  2334. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(53), math.rad(0) ,math.rad(0)), 0.3)
  2335. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(42)), 0.3)
  2336. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(4)), 0.3)
  2337. LH.C0 = clerp(LH.C0, CFrame.new(-1.1, -1, 0.1) * LHCF * CFrame.Angles(math.rad(-15), math.rad(-10), math.rad(10)), 0.3)
  2338. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2339. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2340. gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
  2341. end
  2342. elseif torvel > 2 and Floor ~= nil then
  2343. Anim = "Walk"
  2344. if attack == false and Lag == false then
  2345. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2346. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2347. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
  2348. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-5)), 0.3)
  2349. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2350. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2351. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2352. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2353. gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
  2354. end
  2355. elseif Floor ~= nil then
  2356. Anim = "Lag"
  2357. if attack == true and Lag == true then
  2358. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2359. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2360. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0) ,math.rad(0)), 0.3)
  2361. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2362. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2363. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2364. handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2365. bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
  2366. end
  2367. end
  2368. end
  2369. if #Effects > 0 then
  2370. for e=1,#Effects do
  2371. if Effects[e] ~= nil then
  2372. local Effect = Effects[e]
  2373. if Effect ~= nil then
  2374. local Part = Effect[1]
  2375. local Mode = Effect[2]
  2376. local Delay = Effect[3]
  2377. local IncX = Effect[4]
  2378. local IncY = Effect[5]
  2379. local IncZ = Effect[6]
  2380. if Effect[1].Transparency<=1 then
  2381. if Effect[2] == "Block1" then
  2382. Effect[1].CFrame = Effect[1].CFrame * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2383. Mesh = Effect[1].Mesh
  2384. Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
  2385. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2386. elseif Effect[2] == "Cylinder" then
  2387. Mesh = Effect[1].Mesh
  2388. Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
  2389. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2390. elseif Effect[2] == "Blood" then
  2391. Mesh = Effect[7]
  2392. Effect[1].CFrame = Effect[1].CFrame*cf(0,.5,0)
  2393. Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
  2394. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2395. elseif Effect[2] == "Elec" then
  2396. Mesh = Effect[1].Mesh
  2397. Mesh.Scale = Mesh.Scale + vt(Effect[7],Effect[8],Effect[9])
  2398. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2399. elseif Effect[2] == "Disappear" then
  2400. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2401. elseif Effect[2] == "Shatter" then
  2402. Effect[1].Transparency = Effect[1].Transparency + Effect[3]
  2403. Effect[4] = Effect[4] * CFrame.new(0, Effect[7], 0)
  2404. Effect[1].CFrame = Effect[4] * CFrame.fromEulerAnglesXYZ(Effect[6], 0, 0)
  2405. Effect[6] = Effect[6] + Effect[5]
  2406. end
  2407. end
  2408. else
  2409. Part.Parent = nil
  2410. table.remove(Effects,e)
  2411. end
  2412. end
  2413. end
  2414. end
  2415. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement