Advertisement
memberhero

Fixed Damage Sheild I Think?

Nov 19th, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --i used stravants Beautifier so it might look a bit wonky
  2. ----Fixed By basstracker1970 Cuz Yolo
  3. Meshes = {
  4. Blast = '20329976',
  5. Crown = '1323306',
  6. Ring = '3270017',
  7. Claw = '10681506',
  8. Crystal = '9756362',
  9. Coil = '9753878',
  10. Cloud = '1095708',
  11. }
  12. clangsounds = {
  13. '199149119',
  14. '199149109',
  15. '199149072',
  16. '199149025',
  17. '199148971'
  18. }
  19. hitsounds = {
  20. '199149137',
  21. '199149186',
  22. '199149221',
  23. '199149235',
  24. '199149269',
  25. '199149297'
  26. }
  27. blocksounds = {
  28. '199148933',
  29. '199148947'
  30. }
  31. armorsounds = {
  32. '199149321',
  33. '199149338',
  34. '199149367',
  35. '199149409',
  36. '199149452'
  37. }
  38. woosh = {
  39. Heavy1 = '320557353',
  40. Heavy2 = '320557382',
  41. Heavy3 = '320557453',
  42. Heavy4 = '199144226',
  43. Heavy5 = '203691447',
  44. Heavy6 = '203691467',
  45. Heavy7 = '203691492',
  46. Light1 = '320557413',
  47. Light2 = '320557487',
  48. Light3 = '199145095',
  49. Light4 = '199145146',
  50. Light5 = '199145887',
  51. Light6 = '199145913',
  52. Light7 = '199145841',
  53. Medium1 = '320557518',
  54. Medium2 = '320557537',
  55. Medium3 = '320557563',
  56. Medium4 = '199145204'
  57. }
  58. music = {--i like music a lot
  59. Breaking = '179281636',
  60. FinalReckoning = '357375770',
  61. NotDeadYet = '346175829',
  62. Intense = '151514610',
  63. JumpP1 = '160536628',
  64. JumpP2 = '60536666',
  65. SonsOfWar = '158929777',
  66. WrathOfSea = '165520893',
  67. ProtecTorsofEarth = '160542922',
  68. SkyTitans = '179282324',
  69. ArchAngel = '144043274',
  70. Anticipation = '168614529',
  71. TheMartyred = '186849544',
  72. AwakeP1 = '335631255',
  73. AwakeP2 = '335631297',
  74. ReadyAimFireP1 = '342455387',
  75. ReadyAimFireP2 = '342455399',
  76. DarkLordP1 = '209567483',
  77. DarkLordP2 = '209567529',
  78. BloodDrainP1 = '162914123',
  79. BloodDrainP2 = '162914203',
  80. DanceOfSwords = '320473062',
  81. Opal = '286415112',
  82. Calamity = '190454307',
  83. Hypnotica = '155968128',
  84. Nemisis = '160453802',
  85. Breathe = '276963903',
  86. GateToTheRift = '270655227',
  87. InfernalBeserking = '244143404',
  88. Trust = '246184492',
  89. AwakeningTheProject = '245121821',
  90. BloodPain = '242545577',
  91. Chaos = '247241693',
  92. NightmareFictionHighStake = '248062278',
  93. TheWhiteWeapon = '247236446',
  94. Gale = '256851659',
  95. ImperialCode = '256848383',
  96. Blitzkrieg = '306431437',
  97. RhapsodyRage = '348690251',
  98. TheGodFist = '348541501',
  99. BattleForSoul = '321185592',
  100. TheDarkColossus = '305976780',
  101. EmpireOfAngels = '302580452',
  102. Kronos = '302205297',
  103. Exorcist = '299796054',
  104. CrimsonFlames = '297799220',
  105. UltimatePower = '295753229',
  106. DrivingInTheDark = '295753229',
  107. AscendToPower = '293860654',
  108. GodOfTheSun = '293612495',
  109. DarkRider = '293861765',
  110. Vengeance = '293375555',
  111. SoundOfWar = '293376196',
  112. HellsCrusaders = '293012202',
  113. Legend = '293011823',
  114. RisingSouls = '290524959'
  115. }
  116. misc = {
  117. GroundSlam = '199145477',
  118. LaserSlash = '199145497',
  119. RailGunFire = '199145534',
  120. Charge1 = '199145659',
  121. Charge2 = '169380469',
  122. Charge3 = '169380479',
  123. EmptyGun = '203691822',
  124. GunShoot = '203691837',
  125. Stomp1 = '200632875',
  126. Stomp2 = '200632561',
  127. TelsaCannonCharge = '169445572',
  128. TelsaCannonShoot = '169445602',
  129. AncientHymm = '245313442'
  130. }
  131. wait(1 / 60)
  132. local Player = game.Players.localPlayer
  133. local Character = Player.Character
  134. local Humanoid = Character.Humanoid
  135. local mouse = Player:GetMouse()
  136. local m = Instance.new('Model', Character)
  137. m.Name = "WeaponModel"
  138. local LeftArm = Character["Left Arm"]
  139. local RightArm = Character["Right Arm"]
  140. local LeftLeg = Character["Left Leg"]
  141. local RightLeg = Character["Right Leg"]
  142. local Head = Character.Head
  143. local Torso = Character.Torso
  144. local cam = game.Workspace.CurrentCamera
  145. local RootPart = Character.HumanoidRootPart
  146. local RootJoint = RootPart.RootJoint
  147. --cam.CameraSubject = Head
  148. local equipped = false
  149. local attack = false
  150. local Anim = 'Idle'
  151. local idle = 0
  152. local sprint = false
  153. local battlestance = false
  154. local attacktype = 1
  155. local state = 'none'
  156. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  157. local velocity = RootPart.Velocity.y
  158. local sine = 0
  159. local change = 1
  160. local on = false
  161. local grabbed = false
  162. local skill1 = false
  163. local skill2 = false
  164. local skill3 = false
  165. local skill4 = false
  166. local cooldown1 = 0
  167. local cooldown2 = 0
  168. local cooldown3 = 0
  169. local cooldown4 = 0
  170. local co1 = 10--how long it will take for skill to cooldown
  171. local co2 = 15
  172. local co3 = 15
  173. local co4 = 25
  174. local inputserv = game:GetService('UserInputService')
  175. local typing = false
  176. local crit = false
  177. local critchance = 2--critical chance percentage
  178. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  179. local critdamageaddmax = 7--maximum amount
  180. local maxstamina = 100--max amount of stamina
  181. local stamina = 0--stamina you start out with
  182. local skill1stam = 10--how much stamina is needed for a skill
  183. local skill2stam = 10
  184. local skill3stam = 20
  185. local skill4stam = 30
  186. local recovermana = 3--how much mana per second
  187. local defensevalue = 1--how much defense this character has
  188. local speedvalue = 1--how much speed this character has
  189. --speed is 16*speedvalue
  190. local mindamage = 5--self explanatory
  191. local maxdamage = 7--self explanatory
  192. local damagevalue = 1--how much damage this character has
  193. --damage is math.random(mindamage,maxdamage)*damagevalue
  194. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  195. --asd
  196. local cn = CFrame.new-- make things easier :)
  197. local mr = math.rad
  198. local angles = CFrame.Angles
  199. local ud = UDim2.new
  200. local c3 = Color3.new
  201. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  202. --asd
  203. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  204. Humanoid.Animator:Destroy()
  205. Character.Animate:Destroy()
  206.  
  207. --Angles For RootJoint And Hips `~`
  208. local ch = Character
  209. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  210. local RHCF = CFrame.fromEulerAnglesXYZ(0,1.6,0)
  211. local LHCF = CFrame.fromEulerAnglesXYZ(0,-1.6,0)
  212. --Save Shoulders/Hips
  213. RSH, LSH = nil, nil
  214. --Shoulders
  215. RW = Instance.new("Weld")
  216. LW = Instance.new("Weld")
  217. --Hips
  218. RH = ch.Torso["Right Hip"]
  219. LH = ch.Torso["Left Hip"]
  220. --
  221. Player = Player
  222. ch = Character
  223. RSH = ch.Torso["Right Shoulder"]
  224. LSH = ch.Torso["Left Shoulder"]
  225. --
  226. RSH.Parent = nil
  227. LSH.Parent = nil
  228. --
  229. RW.Name = "RW"
  230. RW.Part0 = ch.Torso
  231. RW.C0 = cn(1.5, 0.5, 0)
  232. RW.C1 = cn(0, 0.5, 0)
  233. RW.Part1 = ch["Right Arm"]
  234. RW.Parent = ch.Torso
  235. --
  236. LW.Name = "LW"
  237. LW.Part0 = ch.Torso
  238. LW.C0 = cn(-1.5, 0.5, 0)
  239. LW.C1 = cn(0, 0.5, 0)
  240. LW.Part1 = ch["Left Arm"]
  241. LW.Parent = ch.Torso
  242.  
  243. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  244. function makeframe(par, trans, pos, size, color)
  245. local frame = Instance.new('Frame', par)
  246. frame.BackgroundTransparency = trans
  247. frame.BorderSizePixel = 0
  248. frame.Position = pos
  249. frame.Size = size
  250. frame.BackgroundColor3 = color
  251. return frame
  252. end
  253. function makelabel(par, text)
  254. local label = Instance.new('TextLabel', par)
  255. label.BackgroundTransparency = 1
  256. label.Size = ud(1, 0, 1, 0)
  257. label.Position = ud(0, 0, 0, 0)
  258. label.TextColor3 = c3(255, 255, 255)
  259. label.TextStrokeTransparency = 0
  260. label.FontSize = Enum.FontSize.Size32
  261. label.Font = Enum.Font.SourceSansBold
  262. label.BorderSizePixel = 0
  263. label.TextScaled = true
  264. label.Text = text
  265. end
  266. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  267. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  268. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  269. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  270. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  271. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  272. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  273. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  274. text1 = makelabel(framesk1, '[3] Skill3')
  275. text2 = makelabel(framesk2, '[4] Skill4')
  276. text3 = makelabel(framesk3, "[2] Skill2")
  277. text4 = makelabel(framesk4, '[1] Rush Charge')
  278. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  279. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  280. staminatext = makelabel(staminabar, 'Mana')
  281. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  282. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  283. healthtext = makelabel(healthbar, 'Health')
  284.  
  285. local stats = Instance.new('Folder', Character)
  286. stats.Name = 'Stats'
  287. local block = Instance.new('BoolValue', stats)
  288. block.Name = 'Block'
  289. block.Value = false
  290. local stun = Instance.new('BoolValue', stats)
  291. stun.Name = 'Stun'
  292. stun.Value = false
  293. local defense = Instance.new('NumberValue', stats)
  294. defense.Name = 'Defence'
  295. defense.Value = defensevalue
  296. local speed = Instance.new('NumberValue', stats)
  297. speed.Name = 'Speed'
  298. speed.Value = speedvalue
  299. local damagea = Instance.new('NumberValue', stats)
  300. damagea.Name = 'Damage'
  301. damagea.Value = damagevalue
  302.  
  303. function atktype(s, e)
  304. coroutine.resume(coroutine.create(function()
  305. attacktype = e
  306. wait(1.5)
  307. attacktype = s
  308. end))
  309. end
  310.  
  311. function turncrit()
  312. coroutine.resume(coroutine.create(function()
  313. print'CRITICAL!'
  314. crit = true
  315. wait(.25)
  316. crit = false
  317. end))
  318. end
  319.  
  320. function subtractstamina(k)
  321. if stamina >= k then
  322. stamina = stamina - k
  323. end
  324. end
  325.  
  326. function clerp(a, b, t)
  327. return a:lerp(b, t)
  328. end
  329.  
  330. function randomizer(percent)
  331. local randomized = math.random(0, 100)
  332. if randomized <= percent then
  333. return true
  334. elseif randomized >= percent then
  335. return false
  336. end
  337. end
  338.  
  339. local RbxUtility = LoadLibrary("RbxUtility")
  340. local Create = RbxUtility.Create
  341.  
  342. function RemoveOutlines(part)
  343. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  344. end
  345.  
  346. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  347. local Part = Create("Part"){
  348. formFactor = FormFactor,
  349. Parent = Parent,
  350. Reflectance = Reflectance,
  351. Transparency = Transparency,
  352. CanCollide = false,
  353. Locked = true,
  354. BrickColor = BrickColor.new(tostring(BColor)),
  355. Name = Name,
  356. Size = Size,
  357. Material = Material,
  358. }
  359. RemoveOutlines(Part)
  360. return Part
  361. end
  362.  
  363. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  364. local Msh = Create(Mesh){
  365. Parent = Part,
  366. Offset = OffSet,
  367. Scale = Scale,
  368. }
  369. if Mesh == "SpecialMesh" then
  370. Msh.MeshType = MeshType
  371. Msh.MeshId = MeshId
  372. end
  373. return Msh
  374. end
  375.  
  376. function CreateWeld(Parent, Part0, Part1, C0, C1)
  377. local Weld = Create("Weld"){
  378. Parent = Parent,
  379. Part0 = Part0,
  380. Part1 = Part1,
  381. C0 = C0,
  382. C1 = C1,
  383. }
  384. return Weld
  385. end
  386.  
  387. function rayCast(pos, dir, maxl, ignore)
  388. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  389. end
  390. --Effects
  391. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  392. local p = Instance.new('Part', par or workspace)
  393. p.CFrame = pos1
  394. p.Anchored = true
  395. p.Material = 'SmoothPlastic'
  396. p.CanCollide = false
  397. p.TopSurface = 0
  398. p.Size = Vector3.new(1, 1, 1)
  399. p.BottomSurface = 0
  400. p.Transparency = trans
  401. p.FormFactor = 'Custom'
  402. RemoveOutlines(p)
  403. local mesh = Instance.new('SpecialMesh', p)
  404. mesh.Scale = size
  405. if id ~= nil and type == nil then
  406. mesh.MeshId = 'rbxassetid://'..id
  407. elseif id == nil and type ~= nil then
  408. mesh.MeshType = type
  409. elseif id == nil and type == nil then
  410. mesh.MeshType = 'Brick'
  411. end
  412. coroutine.wrap(function()
  413. for i = 0, delay1, .1 do
  414. wait(1 / 60)
  415. p.CFrame = p.CFrame
  416. mesh.Scale = mesh.Scale + howmuch
  417. p.Transparency = p.Transparency + trans1
  418. end
  419. p:Destroy()
  420. end)()
  421. return p
  422. end
  423. function clangy(cframe)
  424. wait(1 / 60)
  425. local clang = {}
  426. local dis = 0
  427. local part = Instance.new('Part', nil)
  428. part.CFrame = cframe
  429. part.Anchored = true
  430. part.CanCollide = false
  431. part.BrickColor = BrickColor.new('New Yeller')
  432. part.FormFactor = 'Custom'
  433. part.Name = 'clanger'
  434. part.Size = Vector3.new(.2, .2, .2)
  435. part.TopSurface = 10
  436. part.BottomSurface = 10
  437. part.RightSurface = 10
  438. part.LeftSurface = 10
  439. part.BackSurface = 10
  440. part.FrontSurface = 10
  441. --part.Material='Neon'
  442. part:BreakJoints()
  443. local mesh = Instance.new('BlockMesh', part)
  444. coroutine.wrap(function()
  445. for i = 1, 7 do
  446. wait(1 / 60)
  447. dis = dis + .2
  448. local partc = part:clone()
  449. partc.Parent = workspace
  450. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  451. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  452. table.insert(clang, partc)
  453. end
  454. for i, v in pairs(clang) do
  455. coroutine.wrap(function()
  456. for i = 1, 10 do
  457. wait(.01)
  458. v.Transparency = v.Transparency + .1
  459. end
  460. v:destroy()
  461. end)()
  462. end
  463. end)()
  464. end
  465. --damage effects
  466. function circle(color, pos1)
  467. local p = Instance.new('Part', m)
  468. p.BrickColor = BrickColor.new(color)
  469. p.CFrame = pos1
  470. p.Anchored = true
  471. p.Material = 'Plastic'
  472. p.CanCollide = false
  473. p.TopSurface = 0
  474. p.Size = Vector3.new(1, 1, 1)
  475. p.BottomSurface = 0
  476. p.Transparency = 0.35
  477. p.FormFactor = 'Custom'
  478. local mesh = Instance.new('CylinderMesh', p)
  479. mesh.Scale = Vector3.new(0, 0, 0)
  480. coroutine.wrap(function()
  481. for i = 0, 5, .1 do
  482. wait(1 / 60)
  483. p.CFrame = p.CFrame
  484. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  485. p.Transparency = p.Transparency + .025
  486. end
  487. p:Destroy()
  488. end)()
  489. end
  490. function firespaz1(color, pos1)
  491. local p = Instance.new('Part', m)
  492. p.BrickColor = BrickColor.new(color)
  493. p.CFrame = pos1
  494. p.Anchored = true
  495. p.Material = 'Plastic'
  496. p.CanCollide = false
  497. p.TopSurface = 0
  498. p.Size = Vector3.new(1, 1, 1)
  499. p.BottomSurface = 0
  500. p.Transparency = 0.5
  501. p.FormFactor = 'Custom'
  502. local mesh = Instance.new('BlockMesh', p)
  503. mesh.Scale = Vector3.new(1, 1, 1)
  504. coroutine.wrap(function()
  505. for i = 0, 15, .1 do
  506. wait(1 / 30)
  507. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  508. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  509. p.Transparency = p.Transparency + .025
  510. end
  511. p:Destroy()
  512. end)()
  513. end
  514.  
  515. function pickrandom(tablesa)
  516. local randomized = tablesa[math.random(1, #tablesa)]
  517. return randomized
  518. end
  519. function sound(id, pitch, volume, par, last)
  520. local s = Instance.new('Sound', par or Torso)
  521. s.SoundId = 'rbxassetid://'..id
  522. s.Pitch = pitch or 1
  523. s.Volume = volume or 1
  524. wait()
  525. s:play()
  526. game.Debris:AddItem(s, last or 120)
  527. end
  528. function clangy(cframe)
  529. wait(1 / 60)
  530. local clang = {}
  531. local dis = 0
  532. local part = Instance.new('Part', nil)
  533. part.CFrame = cframe
  534. part.Anchored = true
  535. part.CanCollide = false
  536. part.BrickColor = BrickColor.new('New Yeller')
  537. part.FormFactor = 'Custom'
  538. part.Name = 'clanger'
  539. part.Size = Vector3.new(.2, .2, .2)
  540. part.TopSurface = 10
  541. part.BottomSurface = 10
  542. part.RightSurface = 10
  543. part.LeftSurface = 10
  544. part.BackSurface = 10
  545. part.FrontSurface = 10
  546. --part.Material='Neon'
  547. part:BreakJoints()
  548. local mesh = Instance.new('BlockMesh', part)
  549. coroutine.wrap(function()
  550. for i = 1, 7 do
  551. wait(1 / 60)
  552. dis = dis + .2
  553. local partc = part:clone()
  554. partc.Parent = workspace
  555. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  556. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  557. table.insert(clang, partc)
  558. end
  559. for i, v in pairs(clang) do
  560. coroutine.wrap(function()
  561. for i = 1, 10 do
  562. wait(.01)
  563. v.Transparency = v.Transparency + .1
  564. end
  565. v:destroy()
  566. end)()
  567. end
  568. end)()
  569. end
  570. --damage effects
  571. --Effects
  572. so = function(id, par, vol, pit)
  573. coroutine.resume(coroutine.create(function()
  574. local sou = Instance.new("Sound", par or workspace)
  575. sou.Volume = vol
  576. sou.Pitch = pit or 1
  577. sou.SoundId = id
  578. wait()
  579. sou:play()
  580. game:GetService("Debris"):AddItem(sou, 6)
  581. end))
  582. end
  583.  
  584. local function getclosest(obj, distance)
  585. local last, lastx = distance + 1
  586. for i, v in pairs(workspace:GetChildren()) do
  587. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  588. local t = v.Torso
  589. local dist = (t.Position - obj.Position).magnitude
  590. if dist <= distance then
  591. if dist < last then
  592. last = dist
  593. lastx = v
  594. end
  595. end
  596. end
  597. end
  598. return lastx
  599. end
  600.  
  601. function makegui(cframe, text)
  602. local a = math.random(-10, 10) / 100
  603. local c = Instance.new("Part")
  604. c.Transparency = 1
  605. Instance.new("BodyGyro").Parent = c
  606. c.Parent = m
  607. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  608. local f = Instance.new("BodyPosition")
  609. f.P = 2000
  610. f.D = 100
  611. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  612. f.position = c.Position + Vector3.new(0, 3, 0)
  613. f.Parent = c
  614. game:GetService("Debris"):AddItem(c, .5 + 6)
  615. c.CanCollide = false
  616. m.Parent = workspace
  617. c.CanCollide = false
  618. local bg = Instance.new('BillboardGui', m)
  619. bg.Adornee = c
  620. bg.Size = UDim2.new(1, 0, 1, 0)
  621. bg.StudsOffset = Vector3.new(0, 0, 0)
  622. bg.AlwaysOnTop = false
  623. local tl = Instance.new('TextLabel', bg)
  624. tl.BackgroundTransparency = 1
  625. tl.Size = UDim2.new(1, 0, 1, 0)
  626. tl.Text = text
  627. tl.Font = 'SourceSansBold'
  628. tl.FontSize = 'Size42'
  629. if crit == true then
  630. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  631. else
  632. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  633. end
  634. tl.TextStrokeTransparency = 0
  635. tl.TextScaled = true
  636. tl.TextWrapped = true
  637. coroutine.wrap(function()
  638. wait(2)
  639. for i = 1, 10 do
  640. wait()
  641. tl.TextTransparency = tl.TextTransparency + .1
  642. end
  643. end)()
  644. end
  645.  
  646. function tag(hum, Player)
  647. local creator = Instance.new('ObjectValue', hum)
  648. creator.Value = Player
  649. creator.Name = 'creator'
  650. end
  651. function untag(hum)
  652. if hum ~= nil then
  653. local tag = hum:findFirstChild("creator")
  654. if tag ~= nil then
  655. tag.Parent = nil
  656. end
  657. end
  658. end
  659.  
  660. function tagPlayer(h)
  661. coroutine.wrap(function()
  662. tag(h, Player)
  663. wait(1)
  664. untag(h)
  665. end)()
  666. end
  667. function damage(hit, mind, maxd, knock, type, prop)
  668. --[[
  669. to apply it to a Player directly, make the first arg go to the Players Torso
  670. 1 - normal type(damage and knockback)
  671. 2 - drain type(damage no knockback)
  672. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  673. 4 - heal(heals target)
  674. 5 - subtracts enemies defense
  675. 6 - subtracts enemies speed
  676. 7 -
  677. ]]
  678. if hit.Name:lower() == 'Hitbox' then
  679. local pos = CFrame.new(0, 1, -1)
  680. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  681. coroutine.wrap(function()
  682. for i = 1, 4 do
  683. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  684. end
  685. end)()
  686. end
  687. if hit.Parent == nil then
  688. return
  689. end
  690. local h = hit.Parent:FindFirstChild("Humanoid")
  691. for i, v in pairs(hit.Parent:children()) do
  692. if v:IsA("Humanoid") then
  693. h = v
  694. end
  695. end
  696. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  697. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  698. end
  699. if hit.Parent:IsA('Hat') then
  700. hit = hit.Parent.Parent:findFirstChild('Head')
  701. end
  702. local D = math.random(mind, maxd) * damagea.Value
  703. if h.Parent:FindFirstChild('Stats') then
  704. D = D / h.Parent:FindFirstChild('Stats').Defence.Value
  705. elseif not h.Parent:FindFirstChild('Stats') then
  706. D = D
  707. end
  708. if h then
  709. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
  710. end
  711. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  712. if type == 1 then
  713. tagPlayer(h)
  714. local asd = randomizer(critchance)
  715. if asd == true then
  716. turncrit()
  717. end
  718. if crit == false then
  719. h.Health = h.Health - D
  720. else
  721. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  722. end
  723. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  724. local vp = Instance.new('BodyVelocity')
  725. vp.P = 500
  726. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  727. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  728. if knock > 0 then
  729. vp.Parent = hit.Parent.Torso
  730. end
  731. game:GetService("Debris"):AddItem(vp, .5)
  732. elseif type == 2 then
  733. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  734. local asd = randomizer(critchance)
  735. if asd == true then
  736. turncrit()
  737. end
  738. if crit == false then
  739. h.Health = h.Health - D
  740. else
  741. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  742. end
  743. tagPlayer(h)
  744. elseif type == 3 then
  745. tagPlayer(h)
  746. local asd = randomizer(critchance)
  747. if asd == true then
  748. turncrit()
  749. end
  750. if crit == false then
  751. h.Health = h.Health - D
  752. else
  753. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  754. end
  755. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  756. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  757. for i = 1, 10 do
  758. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  759. end
  760. elseif type == 4 then
  761. h.Health = h.Health + D
  762. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  763. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  764. end
  765. end
  766. end
  767.  
  768. function subtrackstamina(k)
  769. if stamina >= k then
  770. stamina = stamina - k
  771. end
  772. end
  773.  
  774. Handle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,1,"Pastel light blue","Handle",Vector3.new(0.549599648, 1, 1.01160002))
  775. Handleweld=CreateWeld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0937860012, 0.00657367706, 0.00419616699, 5.96046448e-008, 0.999994755, 5.96095191e-008, 1, -5.96043037e-008, -4.8416058e-007, -4.8416058e-007, 5.96092349e-008, -1))
  776. Hitbox=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,1,"Pastel light blue","Hitbox",Vector3.new(4.54959965, 0.600000024, 6.41160011))
  777. Hitboxweld=CreateWeld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200000048, -0.599998474, 0.100006104, 1, -4.38871487e-016, 0, -4.38871487e-016, 1, 0, 0, 0, 1))
  778. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599959))
  779. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748267651, 0.374885559, -0.163708687, 0.259237081, -0.965813696, 8.29293697e-007, -1.94643121e-006, -1.38109544e-006, -1, 0.965813696, 0.259237081, -2.23792108e-006))
  780. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  781. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 1.16819978, 0.210000008))
  782. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.15255737e-007, -0.0840969086, -0.409217834, 1, -4.38871487e-016, 0, -4.38871487e-016, 1, 0, 0, 0, 1))
  783. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  784. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668091297, 1.44761658, 2.02336073, -0.259194463, 0.96582514, 3.82060307e-006, 4.7164408e-006, -2.69006023e-006, 1, 0.96582514, 0.259194463, -3.85800831e-006))
  785. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  786. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  787. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.387033463, -0.748291492, -2.00602722, 0.932904124, 0.250400364, 0.258823335, -0.259233505, 0.965814769, -1.51112181e-006, -0.249975771, -0.0670942664, 0.96592468))
  788. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  789. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  790. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791927338, 0.0731578469, -2.68690491, 0.258355826, 0.96604985, 1.57819898e-006, 0.96604985, -0.258355826, 4.46641252e-006, 4.72251395e-006, 3.70695147e-007, -1))
  791. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  792. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  793. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748335838, 0.499908447, 0.236524105, 0.259243727, -0.965811968, 2.29213128e-006, 3.49563311e-006, 3.31156821e-006, 1, -0.965811968, -0.259243727, 4.23462734e-006))
  794. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  795. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 1.31219983))
  796. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748334408, 0.354118347, -0.49246645, 0.259243727, -0.965811968, 2.42647434e-006, 3.57742101e-006, 3.47262016e-006, 1, -0.965811968, -0.259243727, 4.35537095e-006))
  797. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  798. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  799. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748334885, -0.354110718, 1.22145891, 0.259243816, -0.965811849, 1.87510204e-006, -3.89473416e-006, -2.98690452e-006, -1, 0.965811849, 0.259243816, -4.53591747e-006))
  800. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  801. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.437400103, 0.200000003))
  802. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.419552326, 0.645721436, 0.748315811, 0.965813994, 0.259236038, -1.18782089e-006, 8.57471662e-007, 1.38739472e-006, 1, 0.259236038, -0.965813994, 1.1176777e-006))
  803. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  804. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599989))
  805. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.748250961, -1.10388184, 1.00268936, -0.259237349, 0.965813696, -2.95466089e-006, 2.05441142e-006, 3.61067669e-006, 1, 0.965813696, 0.259237349, -2.92020081e-006))
  806. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  807. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.729000032, 0.200000003))
  808. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.273701668, -1.10388947, 0.748267174, 0.965814769, 0.259233236, -4.11742462e-007, 3.74089325e-007, 1.94579599e-007, 1, 0.259233236, -0.965814769, 9.09514597e-008))
  809. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  810. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  811. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.71172905, 1.08311462, 1.8220439, -0.258364588, -0.966047525, 4.46861804e-006, -1.88454442e-006, 5.12968245e-006, 1, -0.966047525, 0.258364588, -3.14588783e-006))
  812. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  813. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  814. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.291137397, 0.791987419, -0.0103759766, -0.966036141, 0.258407384, 3.18614229e-006, -0.258407384, -0.966036141, -1.70527414e-006, 2.6372727e-006, -2.47067874e-006, 1))
  815. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  816. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 2.04120016, 0.200000003))
  817. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0733758211, 1.59341431, -0.791968346, -0.966033578, 0.258416891, -1.1448418e-006, -1.16560352e-006, 7.2865646e-008, 1, 0.258416891, 0.966033578, 2.30821001e-007))
  818. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  819. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.02060008))
  820. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791931152, -2.61401367, 0.509956539, 0.258375138, 0.966044664, -2.14422334e-006, 3.80396909e-006, -3.2369876e-006, -1, -0.966044664, 0.258375138, -4.51116148e-006))
  821. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  822. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.04120016, 0.437399924))
  823. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711686134, -1.03097534, -1.82201755, 0.258405864, 0.966036499, -3.94140943e-006, -1.7037512e-006, 4.53571738e-006, 1, 0.966036499, -0.258405864, 2.81794178e-006))
  824. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  825. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.04120016, 0.437399983))
  826. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711735725, 1.03098297, 1.82195807, 0.258460104, 0.966022015, -2.66190364e-006, 1.11263591e-006, -3.05321805e-006, -1, -0.966022015, 0.258460104, -1.86396585e-006))
  827. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  828. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  829. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.711661339, -1.09309554, 2.978508, -0.258407265, -0.966036081, 3.36418725e-006, 0.966036081, -0.258407265, -8.32808269e-007, 1.67385315e-006, 3.03472257e-006, 1))
  830. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  831. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  832. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.31173015, 0.791917801, -0.0103683472, -0.966039896, 0.258393317, -5.88560738e-007, -0.258393317, -0.966039896, -1.65475512e-006, -9.96150675e-007, -1.44647902e-006, 1))
  833. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  834. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  835. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.280853271, -2.04826355, -0.791953087, -0.933117151, 0.249601856, 0.25882712, 0.25003624, -0.0668830872, 0.965923667, 0.258407503, 0.966036081, 2.45528014e-007))
  836. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  837. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  838. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.801402152, -0.0103759766, -0.791955948, -0.966036141, 0.258407384, -2.41263734e-007, -2.7156463e-007, -8.15671228e-008, 1, 0.258407384, 0.966036141, 1.48971026e-007))
  839. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  840. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  841. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.711751938, -0.947353661, 2.46820831, -0.258386463, -0.966041744, -1.42285126e-006, 0.966041744, -0.258386463, -3.87151067e-006, 3.37239476e-006, -2.37487916e-006, 1))
  842. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  843. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  844. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711641312, -1.09310102, 2.85347748, 0.258411825, 0.96603483, -3.37836354e-006, 0.96603483, -0.258411825, 1.16675437e-006, 2.54116259e-007, -3.5651201e-006, -1))
  845. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  846. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  847. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.711715698, 0.94726485, -2.46821594, -0.258387119, -0.966041565, -1.17710044e-007, -0.966041565, 0.258387119, 2.52460541e-006, -2.40845884e-006, 7.66038113e-007, -1))
  848. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  849. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599959))
  850. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.792075157, 0.374885559, -0.000447571278, 0.258397371, 0.966038823, -3.81478458e-008, 1.99738133e-006, -5.73751208e-007, -1, -0.966038823, 0.258397371, -2.07780386e-006))
  851. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  852. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.291599959))
  853. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.792011261, 2.24951172, 0.145552039, -0.258379161, -0.966043591, -2.21535828e-007, -4.39142241e-006, 9.4521215e-007, 1, -0.966043591, 0.258379161, -4.48652872e-006))
  854. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  855. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  856. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.22946167, 0.791992188, -2.04825592, -0.933117151, 0.249601737, 0.258827031, -0.258407086, -0.966036141, 8.11744485e-007, 0.250036478, -0.066881977, 0.965923727))
  857. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  858. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  859. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.79108429, 0.791954994, -2.04824829, -0.933117151, 0.249601856, 0.25882712, -0.258407176, -0.966036081, 9.06736943e-007, 0.250036567, -0.0668819323, 0.965923727))
  860. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  861. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  862. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711748123, 0.947217226, -2.34318542, 0.258388281, 0.966041148, 1.08739897e-007, -0.966041148, 0.258388281, -2.73797241e-006, -2.67309088e-006, 6.0241274e-007, 1))
  863. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  864. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  865. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711779594, -0.947313726, 2.3431778, 0.258389086, 0.966040909, 1.36804704e-006, 0.966040909, -0.258389086, 4.12955433e-006, 4.34280719e-006, 2.54557619e-007, -1))
  866. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  867. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  868. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.79196167, 0.499908447, 0.0733489394, 0.258376598, 0.966044366, 1.46641844e-006, -4.57452143e-006, -2.94468009e-007, 1, 0.966044366, -0.258376598, 4.34310687e-006))
  869. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  870. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 1.31219983))
  871. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791954994, 0.354118347, -0.655609488, 0.258398682, 0.966038465, 1.57091995e-006, -4.80159633e-006, -3.41801865e-007, 1, 0.966038465, -0.258398682, 4.55020563e-006))
  872. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  873. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  874. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.248426437, 2.16902924, -0.79195118, -0.933116436, 0.249601498, -0.25883016, -0.25003925, 0.0668835416, 0.965922832, 0.258407265, 0.966036201, 3.19331264e-008))
  875. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  876. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.729000032, 0.200000003))
  877. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.436873257, -1.10388184, -0.79204464, -0.966035903, 0.25840804, -2.51160202e-007, -4.18471444e-008, 8.1551002e-007, 1, 0.25840804, 0.966035903, -7.7699832e-007))
  878. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  879. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599989))
  880. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.791975021, -1.10387421, 1.16587758, -0.258397251, -0.966038764, -2.16711919e-006, -3.48613889e-006, -1.31082766e-006, 1, -0.966038764, 0.258397251, -3.02903118e-006))
  881. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  882. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.583199918, 0.291599989))
  883. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791950226, -1.15602112, 0.145350814, 0.258398414, 0.966038465, 1.00403645e-006, 4.74357103e-006, -2.29488592e-007, -1, -0.966038465, 0.258398414, -4.64177128e-006))
  884. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  885. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  886. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791969299, -0.354118347, 1.38458776, 0.258398414, 0.966038465, 9.90328999e-007, 4.74258241e-006, -2.4341341e-007, -1, -0.966038465, 0.258398414, -4.64441473e-006))
  887. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  888. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(1.7495997, 4.22819996, 0.291599929))
  889. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.728473842, 0.0625152588, -0.711821556, -0.96603328, 0.258417934, -4.64850359e-007, -2.20301672e-007, 9.7528698e-007, 1, 0.258417934, 0.96603328, -8.85229781e-007))
  890. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.16639984))
  891. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791952133, -1.01022339, 0.582776666, 0.258398414, 0.966038465, 9.73264605e-007, 4.68442522e-006, -2.45521846e-007, -1, -0.966038465, 0.258398414, -4.58877776e-006))
  892. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  893. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.200000003))
  894. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791953087, -0.645729065, 1.23882413, 0.258398414, 0.966038465, 9.85365432e-007, 4.74521448e-006, -2.49255436e-007, -1, -0.966038465, 0.258398414, -4.64846698e-006))
  895. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  896. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  897. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.758653641, 0.791967392, 2.16901398, -0.933116317, 0.249601379, -0.258830756, -0.258406103, -0.966036439, -4.07655898e-006, -0.250040919, 0.0668796301, 0.965922713))
  898. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  899. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.437400103, 0.200000003))
  900. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.582713842, 0.645721436, -0.791945457, -0.966035903, 0.258407861, -1.25082556e-006, -1.27987164e-006, 5.58177362e-008, 1, 0.258407861, 0.966035903, 2.76806929e-007))
  901. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  902. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599929, 0.291599959))
  903. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.792108536, -1.61417389, -0.000424981117, -0.258397162, -0.966038883, -2.09015161e-006, -3.05568869e-006, -1.34629158e-006, 1, -0.966038883, 0.258397162, -2.60403613e-006))
  904. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  905. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  906. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.261831284, 0.7920084, 2.16902924, -0.933116376, 0.249601558, -0.258829921, -0.258406281, -0.966036439, -4.11973315e-006, -0.250040174, 0.0668794289, 0.965923011))
  907. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  908. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  909. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748393536, 0.236421585, -2.68690491, 0.259242177, -0.965812325, 9.39434904e-006, -0.965812325, -0.259242177, 1.81594089e-006, 6.81553331e-007, -9.54394636e-006, -1))
  910. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  911. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 0.200000003, 0.611599982))
  912. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.400000095, 0, 1, -4.38871487e-016, 0, -4.38871487e-016, 1, 0, 0, 0, 1))
  913. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  914. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.633543015, -0.748318195, -2.00602722, 0.932904184, 0.250400394, 0.258823454, -0.259233505, 0.965814769, -1.53903522e-006, -0.24997583, -0.0670942515, 0.965924621))
  915. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  916. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  917. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.668150902, 1.32257843, 2.02337718, 0.259231716, -0.965815246, -5.59616274e-006, -2.02115484e-006, 5.25174482e-006, -1, 0.965815246, 0.259231716, -5.90643424e-007))
  918. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  919. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.16639984))
  920. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748328209, -1.01021576, 0.419537544, 0.259243816, -0.965811849, 1.82883696e-006, -3.7662528e-006, -2.90451476e-006, -1, 0.965811849, 0.259243816, -4.39046926e-006))
  921. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  922. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599929, 0.291599959))
  923. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.748274803, -1.61417389, -0.163676262, -0.259237617, 0.965813577, -2.98417535e-006, 1.98260818e-006, 3.62196397e-006, 1, 0.965813577, 0.259237617, -2.85377928e-006))
  924. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  925. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.583199918, 0.291599989))
  926. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748350143, -1.15601349, -0.0178599358, 0.259243816, -0.965811849, 1.85960675e-006, -3.80946062e-006, -2.94797155e-006, -1, 0.965811849, 0.259243816, -4.44346597e-006))
  927. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  928. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  929. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0908699036, 2.12680817, 0.748318195, 0.932903409, 0.250400096, -0.258826435, 0.24997808, 0.067097418, 0.965923846, 0.259234011, -0.96581459, 8.78642084e-007))
  930. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  931. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  932. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.601093292, -0.748310566, 2.12677765, 0.93290323, 0.250400156, -0.258826882, -0.259234697, 0.965814352, -3.2069297e-006, 0.249977916, 0.0670999065, 0.965923727))
  933. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  934. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(1.7495997, 4.22819996, 0.291599929))
  935. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.565392971, 0.0625152588, 0.668135643, 0.965815246, 0.259231359, -4.91199387e-007, 4.8916678e-007, 7.23472908e-008, 1, 0.259231359, -0.965815246, -5.69332315e-008))
  936. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.200000003))
  937. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748342991, -0.645713806, 1.0756433, 0.259243816, -0.965811849, 1.8409371e-006, -3.99065493e-006, -2.97727752e-006, -1, 0.965811849, 0.259243816, -4.6260634e-006))
  938. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  939. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  940. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419418335, -0.748321056, 2.12680054, 0.932903469, 0.250400156, -0.258826196, -0.259234637, 0.965814352, -3.23053882e-006, 0.249977246, 0.0670997277, 0.965924025))
  941. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  942. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 1.16819966, 0.200000003))
  943. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.15255737e-007, -0.0840959549, 0.40423584, 1, -4.38871487e-016, 0, -4.38871487e-016, 1, 0, 0, 0, 1))
  944. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  945. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748373508, -0.236422062, 2.68690491, 0.259242624, -0.965812266, 1.82163058e-006, 0.965812266, 0.259242624, -2.00591694e-006, 1.46509501e-006, 2.27937221e-006, 1))
  946. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  947. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  948. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668161869, -1.08311462, -1.65887642, -0.259238631, 0.965813279, -4.12923669e-007, 2.22891821e-008, -4.21557132e-007, -1, -0.965813279, -0.259238631, 8.77566961e-008))
  949. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  950. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  951. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668140888, 1.08312225, 1.65885949, -0.259237617, 0.965813577, 3.65497885e-006, 3.96671521e-006, -2.71963154e-006, 1, 0.965813577, 0.259237617, -3.12607654e-006))
  952. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  953. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  954. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.127997398, -0.748288631, -0.0103759766, 0.96581459, 0.259233892, 3.24961434e-006, -0.259233892, 0.96581459, -2.47951652e-006, -3.78129926e-006, 1.55234306e-006, 1))
  955. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  956. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  957. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668211937, -0.929962635, 2.97852325, -0.259212017, 0.965820491, 2.54913289e-006, -0.965820491, -0.259212017, -8.96806228e-007, -2.05387948e-007, -2.69446741e-006, 1))
  958. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  959. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  960. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.123281479, -2.00604248, 0.748316288, 0.932904124, 0.250400394, 0.258823514, -0.249975741, -0.0670948401, 0.965924621, 0.259233654, -0.96581471, 9.78878688e-007))
  961. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  962. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  963. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14855218, -0.748366833, -0.0103759766, 0.965815067, 0.259231985, -7.14727889e-007, -0.259231985, 0.965815067, -2.50817857e-006, 4.00949318e-008, 2.60771685e-006, 1))
  964. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  965. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.04120016, 0.437399924))
  966. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.668152809, -1.03097534, -1.65887117, 0.259237349, -0.965813637, -3.15378566e-006, 3.45980902e-006, -2.33675905e-006, 1, -0.965813637, -0.259237349, 2.73575552e-006))
  967. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  968. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.04120016, 0.437399983))
  969. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.66814518, 1.03097534, 1.65886927, 0.259237885, -0.965813518, -1.87370847e-006, -2.21794357e-006, 1.34470429e-006, -1, 0.965813518, 0.259237885, -1.79352128e-006))
  970. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  971. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  972. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.668205738, -0.930031061, 2.85346985, 0.259222269, -0.96581769, -2.60306479e-006, -0.96581775, -0.259222299, 1.14704233e-006, -1.7826062e-006, 2.21674713e-006, -1))
  973. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  974. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 2.04120016, 0.200000003))
  975. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.236513138, 1.59341431, 0.748343468, 0.965813994, 0.259236038, -1.21717028e-006, 8.87492035e-007, 1.38876521e-006, 1, 0.259236038, -0.965813994, 1.11121904e-006))
  976. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  977. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  978. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.711784363, 1.44760895, 2.18656635, -0.258395731, -0.96603924, 3.16468504e-006, 7.73344993e-007, 3.06908441e-006, 1, -0.96603924, 0.258395731, -4.59567389e-008))
  979. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  980. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  981. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.791934013, -0.0731610656, 2.68690491, 0.258360416, 0.966048717, 8.7551814e-007, -0.966048717, 0.258360416, -1.93419714e-006, -2.09472728e-006, -3.46073136e-007, 1))
  982. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  983. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  984. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668188095, 0.784166813, -2.46821594, -0.259239137, 0.96581322, -9.58106966e-007, 0.96581322, 0.259239137, 2.45358251e-006, 2.61808077e-006, -2.89287811e-007, -1))
  985. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  986. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  987. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.711663246, -1.08311462, -1.82211637, -0.258347362, -0.966052175, 4.26980762e-007, -6.51804299e-008, -4.24554258e-007, -1, 0.966052175, -0.258347362, 4.67147743e-008))
  988. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  989. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  990. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.66814518, -0.784229279, 2.34318542, 0.259237558, -0.965813577, 2.15522095e-006, -0.965813577, -0.259237558, 4.15574686e-006, -3.45496255e-006, -3.15886746e-006, -1))
  991. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  992. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  993. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.711732864, 1.32258606, 2.18660164, 0.258424789, 0.966031373, -5.72344379e-006, 2.51068946e-006, -6.59633633e-006, -1, -0.966031373, 0.258424789, -4.13006182e-006))
  994. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  995. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.291599929))
  996. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.748332024, 2.24951172, -0.0176463127, -0.259235293, 0.965814173, -1.04926676e-006, 3.99967757e-006, 2.15996465e-006, 1, 0.965814173, 0.259235293, -4.42288456e-006))
  997. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  998. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  999. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.668171883, 0.784127712, -2.34318542, 0.259238124, -0.965813458, 8.95987228e-007, 0.965813458, 0.259238124, -2.76424407e-006, 2.4374699e-006, 1.58195394e-006, 1))
  1000. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1001. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  1002. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.63828373, -0.0103759766, 0.748314857, 0.96581459, 0.259233892, -1.77737036e-007, -7.47181232e-008, 9.63997763e-007, 1, 0.259233892, -0.96581459, 9.50412584e-007))
  1003. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  1004. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.02060008))
  1005. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.748323441, -2.61401367, 0.346779823, 0.259239912, -0.965812981, -1.30390742e-006, -4.67701739e-006, 9.46744763e-008, -1, 0.965812981, 0.259239912, -4.49258096e-006))
  1006. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  1007. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  1008. Partweld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668186665, -0.784234047, 2.46820831, -0.259239942, 0.965813041, -2.21002483e-006, -0.965813041, -0.259239942, -3.84502073e-006, -4.28649719e-006, 1.1376876e-006, 1))
  1009. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1010. script.Parent.Part.Touched:connect(function()
  1011. hit.Parent.Humanoid:TakeDamage(10)
  1012. end)
  1013. function attackone()
  1014. attack = true
  1015. Hitbox.CanCollide = true
  1016. for i = 0,1,0.1 do
  1017. wait()
  1018. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .33)
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .33)
  1020. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.4) * angles(math.rad(85), math.rad(0), math.rad(-70)), .33)
  1021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(80), math.rad(0), math.rad(45)), .33)
  1022. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(-20),math.rad(0)),.33)
  1023. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(-20),math.rad(0)),.33)
  1024. end
  1025. RootPart.Velocity = RootPart.CFrame.lookVector* 70
  1026. for i = 0,1,0.13 do
  1027. wait()
  1028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .5)
  1029. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-60)), .5)
  1030. RW.C0 = clerp(RW.C0, CFrame.new(1.7, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), .5)
  1031. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.5, -.5)*CFrame.new(0, 0, -.5) * angles(math.rad(80), math.rad(0), math.rad(70)), .5)
  1032. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(-30),math.rad(-10)),.5)
  1033. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(-30),math.rad(10)),.5)
  1034. end
  1035. Hitbox.CanCollide = false
  1036. attack = false
  1037. end
  1038.  
  1039. function attacktwo()
  1040. attack = true
  1041. for i = 0,1,0.1 do
  1042. wait()
  1043. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .33)
  1044. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .33)
  1045. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), .33)
  1046. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(20), math.rad(0), math.rad(-10)), .33)
  1047. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(-30),math.rad(0)),.33)
  1048. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(-30),math.rad(0)),.33)
  1049. end
  1050. for i = 0,1,0.12 do
  1051. wait()
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .35)
  1053. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), .35)
  1054. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), .35)
  1055. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(20), math.rad(0), math.rad(-80)), .35)
  1056. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(30),math.rad(0)),.35)
  1057. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(30),math.rad(0)),.35)
  1058. end
  1059. attack = false
  1060. end
  1061.  
  1062. function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1063. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1064. prt.Anchored = true
  1065. prt.CanCollide=false
  1066. prt.CFrame = cframe*cn(0,-1,0)*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1067. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1068. game:GetService("Debris"):AddItem(prt, 10)
  1069. coroutine.resume(coroutine.create(function(Part, Mesh)
  1070. for i = 0, 1, delay do
  1071. wait(0)
  1072. Part.CFrame = Part.CFrame
  1073. Part.Transparency = i
  1074. Mesh.Scale = Mesh.Scale + Vector3.new(x2, y2, z2)
  1075. end
  1076. Part.Parent = nil
  1077. end), prt, msh)
  1078. end
  1079.  
  1080. function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1081. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1082. prt.Anchored = true
  1083. prt.CFrame = cframe*cn(0,-1,0)
  1084. --prt.Material = "Neon"
  1085. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1086. game:GetService("Debris"):AddItem(prt, 10)
  1087. coroutine.resume(coroutine.create(function(Part, Mesh)
  1088. for i = 0, 1, delay do
  1089. wait(0)
  1090. Part.CFrame = Part.CFrame
  1091. Part.Transparency = i
  1092. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1093. end
  1094. Part.Parent = nil
  1095. end), prt, msh)
  1096. end
  1097.  
  1098. function attackthree()
  1099. attack = true
  1100. for i = 0,1,0.1 do
  1101. wait()
  1102. OrbEffect(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),.5,.5,.5,.5,.5,.5,0.2)
  1103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .33)
  1104. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .33)
  1105. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), .33)
  1106. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(85), math.rad(0), math.rad(-60)), .33)
  1107. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.33)
  1108. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.33)
  1109. end
  1110. RootPart.Velocity = RootPart.CFrame.lookVector* -70
  1111. for i = 1,3 do
  1112. Shockwave(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),1,1,1,1,1,1,0.05)
  1113. OrbEffect(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),1,1,1,1,1,1,0.05)
  1114. end
  1115. for i = 0,1,0.13 do
  1116. wait()
  1117. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-4), math.rad(0), math.rad(40)), .33)
  1118. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-40)), .33)
  1119. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), .33)
  1120. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(120), math.rad(0), math.rad(30)), .33)
  1121. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(-40),math.rad(5)),.33)
  1122. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(-40),math.rad(-5)),.33)
  1123. end
  1124. attack = false
  1125. end
  1126.  
  1127. mouse.Button1Down:connect(function()
  1128. if attack == false and attacktype == 1 then
  1129. attacktype = 2
  1130. attackone()
  1131. elseif attack == false and attacktype == 2 then
  1132. attacktype = 3
  1133. attacktwo()
  1134. elseif attack == false and attacktype == 3 then
  1135. attacktype = 1
  1136. attackthree()
  1137. end
  1138. end)
  1139.  
  1140. mouse.KeyDown:connect(function(k)
  1141. k = k:lower()
  1142. end)
  1143.  
  1144.  
  1145. inputserv.InputBegan:connect(function(k)
  1146. if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
  1147. elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
  1148. elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
  1149. elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
  1150. end
  1151. end)
  1152.  
  1153. inputserv.InputBegan:connect(function(k)
  1154. if k.KeyCode == Enum.KeyCode.Slash then
  1155. local fin = nil
  1156. typing = true
  1157. fin = inputserv.InputBegan:connect(function(k)
  1158. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  1159. typing = false
  1160. fin:disconnect()
  1161. end
  1162. end)
  1163. end
  1164. end)
  1165.  
  1166. function updateskills()
  1167. if cooldown1 <= co1 then
  1168. cooldown1 = cooldown1 + 1 / 30
  1169. end
  1170. if cooldown2 <= co2 then
  1171. cooldown2 = cooldown2 + 1 / 30
  1172. end
  1173. if cooldown3 <= co3 then
  1174. cooldown3 = cooldown3 + 1 / 30
  1175. end
  1176. if cooldown4 <= co4 then
  1177. cooldown4 = cooldown4 + 1 / 30
  1178. end
  1179. if stamina <= maxstamina then
  1180. stamina = stamina + recovermana / 30
  1181. end
  1182. end
  1183.  
  1184. game:GetService'RunService'.Heartbeat:connect(function()
  1185. updateskills()
  1186. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1187. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
  1188. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1189. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1190. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1191. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1192. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1193. velocity = RootPart.Velocity.y
  1194. sine = sine + change
  1195. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1196. Character.Humanoid.WalkSpeed = 16 * speed.Value
  1197. if equipped == true or equipped == false then
  1198. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1199. Anim = "Jump"
  1200. if attack == false then
  1201. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1202. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1203. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(10)), .3)
  1204. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), .3)
  1205. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.3) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(-20)), .3)
  1206. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1207. end
  1208. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1209. Anim = "Fall"
  1210. if attack == false then
  1211. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1212. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1213. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(20)), .3)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  1215. RH.C0 = clerp(RH.C0, CFrame.new(1, -.8, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1216. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1217. end
  1218. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1219. Anim = "Idle"
  1220. if attack == false then
  1221. change = 1
  1222. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.15+0.1*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1223. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10-2*math.cos(sine/15)), math.rad(0), math.rad(30)), .3)
  1224. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * angles(math.rad(65), math.rad(30), math.rad(-30+5*math.cos(sine/15))), .3)
  1225. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10-3*math.cos(sine/15)), math.rad(0), math.rad(-10-3*math.cos(sine/15))), .3)
  1226. RH.C0=clerp(RH.C0,cn(1.05,-.8-0.1*math.cos(sine/15),0)*RHCF*angles(math.rad(-3-3*math.cos(sine/15)),math.rad(30),math.rad(0)),.3)
  1227. LH.C0=clerp(LH.C0,cn(-1.05,-.8-0.1*math.cos(sine/15),0)*LHCF*angles(math.rad(-3-3*math.cos(sine/15)),math.rad(30),math.rad(0)),.3)
  1228. end
  1229. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1230. Anim = "Walk"
  1231. if attack == false then
  1232. change = 3
  1233. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10+1*math.cos(sine/15)), math.rad(0), math.rad(0+3*math.cos(sine/15))), .3)
  1234. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5-1*math.cos(sine/15)), math.rad(0), math.rad(0-1*math.cos(sine/15))), .3)
  1235. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50+1*math.cos(sine/15)), math.rad(0), math.rad(20+3*math.cos(sine/15))), .3)
  1236. LW.C0=clerp(LW.C0,CFrame.new(-1.45+.1*math.cos(sine/15),0.5,0-.1*math.cos(sine/15))*angles(math.sin(40)*math.cos(sine/15),math.rad(0),math.rad(-10+1*math.cos(sine/15))),.3)
  1237. RH.C0=clerp(RH.C0,cn(1,-1,0-0.5*math.cos(sine/15)/2)*RHCF*angles(math.rad(-3),math.rad(0),math.rad(40*math.cos(sine/15))),.3)
  1238. LH.C0=clerp(LH.C0,cn(-1,-1,0+0.5*math.cos(sine/15)/2)*LHCF*angles(math.rad(-3),math.rad(0),math.rad(40*math.cos(sine/15))),.3)
  1239. end
  1240. end
  1241. end
  1242. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement