Advertisement
ZaGodlyNoob

Untitled

Nov 11th, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("PROTOTYPE #3, ACTIVATE!")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer
  6. end
  7. --i used stravants Beautifier so it might look a bit wonky
  8. Meshes = {
  9. Blast = '20329976',
  10. Crown = '1323306',
  11. Ring = '3270017',
  12. Claw = '10681506',
  13. Crystal = '9756362',
  14. Coil = '9753878',
  15. Cloud = '1095708',
  16. }
  17. clangsounds = {
  18. '199149119',
  19. '199149109',
  20. '199149072',
  21. '199149025',
  22. '199148971'
  23. }
  24. hitsounds = {
  25. '199149137',
  26. '199149186',
  27. '199149221',
  28. '199149235',
  29. '199149269',
  30. '199149297'
  31. }
  32. blocksounds = {
  33. '199148933',
  34. '199148947'
  35. }
  36. armorsounds = {
  37. '199149321',
  38. '199149338',
  39. '199149367',
  40. '199149409',
  41. '199149452'
  42. }
  43. woosh = {
  44. Heavy1 = '320557353',
  45. Heavy2 = '320557382',
  46. Heavy3 = '320557453',
  47. Heavy4 = '199144226',
  48. Heavy5 = '203691447',
  49. Heavy6 = '203691467',
  50. Heavy7 = '203691492',
  51. Light1 = '320557413',
  52. Light2 = '320557487',
  53. Light3 = '199145095',
  54. Light4 = '199145146',
  55. Light5 = '199145887',
  56. Light6 = '199145913',
  57. Light7 = '199145841',
  58. Medium1 = '320557518',
  59. Medium2 = '320557537',
  60. Medium3 = '320557563',
  61. Medium4 = '199145204'
  62. }
  63. music = {--i like music a lot
  64. Breaking = '179281636',
  65. FinalReckoning = '357375770',
  66. NotDeadYet = '346175829',
  67. Intense = '151514610',
  68. JumpP1 = '160536628',
  69. JumpP2 = '60536666',
  70. SonsOfWar = '158929777',
  71. WrathOfSea = '165520893',
  72. ProtecTorsofEarth = '160542922',
  73. SkyTitans = '179282324',
  74. ArchAngel = '144043274',
  75. Anticipation = '168614529',
  76. TheMartyred = '186849544',
  77. AwakeP1 = '335631255',
  78. AwakeP2 = '335631297',
  79. ReadyAimFireP1 = '342455387',
  80. ReadyAimFireP2 = '342455399',
  81. DarkLordP1 = '209567483',
  82. DarkLordP2 = '209567529',
  83. BloodDrainP1 = '162914123',
  84. BloodDrainP2 = '162914203',
  85. DanceOfSwords = '320473062',
  86. Opal = '286415112',
  87. Calamity = '190454307',
  88. Hypnotica = '155968128',
  89. Nemisis = '160453802',
  90. Breathe = '276963903',
  91. GateToTheRift = '270655227',
  92. InfernalBeserking = '244143404',
  93. Trust = '246184492',
  94. AwakeningTheProject = '245121821',
  95. BloodPain = '242545577',
  96. Chaos = '247241693',
  97. NightmareFictionHighStake = '248062278',
  98. TheWhiteWeapon = '247236446',
  99. Gale = '256851659',
  100. ImperialCode = '256848383',
  101. Blitzkrieg = '306431437',
  102. RhapsodyRage = '348690251',
  103. TheGodFist = '348541501',
  104. BattleForSoul = '321185592',
  105. TheDarkColossus = '305976780',
  106. EmpireOfAngels = '302580452',
  107. Kronos = '302205297',
  108. Exorcist = '299796054',
  109. CrimsonFlames = '297799220',
  110. UltimatePower = '295753229',
  111. DrivingInTheDark = '295753229',
  112. AscendToPower = '293860654',
  113. GodOfTheSun = '293612495',
  114. DarkRider = '293861765',
  115. Vengeance = '293375555',
  116. SoundOfWar = '293376196',
  117. HellsCrusaders = '293012202',
  118. Legend = '293011823',
  119. RisingSouls = '290524959'
  120. }
  121. misc = {
  122. GroundSlam = '199145477',
  123. LaserSlash = '199145497',
  124. RailGunFire = '199145534',
  125. Charge1 = '199145659',
  126. Charge2 = '169380469',
  127. Charge3 = '169380479',
  128. EmptyGun = '203691822',
  129. GunShoot = '203691837',
  130. Stomp1 = '200632875',
  131. Stomp2 = '200632561',
  132. TelsaCannonCharge = '169445572',
  133. TelsaCannonShoot = '169445602',
  134. AncientHymm = '245313442'
  135. }
  136. wait(1 / 60)
  137. local Player = game.Players.localPlayer
  138. local Character = Player.Character
  139. local Humanoid = Character.Humanoid
  140. local mouse = Player:GetMouse()
  141. local m = Instance.new('Model', Character)
  142. m.Name = "WeaponModel"
  143. local LeftArm = Character["Left Arm"]
  144. local RightArm = Character["Right Arm"]
  145. local LeftLeg = Character["Left Leg"]
  146. local RightLeg = Character["Right Leg"]
  147. local Head = Character.Head
  148. local Torso = Character.Torso
  149. local cam = game.Workspace.CurrentCamera
  150. local RootPart = Character.HumanoidRootPart
  151. local RootJoint = RootPart.RootJoint
  152. --cam.CameraSubject = Head
  153. local equipped = false
  154. local attack = false
  155. local Anim = 'Idle'
  156. local idle = 0
  157. local sprint = false
  158. local battlestance = false
  159. local attacktype = 1
  160. local state = 'none'
  161. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  162. local velocity = RootPart.Velocity.y
  163. local sine = 0
  164. local change = 1
  165. local on = false
  166. local grabbed = false
  167. local skill1 = false
  168. local skill2 = false
  169. local skill3 = false
  170. local skill4 = false
  171. local cooldown1 = 0
  172. local cooldown2 = 0
  173. local cooldown3 = 0
  174. local cooldown4 = 0
  175. local co1 = 10--how long it will take for skill to cooldown
  176. local co2 = 15
  177. local co3 = 15
  178. local co4 = 25
  179. local inputserv = game:GetService('UserInputService')
  180. local typing = false
  181. local crit = false
  182. local critchance = 2--critical chance percentage
  183. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  184. local critdamageaddmax = 7--maximum amount
  185. local maxstamina = 100--max amount of stamina
  186. local stamina = 0--stamina you start out with
  187. local skill1stam = 10--how much stamina is needed for a skill
  188. local skill2stam = 10
  189. local skill3stam = 20
  190. local skill4stam = 30
  191. local recovermana = 3--how much mana per second
  192. local defensevalue = 1--how much defense this character has
  193. local speedvalue = 1--how much speed this character has
  194. --speed is 16*speedvalue
  195. local mindamage = 5--self explanatory
  196. local maxdamage = 7--self explanatory
  197. local damagevalue = 1--how much damage this character has
  198. --damage is math.random(mindamage,maxdamage)*damagevalue
  199. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  200. --asd
  201. local cn = CFrame.new-- make things easier :)
  202. local mr = math.rad
  203. local angles = CFrame.Angles
  204. local ud = UDim2.new
  205. local c3 = Color3.new
  206. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  207. --asd
  208. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  209. Humanoid.Animator:Destroy()
  210. Character.Animate:Destroy()
  211.  
  212. --Angles For RootJoint And Hips `~`
  213. local ch = Character
  214. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  215. local RHCF = CFrame.fromEulerAnglesXYZ(0,1.6,0)
  216. local LHCF = CFrame.fromEulerAnglesXYZ(0,-1.6,0)
  217. --Save Shoulders/Hips
  218. RSH, LSH = nil, nil
  219. --Shoulders
  220. RW = Instance.new("Weld")
  221. LW = Instance.new("Weld")
  222. --Hips
  223. RH = ch.Torso["Right Hip"]
  224. LH = ch.Torso["Left Hip"]
  225. --
  226. Player = Player
  227. ch = Character
  228. RSH = ch.Torso["Right Shoulder"]
  229. LSH = ch.Torso["Left Shoulder"]
  230. --
  231. RSH.Parent = nil
  232. LSH.Parent = nil
  233. --
  234. RW.Name = "RW"
  235. RW.Part0 = ch.Torso
  236. RW.C0 = cn(1.5, 0.5, 0)
  237. RW.C1 = cn(0, 0.5, 0)
  238. RW.Part1 = ch["Right Arm"]
  239. RW.Parent = ch.Torso
  240. --
  241. LW.Name = "LW"
  242. LW.Part0 = ch.Torso
  243. LW.C0 = cn(-1.5, 0.5, 0)
  244. LW.C1 = cn(0, 0.5, 0)
  245. LW.Part1 = ch["Left Arm"]
  246. LW.Parent = ch.Torso
  247.  
  248. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  249. function makeframe(par, trans, pos, size, color)
  250. local frame = Instance.new('Frame', par)
  251. frame.BackgroundTransparency = trans
  252. frame.BorderSizePixel = 0
  253. frame.Position = pos
  254. frame.Size = size
  255. frame.BackgroundColor3 = color
  256. return frame
  257. end
  258. function makelabel(par, text)
  259. local label = Instance.new('TextLabel', par)
  260. label.BackgroundTransparency = 1
  261. label.Size = ud(1, 0, 1, 0)
  262. label.Position = ud(0, 0, 0, 0)
  263. label.TextColor3 = c3(255, 255, 255)
  264. label.TextStrokeTransparency = 0
  265. label.FontSize = Enum.FontSize.Size32
  266. label.Font = Enum.Font.SourceSansBold
  267. label.BorderSizePixel = 0
  268. label.TextScaled = true
  269. label.Text = text
  270. end
  271. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  272. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  273. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  274. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  275. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  276. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  277. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  278. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  279. text1 = makelabel(framesk1, '[3] Skill3')
  280. text2 = makelabel(framesk2, '[4] Skill4')
  281. text3 = makelabel(framesk3, "[2] Skill2")
  282. text4 = makelabel(framesk4, '[1] Rush Charge')
  283. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  284. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  285. staminatext = makelabel(staminabar, 'Mana')
  286. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  287. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  288. healthtext = makelabel(healthbar, 'Health')
  289.  
  290. local stats = Instance.new('Folder', Character)
  291. stats.Name = 'Stats'
  292. local block = Instance.new('BoolValue', stats)
  293. block.Name = 'Block'
  294. block.Value = false
  295. local stun = Instance.new('BoolValue', stats)
  296. stun.Name = 'Stun'
  297. stun.Value = false
  298. local defense = Instance.new('NumberValue', stats)
  299. defense.Name = 'Defence'
  300. defense.Value = defensevalue
  301. local speed = Instance.new('NumberValue', stats)
  302. speed.Name = 'Speed'
  303. speed.Value = speedvalue
  304. local damagea = Instance.new('NumberValue', stats)
  305. damagea.Name = 'Damage'
  306. damagea.Value = damagevalue
  307.  
  308. function atktype(s, e)
  309. coroutine.resume(coroutine.create(function()
  310. attacktype = e
  311. wait(1.5)
  312. attacktype = s
  313. end))
  314. end
  315.  
  316. function turncrit()
  317. coroutine.resume(coroutine.create(function()
  318. print'CRITICAL!'
  319. crit = true
  320. wait(.25)
  321. crit = false
  322. end))
  323. end
  324.  
  325. function subtractstamina(k)
  326. if stamina >= k then
  327. stamina = stamina - k
  328. end
  329. end
  330.  
  331. function clerp(a, b, t)
  332. return a:lerp(b, t)
  333. end
  334.  
  335. function randomizer(percent)
  336. local randomized = math.random(0, 100)
  337. if randomized <= percent then
  338. return true
  339. elseif randomized >= percent then
  340. return false
  341. end
  342. end
  343.  
  344. local RbxUtility = LoadLibrary("RbxUtility")
  345. local Create = RbxUtility.Create
  346.  
  347. function RemoveOutlines(part)
  348. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  349. end
  350.  
  351. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  352. local Part = Create("Part"){
  353. formFactor = FormFactor,
  354. Parent = Parent,
  355. Reflectance = Reflectance,
  356. Transparency = Transparency,
  357. CanCollide = false,
  358. Locked = true,
  359. BrickColor = BrickColor.new(tostring(BColor)),
  360. Name = Name,
  361. Size = Size,
  362. Material = Material,
  363. }
  364. RemoveOutlines(Part)
  365. return Part
  366. end
  367.  
  368. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  369. local Msh = Create(Mesh){
  370. Parent = Part,
  371. Offset = OffSet,
  372. Scale = Scale,
  373. }
  374. if Mesh == "SpecialMesh" then
  375. Msh.MeshType = MeshType
  376. Msh.MeshId = MeshId
  377. end
  378. return Msh
  379. end
  380.  
  381. function CreateWeld(Parent, Part0, Part1, C0, C1)
  382. local Weld = Create("Weld"){
  383. Parent = Parent,
  384. Part0 = Part0,
  385. Part1 = Part1,
  386. C0 = C0,
  387. C1 = C1,
  388. }
  389. return Weld
  390. end
  391.  
  392. function rayCast(pos, dir, maxl, ignore)
  393. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  394. end
  395. --Effects
  396. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  397. local p = Instance.new('Part', par or workspace)
  398. p.CFrame = pos1
  399. p.Anchored = true
  400. p.Material = 'SmoothPlastic'
  401. p.CanCollide = false
  402. p.TopSurface = 0
  403. p.Size = Vector3.new(1, 1, 1)
  404. p.BottomSurface = 0
  405. p.Transparency = trans
  406. p.FormFactor = 'Custom'
  407. RemoveOutlines(p)
  408. local mesh = Instance.new('SpecialMesh', p)
  409. mesh.Scale = size
  410. if id ~= nil and type == nil then
  411. mesh.MeshId = 'rbxassetid://'..id
  412. elseif id == nil and type ~= nil then
  413. mesh.MeshType = type
  414. elseif id == nil and type == nil then
  415. mesh.MeshType = 'Brick'
  416. end
  417. coroutine.wrap(function()
  418. for i = 0, delay1, .1 do
  419. wait(1 / 60)
  420. p.CFrame = p.CFrame
  421. mesh.Scale = mesh.Scale + howmuch
  422. p.Transparency = p.Transparency + trans1
  423. end
  424. p:Destroy()
  425. end)()
  426. return p
  427. end
  428. function clangy(cframe)
  429. wait(1 / 60)
  430. local clang = {}
  431. local dis = 0
  432. local part = Instance.new('Part', nil)
  433. part.CFrame = cframe
  434. part.Anchored = true
  435. part.CanCollide = false
  436. part.BrickColor = BrickColor.new('New Yeller')
  437. part.FormFactor = 'Custom'
  438. part.Name = 'clanger'
  439. part.Size = Vector3.new(.2, .2, .2)
  440. part.TopSurface = 10
  441. part.BottomSurface = 10
  442. part.RightSurface = 10
  443. part.LeftSurface = 10
  444. part.BackSurface = 10
  445. part.FrontSurface = 10
  446. --part.Material='Neon'
  447. part:BreakJoints()
  448. local mesh = Instance.new('BlockMesh', part)
  449. coroutine.wrap(function()
  450. for i = 1, 7 do
  451. wait(1 / 60)
  452. dis = dis + .2
  453. local partc = part:clone()
  454. partc.Parent = workspace
  455. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  456. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  457. table.insert(clang, partc)
  458. end
  459. for i, v in pairs(clang) do
  460. coroutine.wrap(function()
  461. for i = 1, 10 do
  462. wait(.01)
  463. v.Transparency = v.Transparency + .1
  464. end
  465. v:destroy()
  466. end)()
  467. end
  468. end)()
  469. end
  470. --damage effects
  471. function circle(color, pos1)
  472. local p = Instance.new('Part', m)
  473. p.BrickColor = BrickColor.new(color)
  474. p.CFrame = pos1
  475. p.Anchored = true
  476. p.Material = 'Plastic'
  477. p.CanCollide = false
  478. p.TopSurface = 0
  479. p.Size = Vector3.new(1, 1, 1)
  480. p.BottomSurface = 0
  481. p.Transparency = 0.35
  482. p.FormFactor = 'Custom'
  483. local mesh = Instance.new('CylinderMesh', p)
  484. mesh.Scale = Vector3.new(0, 0, 0)
  485. coroutine.wrap(function()
  486. for i = 0, 5, .1 do
  487. wait(1 / 60)
  488. p.CFrame = p.CFrame
  489. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  490. p.Transparency = p.Transparency + .025
  491. end
  492. p:Destroy()
  493. end)()
  494. end
  495. function firespaz1(color, pos1)
  496. local p = Instance.new('Part', m)
  497. p.BrickColor = BrickColor.new(color)
  498. p.CFrame = pos1
  499. p.Anchored = true
  500. p.Material = 'Plastic'
  501. p.CanCollide = false
  502. p.TopSurface = 0
  503. p.Size = Vector3.new(1, 1, 1)
  504. p.BottomSurface = 0
  505. p.Transparency = 0.5
  506. p.FormFactor = 'Custom'
  507. local mesh = Instance.new('BlockMesh', p)
  508. mesh.Scale = Vector3.new(1, 1, 1)
  509. coroutine.wrap(function()
  510. for i = 0, 15, .1 do
  511. wait(1 / 30)
  512. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  513. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  514. p.Transparency = p.Transparency + .025
  515. end
  516. p:Destroy()
  517. end)()
  518. end
  519.  
  520. function pickrandom(tablesa)
  521. local randomized = tablesa[math.random(1, #tablesa)]
  522. return randomized
  523. end
  524. function sound(id, pitch, volume, par, last)
  525. local s = Instance.new('Sound', par or Torso)
  526. s.SoundId = 'rbxassetid://'..id
  527. s.Pitch = pitch or 1
  528. s.Volume = volume or 1
  529. wait()
  530. s:play()
  531. game.Debris:AddItem(s, last or 120)
  532. end
  533. function clangy(cframe)
  534. wait(1 / 60)
  535. local clang = {}
  536. local dis = 0
  537. local part = Instance.new('Part', nil)
  538. part.CFrame = cframe
  539. part.Anchored = true
  540. part.CanCollide = false
  541. part.BrickColor = BrickColor.new('New Yeller')
  542. part.FormFactor = 'Custom'
  543. part.Name = 'clanger'
  544. part.Size = Vector3.new(.2, .2, .2)
  545. part.TopSurface = 10
  546. part.BottomSurface = 10
  547. part.RightSurface = 10
  548. part.LeftSurface = 10
  549. part.BackSurface = 10
  550. part.FrontSurface = 10
  551. --part.Material='Neon'
  552. part:BreakJoints()
  553. local mesh = Instance.new('BlockMesh', part)
  554. coroutine.wrap(function()
  555. for i = 1, 7 do
  556. wait(1 / 60)
  557. dis = dis + .2
  558. local partc = part:clone()
  559. partc.Parent = workspace
  560. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  561. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  562. table.insert(clang, partc)
  563. end
  564. for i, v in pairs(clang) do
  565. coroutine.wrap(function()
  566. for i = 1, 10 do
  567. wait(.01)
  568. v.Transparency = v.Transparency + .1
  569. end
  570. v:destroy()
  571. end)()
  572. end
  573. end)()
  574. end
  575. --damage effects
  576. --Effects
  577. so = function(id, par, vol, pit)
  578. coroutine.resume(coroutine.create(function()
  579. local sou = Instance.new("Sound", par or workspace)
  580. sou.Volume = vol
  581. sou.Pitch = pit or 1
  582. sou.SoundId = id
  583. wait()
  584. sou:play()
  585. game:GetService("Debris"):AddItem(sou, 6)
  586. end))
  587. end
  588.  
  589. local function getclosest(obj, distance)
  590. local last, lastx = distance + 1
  591. for i, v in pairs(workspace:GetChildren()) do
  592. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  593. local t = v.Torso
  594. local dist = (t.Position - obj.Position).magnitude
  595. if dist <= distance then
  596. if dist < last then
  597. last = dist
  598. lastx = v
  599. end
  600. end
  601. end
  602. end
  603. return lastx
  604. end
  605.  
  606. function makegui(cframe, text)
  607. local a = math.random(-10, 10) / 100
  608. local c = Instance.new("Part")
  609. c.Transparency = 1
  610. Instance.new("BodyGyro").Parent = c
  611. c.Parent = m
  612. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  613. local f = Instance.new("BodyPosition")
  614. f.P = 2000
  615. f.D = 100
  616. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  617. f.position = c.Position + Vector3.new(0, 3, 0)
  618. f.Parent = c
  619. game:GetService("Debris"):AddItem(c, .5 + 6)
  620. c.CanCollide = false
  621. m.Parent = workspace
  622. c.CanCollide = false
  623. local bg = Instance.new('BillboardGui', m)
  624. bg.Adornee = c
  625. bg.Size = UDim2.new(1, 0, 1, 0)
  626. bg.StudsOffset = Vector3.new(0, 0, 0)
  627. bg.AlwaysOnTop = false
  628. local tl = Instance.new('TextLabel', bg)
  629. tl.BackgroundTransparency = 1
  630. tl.Size = UDim2.new(1, 0, 1, 0)
  631. tl.Text = text
  632. tl.Font = 'SourceSansBold'
  633. tl.FontSize = 'Size42'
  634. if crit == true then
  635. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  636. else
  637. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  638. end
  639. tl.TextStrokeTransparency = 0
  640. tl.TextScaled = true
  641. tl.TextWrapped = true
  642. coroutine.wrap(function()
  643. wait(2)
  644. for i = 1, 10 do
  645. wait()
  646. tl.TextTransparency = tl.TextTransparency + .1
  647. end
  648. end)()
  649. end
  650.  
  651. function tag(hum, Player)
  652. local creator = Instance.new('ObjectValue', hum)
  653. creator.Value = Player
  654. creator.Name = 'creator'
  655. end
  656. function untag(hum)
  657. if hum ~= nil then
  658. local tag = hum:findFirstChild("creator")
  659. if tag ~= nil then
  660. tag.Parent = nil
  661. end
  662. end
  663. end
  664.  
  665. function tagPlayer(h)
  666. coroutine.wrap(function()
  667. tag(h, Player)
  668. wait(1)
  669. untag(h)
  670. end)()
  671. end
  672. function damage(hit, mind, maxd, knock, type, prop)
  673. --[[
  674. to apply it to a Player directly, make the first arg go to the Players Torso
  675. 1 - normal type(damage and knockback)
  676. 2 - drain type(damage no knockback)
  677. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  678. 4 - heal(heals target)
  679. 5 - subtracts enemies defense
  680. 6 - subtracts enemies speed
  681. 7 -
  682. ]]
  683. if hit.Name:lower() == 'Hitbox' then
  684. local pos = CFrame.new(0, 1, -1)
  685. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  686. coroutine.wrap(function()
  687. for i = 1, 4 do
  688. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  689. end
  690. end)()
  691. end
  692. if hit.Parent == nil then
  693. return
  694. end
  695. local h = hit.Parent:FindFirstChild("Humanoid")
  696. for i, v in pairs(hit.Parent:children()) do
  697. if v:IsA("Humanoid") then
  698. h = v
  699. end
  700. end
  701. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  702. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  703. end
  704. if hit.Parent:IsA('Hat') then
  705. hit = hit.Parent.Parent:findFirstChild('Head')
  706. end
  707. local D = math.random(mind, maxd) * damagea.Value
  708. if h.Parent:FindFirstChild('Stats') then
  709. D = D / h.Parent:FindFirstChild('Stats').Defence.Value
  710. elseif not h.Parent:FindFirstChild('Stats') then
  711. D = D
  712. end
  713. if h then
  714. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
  715. end
  716. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  717. if type == 1 then
  718. tagPlayer(h)
  719. local asd = randomizer(critchance)
  720. if asd == true then
  721. turncrit()
  722. end
  723. if crit == false then
  724. h.Health = h.Health - D
  725. else
  726. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  727. end
  728. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  729. local vp = Instance.new('BodyVelocity')
  730. vp.P = 500
  731. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  732. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  733. if knock > 0 then
  734. vp.Parent = hit.Parent.Torso
  735. end
  736. game:GetService("Debris"):AddItem(vp, .5)
  737. elseif type == 2 then
  738. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  739. local asd = randomizer(critchance)
  740. if asd == true then
  741. turncrit()
  742. end
  743. if crit == false then
  744. h.Health = h.Health - D
  745. else
  746. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  747. end
  748. tagPlayer(h)
  749. elseif type == 3 then
  750. tagPlayer(h)
  751. local asd = randomizer(critchance)
  752. if asd == true then
  753. turncrit()
  754. end
  755. if crit == false then
  756. h.Health = h.Health - D
  757. else
  758. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  759. end
  760. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  761. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  762. for i = 1, 10 do
  763. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  764. end
  765. elseif type == 4 then
  766. h.Health = h.Health + D
  767. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  768. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  769. end
  770. end
  771. end
  772.  
  773. function subtrackstamina(k)
  774. if stamina >= k then
  775. stamina = stamina - k
  776. end
  777. end
  778.  
  779. Handle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,1,"Pastel light blue","Handle",Vector3.new(0.549599648, 1, 1.01160002))
  780. 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))
  781. Hitbox=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,1,"Pastel light blue","Hitbox",Vector3.new(4.54959965, 0.600000024, 6.41160011))
  782. 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))
  783. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 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.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))
  785. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  786. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 1.16819978, 0.210000008))
  787. 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))
  788. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  789. 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))
  790. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  791. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  792. 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))
  793. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  794. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  795. 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))
  796. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  797. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  798. 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))
  799. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  800. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 1.31219983))
  801. 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))
  802. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  803. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  804. 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))
  805. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  806. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.437400103, 0.200000003))
  807. 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))
  808. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  809. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599989))
  810. 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))
  811. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  812. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.729000032, 0.200000003))
  813. 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))
  814. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  815. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  816. 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))
  817. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  818. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  819. 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))
  820. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  821. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 2.04120016, 0.200000003))
  822. 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))
  823. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  824. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.02060008))
  825. 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))
  826. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  827. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.04120016, 0.437399924))
  828. 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))
  829. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  830. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.04120016, 0.437399983))
  831. 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))
  832. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  833. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  834. 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))
  835. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  836. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  837. 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))
  838. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  839. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  840. 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))
  841. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  842. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  843. 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))
  844. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  845. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  846. 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))
  847. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  848. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  849. 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))
  850. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  851. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  852. 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))
  853. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  854. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599959))
  855. 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))
  856. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  857. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.291599959))
  858. 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))
  859. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  860. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  861. 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))
  862. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  863. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  864. 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))
  865. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  866. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  867. 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))
  868. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  869. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  870. 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))
  871. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  872. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  873. 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))
  874. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  875. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 1.31219983))
  876. 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))
  877. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  878. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  879. 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))
  880. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  881. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.729000032, 0.200000003))
  882. 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))
  883. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  884. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.728999913, 0.291599989))
  885. 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))
  886. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  887. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.583199918, 0.291599989))
  888. 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))
  889. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  890. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  891. 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))
  892. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  893. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(1.7495997, 4.22819996, 0.291599929))
  894. 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))
  895. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.16639984))
  896. 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))
  897. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  898. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.200000003))
  899. 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))
  900. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  901. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  902. 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))
  903. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  904. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(1.16639984, 0.437400103, 0.200000003))
  905. 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))
  906. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  907. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599929, 0.291599959))
  908. 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))
  909. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  910. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  911. 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))
  912. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  913. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  914. 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))
  915. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  916. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 0.200000003, 0.611599982))
  917. 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))
  918. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  919. 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))
  920. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  921. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  922. 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))
  923. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  924. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.16639984))
  925. 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))
  926. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  927. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599929, 0.291599959))
  928. 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))
  929. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  930. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.583199918, 0.291599989))
  931. 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))
  932. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  933. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  934. 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))
  935. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  936. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  937. 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))
  938. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  939. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(1.7495997, 4.22819996, 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.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))
  941. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.200000003))
  942. 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))
  943. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  944. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  945. 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))
  946. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  947. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.549599648, 1.16819966, 0.200000003))
  948. 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))
  949. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  950. 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))
  951. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  952. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  953. 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))
  954. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  955. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  956. 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))
  957. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  958. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  959. 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))
  960. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  961. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  962. 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))
  963. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  964. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  965. 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))
  966. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  967. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.58319968, 0.200000003, 0.291599929))
  968. 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))
  969. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  970. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.04120016, 0.437399924))
  971. 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))
  972. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  973. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.04120016, 0.437399983))
  974. 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))
  975. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  976. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.47859979, 0.437399924))
  977. 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))
  978. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  979. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 2.04120016, 0.200000003))
  980. 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))
  981. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  982. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  983. 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))
  984. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  985. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  986. 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))
  987. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 0.728999913))
  988. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  989. 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))
  990. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  991. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.18700004, 0.437399924))
  992. 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))
  993. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  994. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  995. 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))
  996. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  997. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.6243999, 0.291599959))
  998. 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))
  999. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1000. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.437399983, 0.291599929))
  1001. 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))
  1002. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  1003. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  1004. 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))
  1005. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1006. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0205996, 0.2915999, 0.200000003))
  1007. 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))
  1008. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  1009. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Ice,0,0,"Pastel light blue","Part",Vector3.new(0.200000003, 0.291599959, 1.02060008))
  1010. 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))
  1011. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  1012. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Metal,0,0,"Medium stone grey","Part",Vector3.new(0.291599959, 2.1869998, 0.583199859))
  1013. 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))
  1014. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1015.  
  1016. function attackone()
  1017. attack = true
  1018. Hitbox.CanCollide = true
  1019. for i = 0,1,0.1 do
  1020. wait()
  1021. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .33)
  1022. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .33)
  1023. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.4) * angles(math.rad(85), math.rad(0), math.rad(-70)), .33)
  1024. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(80), math.rad(0), math.rad(45)), .33)
  1025. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(-20),math.rad(0)),.33)
  1026. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(-20),math.rad(0)),.33)
  1027. end
  1028. RootPart.Velocity = RootPart.CFrame.lookVector* 70
  1029. for i = 0,1,0.13 do
  1030. wait()
  1031. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .5)
  1032. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-60)), .5)
  1033. RW.C0 = clerp(RW.C0, CFrame.new(1.7, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), .5)
  1034. 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)
  1035. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(-30),math.rad(-10)),.5)
  1036. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(-30),math.rad(10)),.5)
  1037. end
  1038. Hitbox.CanCollide = false
  1039. attack = false
  1040. end
  1041.  
  1042. function attacktwo()
  1043. attack = true
  1044. for i = 0,1,0.1 do
  1045. wait()
  1046. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .33)
  1047. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .33)
  1048. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), .33)
  1049. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(20), math.rad(0), math.rad(-10)), .33)
  1050. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(-30),math.rad(0)),.33)
  1051. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(-30),math.rad(0)),.33)
  1052. end
  1053. for i = 0,1,0.12 do
  1054. wait()
  1055. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .35)
  1056. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), .35)
  1057. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), .35)
  1058. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(20), math.rad(0), math.rad(-80)), .35)
  1059. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(30),math.rad(0)),.35)
  1060. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(30),math.rad(0)),.35)
  1061. end
  1062. attack = false
  1063. end
  1064.  
  1065. function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1066. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1067. prt.Anchored = true
  1068. prt.CanCollide=false
  1069. 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)))
  1070. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1071. game:GetService("Debris"):AddItem(prt, 10)
  1072. coroutine.resume(coroutine.create(function(Part, Mesh)
  1073. for i = 0, 1, delay do
  1074. wait(0)
  1075. Part.CFrame = Part.CFrame
  1076. Part.Transparency = i
  1077. Mesh.Scale = Mesh.Scale + Vector3.new(x2, y2, z2)
  1078. end
  1079. Part.Parent = nil
  1080. end), prt, msh)
  1081. end
  1082.  
  1083. function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1084. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1085. prt.Anchored = true
  1086. prt.CFrame = cframe*cn(0,-1,0)
  1087. --prt.Material = "Neon"
  1088. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1089. game:GetService("Debris"):AddItem(prt, 10)
  1090. coroutine.resume(coroutine.create(function(Part, Mesh)
  1091. for i = 0, 1, delay do
  1092. wait(0)
  1093. Part.CFrame = Part.CFrame
  1094. Part.Transparency = i
  1095. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1096. end
  1097. Part.Parent = nil
  1098. end), prt, msh)
  1099. end
  1100.  
  1101. function attackthree()
  1102. attack = true
  1103. for i = 0,1,0.1 do
  1104. wait()
  1105. OrbEffect(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),.5,.5,.5,.5,.5,.5,0.2)
  1106. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .33)
  1107. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .33)
  1108. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), .33)
  1109. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(85), math.rad(0), math.rad(-60)), .33)
  1110. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.33)
  1111. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-5),math.rad(40),math.rad(0)),.33)
  1112. end
  1113. RootPart.Velocity = RootPart.CFrame.lookVector* -70
  1114. for i = 1,3 do
  1115. Shockwave(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),1,1,1,1,1,1,0.05)
  1116. OrbEffect(Hitbox.BrickColor,cn(LeftArm.Position)*CFrame.new(0,1,-1),1,1,1,1,1,1,0.05)
  1117. end
  1118. for i = 0,1,0.13 do
  1119. wait()
  1120. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-4), math.rad(0), math.rad(40)), .33)
  1121. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-5), math.rad(-40)), .33)
  1122. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), .33)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.1) * angles(math.rad(120), math.rad(0), math.rad(30)), .33)
  1124. RH.C0=clerp(RH.C0,cn(1,-1,0)*RHCF*angles(math.rad(-10),math.rad(-40),math.rad(5)),.33)
  1125. LH.C0=clerp(LH.C0,cn(-1,-1,0)*LHCF*angles(math.rad(-10),math.rad(-40),math.rad(-5)),.33)
  1126. end
  1127. attack = false
  1128. end
  1129.  
  1130. mouse.Button1Down:connect(function()
  1131. if attack == false and attacktype == 1 then
  1132. attacktype = 2
  1133. attackone()
  1134. elseif attack == false and attacktype == 2 then
  1135. attacktype = 3
  1136. attacktwo()
  1137. elseif attack == false and attacktype == 3 then
  1138. attacktype = 1
  1139. attackthree()
  1140. end
  1141. end)
  1142.  
  1143. mouse.KeyDown:connect(function(k)
  1144. k = k:lower()
  1145. end)
  1146.  
  1147.  
  1148. inputserv.InputBegan:connect(function(k)
  1149. if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
  1150. elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
  1151. elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
  1152. elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
  1153. end
  1154. end)
  1155.  
  1156. inputserv.InputBegan:connect(function(k)
  1157. if k.KeyCode == Enum.KeyCode.Slash then
  1158. local fin = nil
  1159. typing = true
  1160. fin = inputserv.InputBegan:connect(function(k)
  1161. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  1162. typing = false
  1163. fin:disconnect()
  1164. end
  1165. end)
  1166. end
  1167. end)
  1168.  
  1169. function updateskills()
  1170. if cooldown1 <= co1 then
  1171. cooldown1 = cooldown1 + 1 / 30
  1172. end
  1173. if cooldown2 <= co2 then
  1174. cooldown2 = cooldown2 + 1 / 30
  1175. end
  1176. if cooldown3 <= co3 then
  1177. cooldown3 = cooldown3 + 1 / 30
  1178. end
  1179. if cooldown4 <= co4 then
  1180. cooldown4 = cooldown4 + 1 / 30
  1181. end
  1182. if stamina <= maxstamina then
  1183. stamina = stamina + recovermana / 30
  1184. end
  1185. end
  1186.  
  1187. game:GetService'RunService'.Heartbeat:connect(function()
  1188. updateskills()
  1189. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1190. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
  1191. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1192. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1193. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1194. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1195. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1196. velocity = RootPart.Velocity.y
  1197. sine = sine + change
  1198. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1199. Character.Humanoid.WalkSpeed = 16 * speed.Value
  1200. if equipped == true or equipped == false then
  1201. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  1202. Anim = "Jump"
  1203. if attack == false then
  1204. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1205. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1206. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(10)), .3)
  1207. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), .3)
  1208. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.3) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(-20)), .3)
  1209. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  1210. end
  1211. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  1212. Anim = "Fall"
  1213. if attack == false then
  1214. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1215. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1216. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(20)), .3)
  1217. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  1218. RH.C0 = clerp(RH.C0, CFrame.new(1, -.8, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1219. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1220. end
  1221. elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
  1222. Anim = "Idle"
  1223. if attack == false then
  1224. change = 1
  1225. 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)
  1226. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10-2*math.cos(sine/15)), math.rad(0), math.rad(30)), .3)
  1227. 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)
  1228. 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)
  1229. 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)
  1230. 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)
  1231. end
  1232. elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
  1233. Anim = "Walk"
  1234. if attack == false then
  1235. change = 3
  1236. 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)
  1237. 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)
  1238. 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)
  1239. 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)
  1240. 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)
  1241. 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)
  1242. end
  1243. end
  1244. end
  1245. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement