Advertisement
cr8brooo

Untitled

Jan 1st, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.28 KB | None | 0 0
  1. warn'Controls:Q Strong punch|E Normal punch|R Long range|T Up-Dash|X Front dash|'
  2. plr = game.Players.LocalPlayer
  3.  
  4. -----------------------------------
  5. function chatfunc(text)
  6. local chat = coroutine.wrap(function()
  7. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  8. Character:FindFirstChild("TalkingBillBoard"):destroy()
  9. end
  10. local naeeym2 = Instance.new("BillboardGui",Character)
  11. naeeym2.Size = UDim2.new(0,100,0,40)
  12. naeeym2.StudsOffset = Vector3.new(0,3,0)
  13. naeeym2.Adornee = Character.Head
  14. naeeym2.Name = "TalkingBillBoard"
  15. local tecks2 = Instance.new("TextLabel",naeeym2)
  16. tecks2.BackgroundTransparency = 1
  17. tecks2.BorderSizePixel = 0
  18. tecks2.Text = ""
  19. tecks2.Font = "ArialBold"
  20. tecks2.TextSize = 30
  21. tecks2.TextStrokeTransparency = 0
  22. tecks2.TextColor3 = Color3.new(255,255,0)
  23. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  24. tecks2.Size = UDim2.new(1,0,0.5,0)
  25. local tecks3 = Instance.new("TextLabel",naeeym2)
  26. tecks3.BackgroundTransparency = 1
  27. tecks3.BorderSizePixel = 0
  28. tecks3.Text = ""
  29. tecks3.Font = "ArialBold"
  30. tecks3.TextSize = 30
  31. tecks3.TextStrokeTransparency = 0
  32. tecks3.TextColor3 = Color3.new(255,255,0)
  33. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  34. tecks3.Size = UDim2.new(1,0,0.5,0)
  35. for i = 1,string.len(text),1 do
  36. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=138089340", Character, .6, .8)
  37. tecks2.Text = string.sub(text,1,i)
  38. tecks3.Text = string.sub(text,1,i)
  39. wait(0.01)
  40. end
  41. wait(2)
  42. for i = 1, 50 do
  43. swait()
  44. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  45. tecks2.Rotation = tecks2.Rotation - .8
  46. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  47. tecks2.TextTransparency = tecks2.TextTransparency + .04
  48. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  49. tecks3.Rotation = tecks2.Rotation + .8
  50. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  51. tecks3.TextTransparency = tecks2.TextTransparency + .04
  52. end
  53. naeeym2:Destroy()
  54. end)
  55. chat()
  56. end
  57. function onChatted(msg)
  58. chatfunc(msg)
  59. end
  60.  
  61. -----------------------------------
  62.  
  63. local Create = LoadLibrary("RbxUtility").Create
  64.  
  65. CFuncs = {
  66. ["Part"] = {
  67. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  68. local Part = Create("Part"){
  69. Parent = Parent,
  70. Reflectance = Reflectance,
  71. Transparency = Transparency,
  72. CanCollide = false,
  73. Locked = true,
  74. BrickColor = BrickColor.new(tostring(BColor)),
  75. Name = Name,
  76. Size = Size,
  77. Material = Material,
  78. }
  79. RemoveOutlines(Part)
  80. return Part
  81. end;
  82. };
  83.  
  84. ["Mesh"] = {
  85. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  86. local Msh = Create(Mesh){
  87. Parent = Part,
  88. Offset = OffSet,
  89. Scale = Scale,
  90. }
  91. if Mesh == "SpecialMesh" then
  92. Msh.MeshType = MeshType
  93. Msh.MeshId = MeshId
  94. end
  95. return Msh
  96. end;
  97. };
  98.  
  99. ["Mesh"] = {
  100. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  101. local Msh = Create(Mesh){
  102. Parent = Part,
  103. Offset = OffSet,
  104. Scale = Scale,
  105. }
  106. if Mesh == "SpecialMesh" then
  107. Msh.MeshType = MeshType
  108. Msh.MeshId = MeshId
  109. end
  110. return Msh
  111. end;
  112. };
  113.  
  114. ["Weld"] = {
  115. Create = function(Parent, Part0, Part1, C0, C1)
  116. local Weld = Create("Weld"){
  117. Parent = Parent,
  118. Part0 = Part0,
  119. Part1 = Part1,
  120. C0 = C0,
  121. C1 = C1,
  122. }
  123. return Weld
  124. end;
  125. };
  126.  
  127. ["Sound"] = {
  128. Create = function(id, par, vol, pit)
  129. coroutine.resume(coroutine.create(function()
  130. local S = Create("Sound"){
  131. Volume = vol,
  132. Pitch = pit or 1,
  133. SoundId = id,
  134. Parent = par or workspace,
  135. }
  136. wait()
  137. S:play()
  138. game:GetService("Debris"):AddItem(S, 10)
  139. end))
  140. end;
  141. };
  142.  
  143. ["ParticleEmitter"] = {
  144. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  145. local fp = Create("ParticleEmitter"){
  146. Parent = Parent,
  147. Color = ColorSequence.new(Color1, Color2),
  148. LightEmission = LightEmission,
  149. Size = Size,
  150. Texture = Texture,
  151. Transparency = Transparency,
  152. ZOffset = ZOffset,
  153. Acceleration = Accel,
  154. Drag = Drag,
  155. LockedToPart = LockedToPart,
  156. VelocityInheritance = VelocityInheritance,
  157. EmissionDirection = EmissionDirection,
  158. Enabled = Enabled,
  159. Lifetime = LifeTime,
  160. Rate = Rate,
  161. Rotation = Rotation,
  162. RotSpeed = RotSpeed,
  163. Speed = Speed,
  164. VelocitySpread = VelocitySpread,
  165. }
  166. return fp
  167. end;
  168. };
  169.  
  170. CreateTemplate = {
  171.  
  172. };
  173. }
  174.  
  175.  
  176.  
  177. New = function(Object, Parent, Name, Data)
  178. local Object = Instance.new(Object)
  179. for Index, Value in pairs(Data or {}) do
  180. Object[Index] = Value
  181. end
  182. Object.Parent = Parent
  183. Object.Name = Name
  184. return Object
  185. end
  186. local m = Instance.new("Model",char)
  187.  
  188. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  189. local p = Instance.new("Part")
  190. p.Parent = parent
  191. p.Size = Vector3.new(1,1,1)
  192. p.Transparency = transparency
  193. p.Reflectance = reflectance
  194. p.CanCollide = false
  195. p.Locked = true
  196. p.BrickColor = brickcolor
  197. p.Material = material
  198. return p
  199. end
  200.  
  201. function CreateMesh(parent,meshtype,x1,y1,z1)
  202. local mesh = Instance.new("SpecialMesh",parent)
  203. mesh.MeshType = meshtype
  204. mesh.Scale = Vector3.new(x1,y1,z1)
  205. return mesh
  206. end
  207.  
  208. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  209. local mesh = Instance.new("SpecialMesh",parent)
  210. mesh.MeshType = "FileMesh"
  211. mesh.MeshId = meshid
  212. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  213. mesh.Scale = Vector3.new(x1,y1,z1)
  214. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  215. return mesh
  216. end
  217.  
  218. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  219. local weld = Instance.new("Weld")
  220. weld.Parent = parent
  221. weld.Part0 = part0
  222. weld.Part1 = part1
  223. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  224. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  225. return weld
  226. end
  227.  
  228.  
  229. function ApplyTrig(Num,Func)
  230. local Min,Max = Func(0),Func(1)
  231. local i = Func(Num)
  232. return (i-Min)/(Max-Min)
  233. --[[if Func == "sin" then
  234. return (math.sin((1-Num)*math.pi)+1)/2
  235. elseif Func == "cos" then
  236. return (math.cos((1-Num)*math.pi)+1)/2
  237. end]]
  238. end
  239.  
  240. local acos = math.acos
  241. local sqrt = math.sqrt
  242. local Vec3 = Vector3.new
  243.  
  244. local function toAxisAngle(CFr)
  245. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  246. local Angle = math.acos((R00+R11+R22-1)/2)
  247. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  248. A = A == 0 and 0.00001 or A
  249. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  250. B = B == 0 and 0.00001 or B
  251. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  252. C = C == 0 and 0.00001 or C
  253. local x = (R21-R12)/sqrt(A)
  254. local y = (R02-R20)/sqrt(B)
  255. local z = (R10-R01)/sqrt(C)
  256. return Vec3(x,y,z),Angle
  257. end
  258.  
  259. local fromAxisAngle = CFrame.fromAxisAngle
  260.  
  261. function LerpCFrame(CFrame1,CFrame2,Num)
  262. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  263. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  264. end
  265.  
  266.  
  267.  
  268.  
  269.  
  270. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  271. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  272. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  273. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  274.  
  275. Player=game:GetService("Players").LocalPlayer
  276. Character=Player.Character
  277. PlayerGui=Player.PlayerGui
  278. Backpack=Player.Backpack
  279. Torso=Character.Torso
  280. Head=Character.Head
  281. Humanoid=Character.Humanoid
  282. m=Instance.new('Model',Character)
  283. LeftArm=Character["Left Arm"]
  284. LeftLeg=Character["Left Leg"]
  285. RightArm=Character["Right Arm"]
  286. RightLeg=Character["Right Leg"]
  287. LS=Torso["Left Shoulder"]
  288. LH=Torso["Left Hip"]
  289. RS=Torso["Right Shoulder"]
  290. RH=Torso["Right Hip"]
  291. Face = Head.face
  292. Neck=Torso.Neck
  293. it=Instance.new
  294. attacktype=1
  295. vt=Vector3.new
  296. cf=CFrame.new
  297. euler=CFrame.fromEulerAnglesXYZ
  298. angles=CFrame.Angles
  299. cloaked=false
  300. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  301. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  302. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  303. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  304. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  305. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  306. RootPart=Character.HumanoidRootPart
  307. RootJoint=RootPart.RootJoint
  308. RootCF=euler(-1.57,0,3.14)
  309. attack = false
  310. attackdebounce = false
  311. deb=false
  312. equipped=true
  313. hand=false
  314. MMouse=nil
  315. combo=0
  316. mana=0
  317. trispeed=.2
  318. attackmode='none'
  319. local idle=0
  320. local Anim="Idle"
  321. local Effects={}
  322. local gun=false
  323. local shoot=false
  324. local sine = 0
  325. local change = 1
  326. player=nil
  327. shirt = Instance.new("Shirt", char)
  328. shirt.Name = "Shirt"
  329. pants = Instance.new("Pants", char)
  330. pants.Name = "Pants"
  331. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=940848256"
  332. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=968126598"
  333. hum.WalkSpeed = 20
  334.  
  335. asd = Instance.new("Sound",char)
  336. asd.SoundId = "http://www.roblox.com/asset/?id = 969947758"
  337. asd.Volume = 3
  338. asd.Looped = true
  339.  
  340.  
  341. Hair7 = Instance.new("Part")
  342. Hair7.Parent = char
  343. Hair7.Name = "Hair"
  344. Hair7.CanCollide = false
  345. Hair7.Locked = true
  346. Hair7.TopSurface = "Smooth"
  347. Hair7.BottomSurface = "Smooth"
  348. Hair7.formFactor = "Symmetric"
  349. Hair7.Material = "Neon"
  350. Hair7.BrickColor = BrickColor.new("Daisy orange")
  351. Hair7.CFrame = char.Torso.CFrame
  352. Hair7.Size = Vector3.new(1, 1, 1)
  353. Hair7.Transparency = 0
  354.  
  355.  
  356. Weld1 = Instance.new("Weld")
  357. Weld1.Parent = char.Head
  358. Weld1.Part0 = char.Head
  359. Weld1.Part1 = Hair7
  360. Weld1.C0 = CFrame.new(0, 1, 0)
  361.  
  362. Mesh = Instance.new("SpecialMesh")
  363. Mesh.Offset = Vector3.new(0,-0.4,0.1)
  364. Mesh.Parent = Hair7
  365. Mesh.Scale = Vector3.new(1.2, 1.2, 1.2)
  366. Mesh.MeshType = "FileMesh"
  367. Mesh.MeshId = "http://www.roblox.com/asset/?id=19326912"
  368. Mesh.TextureId = ""
  369.  
  370.  
  371. local txt = Instance.new("BillboardGui", char)
  372. CV="Lime green"
  373. txt.Adornee = char .Head
  374. txt.Name = "_status"
  375. txt.Size = UDim2.new(2, 0, 1.2, 0)
  376. txt.StudsOffset = Vector3.new(-9, 8, 0)
  377. local text = Instance.new("TextLabel", txt)
  378. text.Size = UDim2.new(10, 0, 7, 0)
  379. text.FontSize = "Size24"
  380. text.TextScaled = true
  381. text.TextTransparency = 0
  382. text.BackgroundTransparency = 1
  383. text.TextTransparency = 0
  384. text.TextStrokeTransparency = 0
  385. text.Font = "Bodoni"
  386. text.TextStrokeColor3 = Color3.new(0,0,0)
  387. text.TextColor3 = Color3.fromRGB(255,255,0)
  388. text.Text = " "
  389. v=Instance.new("Part")
  390. v.Name = "ColorBrick"
  391. v.Parent= plr.Character
  392. v.FormFactor="Symmetric"
  393. v.Anchored=true
  394. v.CanCollide=false
  395. v.BottomSurface="Smooth"
  396. v.TopSurface="Smooth"
  397. v.Size=Vector3.new(10,5,3)
  398. v.Transparency=0
  399. v.CFrame=char.Torso.CFrame
  400. v.BrickColor=BrickColor.new("Lime green")
  401. v.Transparency=1
  402. v.Shape="Block"
  403.  
  404. mouse=Player:GetMouse()
  405. --save shoulders
  406. RSH, LSH=nil, nil
  407. --welds
  408. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  409. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  410. LH=Torso["Left Hip"]
  411. RH=Torso["Right Hip"]
  412. TorsoColor=Torso.BrickColor
  413. function NoOutline(Part)
  414. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  415. end
  416. player=Player
  417. ch=Character
  418. RSH=ch.Torso["Right Shoulder"]
  419. LSH=ch.Torso["Left Shoulder"]
  420. --
  421. RSH.Parent=nil
  422. LSH.Parent=nil
  423. --
  424. RW.Name="Right Shoulder"
  425. RW.Part0=ch.Torso
  426. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  427. RW.C1=cf(0, 0.5, 0)
  428. RW.Part1=ch["Right Arm"]
  429. RW.Parent=ch.Torso
  430. --
  431. LW.Name="Left Shoulder"
  432. LW.Part0=ch.Torso
  433. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  434. LW.C1=cf(0, 0.5, 0)
  435. LW.Part1=ch["Left Arm"]
  436. LW.Parent=ch.Torso
  437.  
  438. local Stats=Instance.new("BoolValue")
  439. Stats.Name="Stats"
  440. Stats.Parent=Character
  441. local Atk=Instance.new("NumberValue")
  442. Atk.Name="Damage"
  443. Atk.Parent=Stats
  444. Atk.Value=1
  445. local Def=Instance.new("NumberValue")
  446. Def.Name="Defense"
  447. Def.Parent=Stats
  448. Def.Value=1
  449. local Speed=Instance.new("NumberValue")
  450. Speed.Name="Speed"
  451. Speed.Parent=Stats
  452. Speed.Value=1
  453. local Mvmt=Instance.new("NumberValue")
  454. Mvmt.Name="Movement"
  455. Mvmt.Parent=Stats
  456. Mvmt.Value=1
  457.  
  458. local donum=0
  459.  
  460.  
  461. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  462. local fp=it("Part")
  463. fp.formFactor=formfactor
  464. fp.Parent=parent
  465. fp.Reflectance=reflectance
  466. fp.Transparency=transparency
  467. fp.CanCollide=false
  468. fp.Locked=true
  469. fp.BrickColor=brickcolor
  470. fp.Name=name
  471. fp.Size=size
  472. fp.Position=Torso.Position
  473. NoOutline(fp)
  474. fp.Material="SmoothPlastic"
  475. fp:BreakJoints()
  476. return fp
  477. end
  478.  
  479. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  480. local mesh=it(Mesh)
  481. mesh.Parent=part
  482. if Mesh=="SpecialMesh" then
  483. mesh.MeshType=meshtype
  484. if meshid~="nil" then
  485. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  486. end
  487. end
  488. mesh.Offset=offset
  489. mesh.Scale=scale
  490. return mesh
  491. end
  492.  
  493. function weld(parent,part0,part1,c0)
  494. local weld=it("Weld")
  495. weld.Parent=parent
  496. weld.Part0=part0
  497. weld.Part1=part1
  498. weld.C0=c0
  499. return weld
  500. end
  501.  
  502. local Color1=Torso.BrickColor
  503.  
  504. local bodvel=Instance.new("BodyVelocity")
  505. local bg=Instance.new("BodyGyro")
  506.  
  507. function swait(num)
  508. if num==0 or num==nil then
  509. game:service'RunService'.Stepped:wait(0)
  510. else
  511. for i=0,num do
  512. game:service'RunService'.Stepped:wait(0)
  513. end
  514. end
  515. end
  516.  
  517.  
  518. so = function(id,par,vol,pit)
  519. coroutine.resume(coroutine.create(function()
  520. local sou = Instance.new("Sound",par or workspace)
  521. sou.Volume=vol
  522. sou.Pitch=pit or 1
  523. sou.SoundId=id
  524. swait()
  525. sou:play()
  526. game:GetService("Debris"):AddItem(sou,6)
  527. end))
  528. end
  529.  
  530. function clerp(a,b,t)
  531. local qa = {QuaternionFromCFrame(a)}
  532. local qb = {QuaternionFromCFrame(b)}
  533. local ax, ay, az = a.x, a.y, a.z
  534. local bx, by, bz = b.x, b.y, b.z
  535. local _t = 1-t
  536. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  537. end
  538.  
  539. function QuaternionFromCFrame(cf)
  540. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  541. local trace = m00 + m11 + m22
  542. if trace > 0 then
  543. local s = math.sqrt(1 + trace)
  544. local recip = 0.5/s
  545. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  546. else
  547. local i = 0
  548. if m11 > m00 then
  549. i = 1
  550. end
  551. if m22 > (i == 0 and m00 or m11) then
  552. i = 2
  553. end
  554. if i == 0 then
  555. local s = math.sqrt(m00-m11-m22+1)
  556. local recip = 0.5/s
  557. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  558. elseif i == 1 then
  559. local s = math.sqrt(m11-m22-m00+1)
  560. local recip = 0.5/s
  561. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  562. elseif i == 2 then
  563. local s = math.sqrt(m22-m00-m11+1)
  564. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  565. end
  566. end
  567. end
  568.  
  569. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  570. local xs, ys, zs = x + x, y + y, z + z
  571. local wx, wy, wz = w*xs, w*ys, w*zs
  572. local xx = x*xs
  573. local xy = x*ys
  574. local xz = x*zs
  575. local yy = y*ys
  576. local yz = y*zs
  577. local zz = z*zs
  578. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  579. end
  580.  
  581. function QuaternionSlerp(a, b, t)
  582. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  583. local startInterp, finishInterp;
  584. if cosTheta >= 0.0001 then
  585. if (1 - cosTheta) > 0.0001 then
  586. local theta = math.acos(cosTheta)
  587. local invSinTheta = 1/math.sin(theta)
  588. startInterp = math.sin((1-t)*theta)*invSinTheta
  589. finishInterp = math.sin(t*theta)*invSinTheta
  590. else
  591. startInterp = 1-t
  592. finishInterp = t
  593. end
  594. else
  595. if (1+cosTheta) > 0.0001 then
  596. local theta = math.acos(-cosTheta)
  597. local invSinTheta = 1/math.sin(theta)
  598. startInterp = math.sin((t-1)*theta)*invSinTheta
  599. finishInterp = math.sin(t*theta)*invSinTheta
  600. else
  601. startInterp = t-1
  602. finishInterp = t
  603. end
  604. end
  605. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  606. end
  607.  
  608. local function CFrameFromTopBack(at, top, back)
  609. local right = top:Cross(back)
  610. return CFrame.new(at.x, at.y, at.z,
  611. right.x, top.x, back.x,
  612. right.y, top.y, back.y,
  613. right.z, top.z, back.z)
  614. end
  615.  
  616. function Triangle(a, b, c)
  617. local edg1 = (c-a):Dot((b-a).unit)
  618. local edg2 = (a-b):Dot((c-b).unit)
  619. local edg3 = (b-c):Dot((a-c).unit)
  620. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  621. a, b, c = a, b, c
  622. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  623. a, b, c = b, c, a
  624. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  625. a, b, c = c, a, b
  626. else
  627. assert(false, "unreachable")
  628. end
  629.  
  630. local len1 = (c-a):Dot((b-a).unit)
  631. local len2 = (b-a).magnitude - len1
  632. local width = (a + (b-a).unit*len1 - c).magnitude
  633.  
  634. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  635.  
  636. local list = {}
  637.  
  638. if len1 > 0.01 then
  639. local w1 = Instance.new('WedgePart', m)
  640. game:GetService("Debris"):AddItem(w1,5)
  641. w1.Material = "SmoothPlastic"
  642. w1.FormFactor = 'Custom'
  643. w1.BrickColor = BrickColor.new("Really red")
  644. w1.Transparency = 0
  645. w1.Reflectance = 0
  646. w1.Material = "SmoothPlastic"
  647. w1.CanCollide = false
  648. local l1 = Instance.new("PointLight",w1)
  649. l1.Color = Color3.new(170,0,0)
  650. NoOutline(w1)
  651. local sz = Vector3.new(0.2, width, len1)
  652. w1.Size = sz
  653. local sp = Instance.new("SpecialMesh",w1)
  654. sp.MeshType = "Wedge"
  655. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  656. w1:BreakJoints()
  657. w1.Anchored = true
  658. w1.Parent = workspace
  659. w1.Transparency = 0.7
  660. table.insert(Effects,{w1,"Disappear",.01})
  661. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  662. table.insert(list,w1)
  663. end
  664.  
  665. if len2 > 0.01 then
  666. local w2 = Instance.new('WedgePart', m)
  667. game:GetService("Debris"):AddItem(w2,5)
  668. w2.Material = "SmoothPlastic"
  669. w2.FormFactor = 'Custom'
  670. w2.BrickColor = BrickColor.new("Really red")
  671. w2.Transparency = 0
  672. w2.Reflectance = 0
  673. w2.Material = "SmoothPlastic"
  674. w2.CanCollide = false
  675. local l2 = Instance.new("PointLight",w2)
  676. l2.Color = Color3.new(170,0,0)
  677. NoOutline(w2)
  678. local sz = Vector3.new(0.2, width, len2)
  679. w2.Size = sz
  680. local sp = Instance.new("SpecialMesh",w2)
  681. sp.MeshType = "Wedge"
  682. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  683. w2:BreakJoints()
  684. w2.Anchored = true
  685. w2.Parent = workspace
  686. w2.Transparency = 0.7
  687. table.insert(Effects,{w2,"Disappear",.01})
  688. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  689. table.insert(list,w2)
  690. end
  691. return unpack(list)
  692. end
  693.  
  694.  
  695. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  696. if hit.Parent==nil then
  697. return
  698. end
  699. h=hit.Parent:FindFirstChildOfClass("Humanoid")
  700. for _,v in pairs(hit.Parent:children()) do
  701. if v:IsA("Humanoid") then
  702. h=v
  703. end
  704. end
  705. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  706. h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  707. end
  708. if hit.Parent.className=="Hat" then
  709. hit=hit.Parent.Parent:findFirstChild("Head")
  710. end
  711. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  712. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  713. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  714. return
  715. end]]
  716. -- hs(hit,1.2)
  717. c=Instance.new("ObjectValue")
  718. c.Name="creator"
  719. c.Value=game:service("Players").LocalPlayer
  720. c.Parent=h
  721. game:GetService("Debris"):AddItem(c,.5)
  722. Damage=math.random(minim,maxim)
  723. -- h:TakeDamage(Damage)
  724. blocked=false
  725. block=hit.Parent:findFirstChild("Block")
  726. if block~=nil then
  727. print(block.className)
  728. if block.className=="NumberValue" then
  729. if block.Value>0 then
  730. blocked=true
  731. if decreaseblock==nil then
  732. block.Value=block.Value-1
  733. end
  734. end
  735. end
  736. if block.className=="IntValue" then
  737. if block.Value>0 then
  738. blocked=true
  739. if decreaseblock~=nil then
  740. block.Value=block.Value-1
  741. end
  742. end
  743. end
  744. end
  745. if blocked==false then
  746. -- h:TakeDamage(Damage)
  747. h.Health=h.Health-Damage
  748. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  749. else
  750. h.Health=h.Health-(Damage/2)
  751. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  752. end
  753. if Type=="Knockdown" then
  754. hum=hit.Parent.Humanoid
  755. hum.PlatformStand=true
  756. coroutine.resume(coroutine.create(function(HHumanoid)
  757. swait(1)
  758. HHumanoid.PlatformStand=false
  759. end),hum)
  760. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  761. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  762. local bodvol=Instance.new("BodyVelocity")
  763. bodvol.velocity=angle*knockback
  764. bodvol.P=5000
  765. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  766. bodvol.Parent=hit
  767. rl=Instance.new("BodyAngularVelocity")
  768. rl.P=3000
  769. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  770. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  771. rl.Parent=hit
  772. game:GetService("Debris"):AddItem(bodvol,.5)
  773. game:GetService("Debris"):AddItem(rl,.5)
  774. elseif Type=="Normal" then
  775. bp=Instance.new("BodyVelocity")
  776. bp.P=100000
  777. bp.maxForce=Vector3.new(math.huge,0,math.huge)
  778. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  779. if KnockbackType==1 then
  780. bp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  781. elseif KnockbackType==2 then
  782. bp.velocity=Property.CFrame.lookVector*knockback
  783. end
  784. if knockback>0 then
  785. bp.Parent=hit.Parent.Torso
  786.  
  787. end
  788. game:GetService("Debris"):AddItem(bp,.5)
  789. elseif Type=="Up" then
  790. local bodyVelocity=Instance.new("BodyVelocity")
  791. bodyVelocity.velocity=vt(0,60,0)
  792. bodyVelocity.P=5000
  793. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  794. bodyVelocity.Parent=hit
  795. game:GetService("Debris"):AddItem(bodyVelocity,1)
  796. rl=Instance.new("BodyAngularVelocity")
  797. rl.P=3000
  798. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  799. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  800. rl.Parent=hit
  801. game:GetService("Debris"):AddItem(rl,.5)
  802. elseif Type=="Snare" then
  803. bp=Instance.new("BodyPosition")
  804. bp.P=2000
  805. bp.D=100
  806. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  807. bp.position=hit.Parent.Torso.Position
  808. bp.Parent=hit.Parent.Torso
  809. game:GetService("Debris"):AddItem(bp,1)
  810. elseif Type=="Target" then
  811. if Targetting==false then
  812. ZTarget=hit.Parent.Torso
  813. coroutine.resume(coroutine.create(function(Part)
  814. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  815. swait(1)
  816. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  817. end),ZTarget)
  818. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  819. targetgui=Instance.new("BillboardGui")
  820. targetgui.Parent=ZTarget
  821. targetgui.Size=UDim2.new(10,100,10,100)
  822. targ=Instance.new("ImageLabel")
  823. targ.Parent=targetgui
  824. targ.BackgroundTransparency=1
  825. targ.Image="rbxassetid://4834067"
  826. targ.Size=UDim2.new(1,0,1,0)
  827. cam.CameraType="Scriptable"
  828. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  829. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  830. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  831. Targetting=true
  832. RocketTarget=ZTarget
  833. for i=1,Property do
  834. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  835. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  836. swait()
  837. end
  838. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  839. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  840. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  841. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  842. end
  843. Targetting=true
  844. RocketTarget=true
  845. targetgui.Parent=true
  846. cam.CameraType="Custom"
  847. end
  848. end
  849. debounce=Instance.new("BoolValue")
  850. debounce.Name="DebounceHit"
  851. debounce.Parent=hit.Parent
  852. debounce.Value=true
  853. game:GetService("Debris"):AddItem(debounce,Delay)
  854. c=Instance.new("ObjectValue")
  855. c.Name="creator"
  856. c.Value=Player
  857. c.Parent=h
  858. game:GetService("Debris"):AddItem(c,.5)
  859. CRIT=true
  860. hitDeb=true
  861. AttackPos=6
  862. end
  863. end
  864.  
  865. showDamage=function(Char,Dealt,du,Color)
  866. m=Instance.new("Model")
  867. m.Name=tostring(Dealt)
  868. h=Instance.new("Humanoid")
  869. h.Health=0
  870. h.MaxHealth=0
  871. h.Parent=m
  872. c=Instance.new("Part")
  873. c.Transparency=0
  874. c.BrickColor=Color
  875. c.Transparency = 1
  876. c.Name="Head"
  877. c.TopSurface=0
  878. c.BottomSurface=0
  879. c.formFactor="Plate"
  880. c.Size=Vector3.new(1,.4,1)
  881.  
  882. local txt = Instance.new("BillboardGui", c)
  883. txt.Adornee = c
  884. txt.Name = "_status"
  885. txt.Size = UDim2.new(2, 0, 1.2, 0)
  886. txt.StudsOffset = Vector3.new(-9, 8, 0)
  887. local text = Instance.new("TextLabel", txt)
  888. text.Size = UDim2.new(10, 0, 7, 0)
  889. text.FontSize = "Size12"
  890. text.TextScaled = true
  891. text.TextTransparency = 0.5
  892. text.BackgroundTransparency = 1
  893. text.TextTransparency = 0.5
  894. text.TextStrokeTransparency = 0.5
  895. text.Font = "SciFi"
  896. text.TextStrokeColor3 = Color3.new(0,0,0)
  897. v=Instance.new("Part")
  898. v.Name = "ColorBrick"
  899. v.Parent=c
  900. v.FormFactor="Symmetric"
  901. v.Anchored=true
  902. v.CanCollide=false
  903. v.BottomSurface="Smooth"
  904. v.TopSurface="Smooth"
  905. v.Size=Vector3.new(10,5,3)
  906. v.Transparency=1
  907. v.CFrame=c.CFrame
  908. v.BrickColor=BrickColor.random()
  909. v.Transparency=1
  910. text.TextColor3 = t.BrickColor.Color
  911. v.Shape="Block"
  912. text.Text = tostring(Dealt)
  913. ms=Instance.new("CylinderMesh")
  914. ms.Scale=Vector3.new(.8,.8,.8)
  915. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  916. local rndm=math.random(1,#hitsounds)
  917. local r=rndm
  918. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  919. if CRIT==true then
  920. ms.Scale=Vector3.new(1,1.25,1)
  921. end
  922. ms.Parent=c
  923. c.Reflectance=0
  924. Instance.new("BodyGyro").Parent=c
  925. c.Parent=m
  926. if Char:findFirstChild("Head")~=nil then
  927. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  928. elseif Char.Parent:findFirstChild("Head")~=nil then
  929. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  930. end
  931. f=Instance.new("BodyPosition")
  932. f.P=200000
  933. f.D=100
  934. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  935. f.position=c.Position+Vector3.new(0,3,0)
  936. f.Parent=c
  937. game:GetService("Debris"):AddItem(m,.5+du)
  938. c.CanCollide=false
  939. m.Parent=workspace
  940. c.CanCollide=false
  941. end
  942.  
  943. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  944. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  945. end
  946.  
  947. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  948. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  949. prt.Anchored=true
  950. prt.CFrame=cframe
  951. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  952. --http://www.roblox.com/asset/?id=4770560
  953. game:GetService("Debris"):AddItem(prt,2)
  954. CF=prt.CFrame
  955. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  956. for i=0,1,0.2 do
  957. wait()
  958. Part.CFrame=CF*cf(0,0,-0.4)
  959. end
  960. for i=0,1,delay do
  961. wait()
  962. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  963. Mesh.Scale=Mesh.Scale
  964. end
  965. for i=0,1,0.1 do
  966. wait()
  967. Part.Transparency=i
  968. end
  969. Part.Parent=nil
  970. end),prt,msh,CF)
  971. end
  972.  
  973. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  974. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  975. prt.Anchored=true
  976. prt.Material = "Plastic"
  977. prt.CFrame=cframe
  978. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  979. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  980. game:GetService("Debris"):AddItem(prt,5)
  981. coroutine.resume(coroutine.create(function(Part,Mesh)
  982. for i=0,1,delay do
  983. swait()
  984. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  985. Part.Transparency=i
  986. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  987. end
  988. Part.Parent=nil
  989. end),prt,msh)
  990. end
  991.  
  992.  
  993.  
  994.  
  995. function MagicBlockDash(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  996. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.3,0.3,0.3))
  997. prt.Anchored=true
  998. prt.Material = "Neon"
  999. prt.CFrame=cframe
  1000. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1001. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1002. game:GetService("Debris"):AddItem(prt,1)
  1003. coroutine.resume(coroutine.create(function(Part,Mesh)
  1004. for i=0,1,delay do
  1005. swait()
  1006. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1007. Part.Transparency=i
  1008. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1009. end
  1010. Part.Parent=nil
  1011. end),prt,msh)
  1012. end
  1013.  
  1014.  
  1015. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1016. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1017. prt.Anchored=true
  1018. prt.Material = "Neon"
  1019. prt.CFrame=cframe
  1020. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1021. game:GetService("Debris"):AddItem(prt,5)
  1022. coroutine.resume(coroutine.create(function(Part,Mesh)
  1023. local rtype = rottype
  1024. for i=0,1,delay do
  1025. swait()
  1026. if rtype == 1 then
  1027. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1028. elseif rtype == 2 then
  1029. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1030. end
  1031. Part.Transparency=i
  1032. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1033. end
  1034. Part.Parent=nil
  1035. end),prt,msh)
  1036. end
  1037.  
  1038. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1039. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1040. prt.Anchored=true
  1041. prt.CFrame=cframe
  1042. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1043. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1044. game:GetService("Debris"):AddItem(prt,5)
  1045. coroutine.resume(coroutine.create(function(Part,Mesh)
  1046. for i=0,1,delay do
  1047. wait()
  1048. Part.Transparency=i
  1049. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1050. end
  1051. Part.Parent=nil
  1052. end),prt,msh)
  1053. end
  1054.  
  1055. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1056. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1057. prt.Anchored=true
  1058. prt.Material = "Neon"
  1059. prt.CFrame=cframe
  1060. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1061. game:GetService("Debris"):AddItem(prt,5)
  1062. coroutine.resume(coroutine.create(function(Part,Mesh)
  1063. local rtype = rottype
  1064. for i=0,1,delay do
  1065. swait()
  1066. if rtype == 1 then
  1067. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1068. elseif rtype == 2 then
  1069. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1070. end
  1071. Part.Transparency=i
  1072. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1073. end
  1074. Part.Parent=nil
  1075. end),prt,msh)
  1076. end
  1077.  
  1078. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1079. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1080. prt.Anchored=true
  1081. prt.Material = "Neon"
  1082. prt.CFrame=cframe
  1083. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1084. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1085. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1086. game:GetService("Debris"):AddItem(prt,5)
  1087. coroutine.resume(coroutine.create(function(Part,Mesh)
  1088. local rtype = rottype
  1089. for i=0,1,delay do
  1090. swait()
  1091. if rtype == 1 then
  1092. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1093. elseif rtype == 2 then
  1094. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1095. end
  1096. dec.Transparency=i
  1097. dec2.Transparency=i
  1098. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1099. end
  1100. Part.Parent=nil
  1101. end),prt,msh)
  1102. end
  1103.  
  1104. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1105. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1106. prt.Anchored=true
  1107. prt.Material = "Neon"
  1108. prt.CFrame=cframe
  1109. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1110. game:GetService("Debris"):AddItem(prt,5)
  1111. coroutine.resume(coroutine.create(function(Part,Mesh)
  1112. local rtype = rottype
  1113. for i=0,1,delay do
  1114. swait()
  1115. if rtype == 1 then
  1116. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1117. elseif rtype == 2 then
  1118. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1119. end
  1120. prt.Transparency=i
  1121. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1122. end
  1123. Part.Parent=nil
  1124. end),prt,msh)
  1125. end
  1126.  
  1127. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1128. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1129. prt.Anchored=true
  1130. prt.Material = "Neon"
  1131. prt.CFrame=cframe
  1132. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1133. game:GetService("Debris"):AddItem(prt,5)
  1134. coroutine.resume(coroutine.create(function(Part,Mesh)
  1135. local rtype = rottype
  1136. for i=0,1,delay do
  1137. swait()
  1138. if rtype == 1 then
  1139. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1140. elseif rtype == 2 then
  1141. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1142. end
  1143. prt.Transparency=i
  1144. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1145. end
  1146. Part.Parent=nil
  1147. end),prt,msh)
  1148. end
  1149.  
  1150. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1151. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1152. prt.Anchored=true
  1153. prt.Material = "Neon"
  1154. prt.CFrame=cframe
  1155. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1156. game:GetService("Debris"):AddItem(prt,5)
  1157. coroutine.resume(coroutine.create(function(Part,Mesh)
  1158. local rtype = rottype
  1159. for i=0,1,delay do
  1160. swait()
  1161. if rtype == 1 then
  1162. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1163. elseif rtype == 2 then
  1164. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1165. end
  1166. prt.Transparency=i
  1167. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1168. end
  1169. Part.Parent=nil
  1170. end),prt,msh)
  1171. end
  1172.  
  1173. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1174. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1175. prt.Material = "Neon"
  1176. prt.Anchored=true
  1177. prt.CFrame=cframe
  1178. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1179. local wld=weld(prt,prt,Parent,cframe)
  1180. game:GetService("Debris"):AddItem(prt,5)
  1181. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1182. for i=0,1,delay do
  1183. wait()
  1184. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1185. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1186. Part.Transparency=i
  1187. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1188. end
  1189. Part.Parent=nil
  1190. end),prt,msh,wld)
  1191. end
  1192.  
  1193. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1194. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1195. prt.Anchored=false
  1196. prt.CFrame=cframe
  1197. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1198. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1199. game:GetService("Debris"):AddItem(prt,5)
  1200. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1201. for i=0,1,delay do
  1202. wait()
  1203. Weld.C0=euler(i*20,0,0)
  1204. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1205. Part.Transparency=i
  1206. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1207. end
  1208. Part.Parent=nil
  1209. end),prt,msh,wld)
  1210. end
  1211.  
  1212. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1213. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1214. prt.Anchored=true
  1215. prt.CFrame=cframe
  1216. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1217. game:GetService("Debris"):AddItem(prt,2)
  1218. coroutine.resume(coroutine.create(function(Part,Mesh)
  1219. for i=0,1,delay do
  1220. wait()
  1221. Part.CFrame=Part.CFrame
  1222. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1223. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1224. prt2.Anchored=true
  1225. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1226. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1227. game:GetService("Debris"):AddItem(prt2,2)
  1228. coroutine.resume(coroutine.create(function(Part,Mesh)
  1229. for i=0,1,0.1 do
  1230. wait()
  1231. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1232. end
  1233. Part.Parent=nil
  1234. end),prt2,msh2)
  1235. end
  1236. for i=0,1,delay*2 do
  1237. wait()
  1238. Part.CFrame=Part.CFrame
  1239. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1240. end
  1241. Part.Parent=nil
  1242. end),prt,msh)
  1243. end
  1244.  
  1245. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1246. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1247. prt.Anchored=true
  1248. prt.CFrame=cframe
  1249. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1250. game:GetService("Debris"):AddItem(prt,2)
  1251. coroutine.resume(coroutine.create(function(Part,Mesh)
  1252. for i=0,1,delay do
  1253. wait()
  1254. Part.CFrame=Part.CFrame
  1255. Part.Transparency=i
  1256. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1257. end
  1258. Part.Parent=nil
  1259. end),prt,msh)
  1260. end
  1261.  
  1262. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1263. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1264. prt.Anchored=true
  1265. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1266. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1267. game:GetService("Debris"):AddItem(prt,2)
  1268. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1269. CF=Part.CFrame
  1270. Numbb=0
  1271. randnumb=math.random()/10
  1272. rand1=math.random()/10
  1273. for i=0,1,rand1 do
  1274. wait()
  1275. CF=CF*cf(0,math.random()/2,0)
  1276. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1277. Part.CFrame=CF*euler(Numbb,0,0)
  1278. Part.Transparency=i
  1279. Numbb=Numbb+randnumb
  1280. end
  1281. Part.Parent=nil
  1282. end),prt,CF,Numbb,randnumb)
  1283. end
  1284.  
  1285. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1286. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1287. prt.Anchored=true
  1288. prt.CFrame=cframe
  1289. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1290. game:GetService("Debris"):AddItem(prt,5)
  1291. coroutine.resume(coroutine.create(function(Part,Mesh)
  1292. for i=0,1,delay do
  1293. wait()
  1294. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1295. Part.Transparency=i
  1296. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1297. end
  1298. Part.Parent=nil
  1299. end),prt,msh)
  1300. end
  1301.  
  1302. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1303. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1304. prt.Anchored=true
  1305. prt.CFrame=cframe
  1306. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1307. game:GetService("Debris"):AddItem(prt,2)
  1308. coroutine.resume(coroutine.create(function(Part,Mesh)
  1309. for i=0,1,delay do
  1310. wait()
  1311. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1312. Part.Transparency=i
  1313. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1314. end
  1315. Part.Parent=nil
  1316. end),prt,msh)
  1317. end
  1318.  
  1319. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1320. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1321. prt.Anchored=true
  1322. prt.CFrame=cframe*cf(x,y,z)
  1323. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1324. game:GetService("Debris"):AddItem(prt,5)
  1325. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1326. local num=math.random()
  1327. local num2=math.random(-3,2)+math.random()
  1328. local numm=0
  1329. for i=0,1,delay*2 do
  1330. swait()
  1331. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1332. Part.Transparency=i
  1333. numm=numm+0.01
  1334. end
  1335. Part.Parent=nil
  1336. Mesh.Parent=nil
  1337. end),prt,msh,x,y,z)
  1338. end
  1339.  
  1340. function dmgstart(dmg,what)
  1341. hitcon = what.Touched:connect(function(hit)
  1342. local hum = hit.Parent:FindFirstChild("Humanoid")
  1343. if hum and not hum:IsDescendantOf(Character) then
  1344. hum:TakeDamage(dmg)
  1345. end
  1346. end)
  1347. end
  1348.  
  1349. function dmgstop()
  1350. hitcon:disconnect()
  1351. end
  1352.  
  1353. function Cloak()
  1354. Face.Parent=nil
  1355. cloaked=true
  1356. for _,v in pairs(Torso.Parent:children()) do
  1357. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1358. coroutine.resume(coroutine.create(function()
  1359. for i=0,1,0.2 do
  1360. wait()
  1361. v.Transparency=i
  1362. end
  1363. v.Transparency=1
  1364. end))
  1365. end
  1366. if v.className=="Hat" then
  1367. hatp=v.Handle
  1368. coroutine.resume(coroutine.create(function(derp)
  1369. for i=0,1,0.2 do
  1370. wait()
  1371. derp.Transparency=i
  1372. end
  1373. derp.Transparency=1
  1374. end),hatp)
  1375. end
  1376. end
  1377. for _,v in pairs(m:children()) do
  1378. if v.className=="Part" then
  1379. coroutine.resume(coroutine.create(function()
  1380. for i=0,1,0.2 do
  1381. wait()
  1382. v.Transparency=i
  1383. end
  1384. v.Transparency=1
  1385. end))
  1386. end
  1387. end
  1388. end
  1389.  
  1390. function UnCloak()
  1391. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1392. Face.Parent=Head
  1393. cloaked=false
  1394. for _,v in pairs(Torso.Parent:children()) do
  1395. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1396. coroutine.resume(coroutine.create(function()
  1397. for i=0,1,0.1 do
  1398. wait()
  1399. v.Transparency=v.Transparency-0.1
  1400. end
  1401. v.Transparency=0
  1402. end))
  1403. end
  1404. if v.className=="Hat" then
  1405. hatp=v.Handle
  1406. coroutine.resume(coroutine.create(function(derp)
  1407. for i=0,1,0.1 do
  1408. wait()
  1409. derp.Transparency=derp.Transparency-0.1
  1410. end
  1411. derp.Transparency=0
  1412. end),hatp)
  1413. end
  1414. end
  1415. for _,v in pairs(m:children()) do
  1416. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1417. coroutine.resume(coroutine.create(function()
  1418. for i=0,1,0.1 do
  1419. wait()
  1420. v.Transparency=v.Transparency-0.1
  1421. end
  1422. v.Transparency=0
  1423. end))
  1424. v.Transparency=0
  1425. end
  1426. end
  1427. end
  1428.  
  1429. local jumped = false
  1430. function jump()
  1431. attack = true
  1432. jumped = true
  1433. hum.WalkSpeed = 0
  1434. MagicBlock(bc("White"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1435. CFuncs["Sound"].Create("rbxassetid://169445572", root, 0.7, 0.7)
  1436. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1437. for i = 0,15,0.1 do
  1438. swait()
  1439. MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1440. MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1441. RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05)
  1442. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05)
  1443. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1444. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1445. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1446. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1447. lig = Instance.new("PointLight",player.Character.Torso)
  1448. lig.Color=Color3.new(255,0,0)
  1449. lig.Range = 10
  1450. end
  1451. local bv = Instance.new("BodyVelocity")
  1452. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1453. bv.velocity = Vector3.new(0,500,0)
  1454. bv.Parent = root
  1455. game:GetService("Debris"):AddItem(bv, 0.5)
  1456. local rng = Instance.new("Part", char)
  1457. rng.Anchored = true
  1458. rng.BrickColor = BrickColor.new("Neon orange")
  1459. rng.CanCollide = false
  1460. rng.FormFactor = 3
  1461. rng.Name = "Ring"
  1462. rng.Size = Vector3.new(1, 1, 1)
  1463. rng.Transparency = 0
  1464. rng.TopSurface = 0
  1465. rng.BottomSurface = 0
  1466. rng.Position = root.Position
  1467. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1468. local rngm = Instance.new("SpecialMesh", rng)
  1469. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1470. local rng2 = rng:Clone()
  1471. rng2.Parent = char
  1472. local rng2m = rng2.Mesh
  1473. local rng3 = rng:Clone()
  1474. rng3.Parent = char
  1475. rng3.BrickColor = BrickColor.new("Dark stone grey")
  1476. local rng3m = rng3.Mesh
  1477. local rng4 = rng:Clone()
  1478. rng4.Parent = char
  1479. local rng4m = rng4.Mesh
  1480. local rng5 = rng:Clone()
  1481. rng5.Parent = char
  1482. rng5.BrickColor = BrickColor.new("Dark stone grey")
  1483. local rng5m = rng5.Mesh
  1484. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1485. wait()
  1486. local scaler = 10
  1487. local scaler2 = 10
  1488. game:GetService("Debris"):AddItem(bv, 2.4)
  1489. hum.WalkSpeed = 50
  1490. MagicBlock(bc("White"),root.CFrame,15,15,15,10,10,10,0.015)
  1491. for i = 0,10,0.1 do
  1492. swait()
  1493. rng.Transparency = rng.Transparency + 0.01
  1494. rng2.Transparency = rng2.Transparency + 0.01
  1495. rng3.Transparency = rng3.Transparency + 0.01
  1496. rng4.Transparency = rng4.Transparency + 0.01
  1497. rng5.Transparency = rng5.Transparency + 0.01
  1498. scaler = scaler - 0.125
  1499. scaler2 = scaler2 - 0.1
  1500. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1501. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1502. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1503. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1504. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1505. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1506. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1507. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1508. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1509. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1510. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1511. end
  1512. game:GetService("Debris"):AddItem(rng, 0.1)
  1513. game:GetService("Debris"):AddItem(rng2, 0.1)
  1514. game:GetService("Debris"):AddItem(rng3, 0.1)
  1515. game:GetService("Debris"):AddItem(rng4, 0.1)
  1516. game:GetService("Debris"):AddItem(rng5, 0.1)
  1517. hum.WalkSpeed = 16
  1518. attack = false
  1519. jumped = false
  1520. end
  1521.  
  1522. function dash()
  1523. attack = true
  1524. jumped = true
  1525. hum.WalkSpeed = 16
  1526. killbrick = Instance.new("Part",char)
  1527. killbrick.Size = Vector3.new(1,1,1)
  1528. killbrick.Transparency = 1
  1529. killbrick:BreakJoints()
  1530. killbrick.CanCollide = false
  1531. local wel = Instance.new("Weld",killbrick)
  1532. wel.Part0 = killbrick
  1533. wel.Part1 = char["Left Arm"]
  1534. wel.C0 = CFrame.new(0,1,0)
  1535. local bv = Instance.new("BodyVelocity")
  1536. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1537. bv.velocity = root.CFrame.lookVector*150
  1538. bv.Parent = root
  1539. char.Head.face.Texture = "rbxassetid://126198982"
  1540. game:GetService("Debris"):AddItem(bv, 1)
  1541. local rng = Instance.new("Part", char)
  1542. rng.Anchored = true
  1543. rng.BrickColor = BrickColor.new("Neon orange")
  1544. rng.CanCollide = false
  1545. rng.FormFactor = 3
  1546. rng.Name = "Ring"
  1547. rng.Size = Vector3.new(1, 1, 1)
  1548. rng.Transparency = 0
  1549. rng.TopSurface = 0
  1550. rng.BottomSurface = 0
  1551. rng.CFrame = root.CFrame
  1552. local rngm = Instance.new("SpecialMesh", rng)
  1553. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1554. local rng2 = rng:Clone()
  1555. rng2.BrickColor = BrickColor.new("Dark stone grey")
  1556. rng2.Parent = char
  1557. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1558. local rng2m = rng2.Mesh
  1559. local rng3 = rng:Clone()
  1560. rng3.Parent = char
  1561. rng3.BrickColor = BrickColor.new("Dark stone grey")
  1562. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1563. local rng3m = rng3.Mesh
  1564. local rng4 = rng:Clone()
  1565. rng4.Parent = char
  1566. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1567. local rng4m = rng4.Mesh
  1568. local rng5 = rng:Clone()
  1569. rng5.Parent = char
  1570. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1571. local rng5m = rng5.Mesh
  1572. local rng6 = rng:Clone()
  1573. rng6.Material = "Neon"
  1574. rng6.CanCollide = false
  1575. rng6.BrickColor = BrickColor.new("Neon orange")
  1576. rng6.Parent = LeftLeg
  1577. local rng6m = rng6.Mesh
  1578. rng6m.Scale = vt(1,1,1)
  1579. rng6m.MeshType = "Sphere"
  1580. local rng7 = rng:Clone()
  1581. rng7.Material = "Plastic"
  1582. rng7.CanCollide = false
  1583. rng7.BrickColor = BrickColor.new("Bright red")
  1584. rng7.Parent = LeftLeg
  1585. local rng7m = rng7.Mesh
  1586. rng7m.Scale = vt(1,1,1)
  1587. rng7m.MeshType = "Sphere"
  1588. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  1589. CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
  1590. wait()
  1591. local scaler = 10/5
  1592. local scaler2 = 10/5
  1593. local hit = rng6.Touched:connect(function(hit)
  1594. Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1)
  1595. end)
  1596. for i = 0,10,0.1 do
  1597. swait()
  1598. rng.Transparency = rng.Transparency + 0.01
  1599. rng2.Transparency = rng2.Transparency + 0.01
  1600. rng3.Transparency = rng3.Transparency + 0.01
  1601. rng4.Transparency = rng4.Transparency + 0.01
  1602. rng5.Transparency = rng5.Transparency + 0.01
  1603. rng6.Transparency = rng5.Transparency + 0.001
  1604. rng7.Transparency = rng5.Transparency + 0.001
  1605. scaler = scaler - 0.125/5
  1606. scaler2 = scaler2 - 0.1/5
  1607. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1608. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1609. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1610. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1611. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5)
  1612. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  1613. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1614. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1615. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1616. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1617. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1618. rng6.CFrame = rng3.CFrame
  1619. rng7.CFrame = rng3.CFrame
  1620. end
  1621. game:GetService("Debris"):AddItem(rng, 0.1)
  1622. game:GetService("Debris"):AddItem(rng2, 0.1)
  1623. game:GetService("Debris"):AddItem(rng3, 0.1)
  1624. game:GetService("Debris"):AddItem(rng4, 0.1)
  1625. game:GetService("Debris"):AddItem(rng5, 0.1)
  1626. hum.WalkSpeed = 16
  1627. hit:disconnect()
  1628. attack = false
  1629. killbrick:Destroy()
  1630. char.Head.face.Texture = "rbxassetid://29291814"
  1631. jumped = false
  1632. end
  1633.  
  1634.  
  1635.  
  1636. function daash()
  1637. attack = false
  1638. jumped = false
  1639. hum.WalkSpeed = 16
  1640. local bv = Instance.new("BodyVelocity")
  1641. bv.maxForce = Vector3.new(6000,6000,6000)
  1642. bv.velocity = root.CFrame.lookVector*150
  1643. bv.Parent = root
  1644. char.Head.face.Texture = "rbxassetid://126198982"
  1645. game:GetService("Debris"):AddItem(bv, 1)
  1646. local rng = Instance.new("Part", char)
  1647. rng.Anchored = true
  1648. rng.BrickColor = BrickColor.new("White")
  1649. rng.CanCollide = false
  1650. rng.FormFactor = 3
  1651. rng.Name = "Ring"
  1652. rng.Size = Vector3.new(1, 1, 1)
  1653. rng.Transparency = 0
  1654. rng.TopSurface = 0
  1655. rng.BottomSurface = 0
  1656. rng.CFrame = root.CFrame
  1657. local rngm = Instance.new("SpecialMesh", rng)
  1658. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1659. local rng2 = rng:Clone()
  1660. rng2.BrickColor = BrickColor.new("White")
  1661. rng2.Parent = char
  1662. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1663. local rng2m = rng2.Mesh
  1664.  
  1665. local rng5m = rng.Mesh
  1666. CFuncs["Sound"].Create("rbxassetid://262562442", root, 1, 1)
  1667. wait()
  1668. local scaler = 10/5
  1669. local scaler2 = 10/5
  1670. local hit = rng.Touched:connect(function(hit)
  1671. Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1)
  1672. end)
  1673. for i = 0,10,0.1 do
  1674. swait()
  1675. MagicBlockDash(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1676. MagicBlockDash(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1677. rng.Transparency = rng.Transparency + 0.01
  1678. rng2.Transparency = rng2.Transparency + 0.01
  1679.  
  1680.  
  1681. scaler = scaler - 0.125/5
  1682. scaler2 = scaler2 - 0.125/5
  1683. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1, scaler2/1, 0)
  1684.  
  1685.  
  1686. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1687.  
  1688. end
  1689. game:GetService("Debris"):AddItem(rng, 0.1)
  1690. game:GetService("Debris"):AddItem(rng2, 0.1)
  1691. hum.WalkSpeed = 16
  1692. hit:disconnect()
  1693. attack = false
  1694. char.Head.face.Texture = "rbxassetid://29291814"
  1695. jumped = false
  1696. end
  1697.  
  1698.  
  1699.  
  1700. function dashh()
  1701. attack = true
  1702. jumped = true
  1703. hum.WalkSpeed = 16
  1704. local BV = Instance.new("BodyVelocity")
  1705. BV = Instance.new("BodyVelocity", tors)
  1706. BV.maxForce = Vector3.new(0,10000,0)
  1707. BV.P = 1000
  1708. BV.velocity = Vector3.new(0,800,0)
  1709. char.Head.face.Texture = "rbxassetid://126198982"
  1710. game:GetService("Debris"):AddItem(BV, 1)
  1711. local rng = Instance.new("Part", char)
  1712. rng.Anchored = true
  1713. rng.BrickColor = BrickColor.new("Neon orange")
  1714. rng.CanCollide = false
  1715. rng.FormFactor = 3
  1716. rng.Name = "Ring"
  1717. rng.Size = Vector3.new(1, 1, 1)
  1718. rng.Transparency = 0
  1719. rng.TopSurface = 0
  1720. rng.BottomSurface = 0
  1721. rng.CFrame = root.CFrame
  1722. local rngm = Instance.new("SpecialMesh", rng)
  1723. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1724. local rng2 = rng:Clone()
  1725. rng2.BrickColor = BrickColor.new("Dark stone grey")
  1726. rng2.Parent = char
  1727. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1728. local rng2m = rng2.Mesh
  1729. local rng3 = rng:Clone()
  1730. rng3.Parent = char
  1731. rng3.BrickColor = BrickColor.new("Dark stone grey")
  1732. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1733. local rng3m = rng3.Mesh
  1734. local rng4 = rng:Clone()
  1735. rng4.Parent = char
  1736. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1737. local rng4m = rng4.Mesh
  1738. local rng5 = rng:Clone()
  1739. rng5.Parent = char
  1740. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1741. local rng5m = rng5.Mesh
  1742. local rng6 = rng:Clone()
  1743. rng6.Material = "Neon"
  1744. rng6.CanCollide = false
  1745. rng6.BrickColor = BrickColor.new("Neon orange")
  1746. rng6.Parent = LeftLeg
  1747. local rng6m = rng6.Mesh
  1748. rng6m.Scale = vt(1,1,1)
  1749. rng6m.MeshType = "Sphere"
  1750. local rng7 = rng:Clone()
  1751. rng7.Material = "Plastic"
  1752. rng7.CanCollide = false
  1753. rng7.BrickColor = BrickColor.new("Bright red")
  1754. rng7.Parent = LeftLeg
  1755. local rng7m = rng7.Mesh
  1756. rng7m.Scale = vt(1,1,1)
  1757. rng7m.MeshType = "Sphere"
  1758. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  1759. CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
  1760. wait()
  1761. local scaler = 10/5
  1762. local scaler2 = 10/5
  1763. local hit = rng6.Touched:connect(function(hit)
  1764. Damagefunc(hit,25,35,math.random(20,30),"Normal",root,.2,1)
  1765. end)
  1766. for i = 0,10,0.1 do
  1767. swait()
  1768. MagicBlock(bc("Neon orange"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1769. MagicBlock(bc("Dark stone grey"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1770. rng.Transparency = rng.Transparency + 0.01
  1771. rng2.Transparency = rng2.Transparency + 0.01
  1772. rng3.Transparency = rng3.Transparency + 0.01
  1773. rng4.Transparency = rng4.Transparency + 0.01
  1774. rng5.Transparency = rng5.Transparency + 0.01
  1775. rng6.Transparency = rng5.Transparency + 0.001
  1776. rng7.Transparency = rng5.Transparency + 0.001
  1777. scaler = scaler - 0.125/5
  1778. scaler2 = scaler2 - 0.1/5
  1779. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1780. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1781. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1782. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1783. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5)
  1784. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  1785. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1786. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1787. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1788. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1789. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1790. rng6.CFrame = rng3.CFrame
  1791. rng7.CFrame = rng3.CFrame
  1792. end
  1793. game:GetService("Debris"):AddItem(rng, 0.1)
  1794. game:GetService("Debris"):AddItem(rng2, 0.1)
  1795. game:GetService("Debris"):AddItem(rng3, 0.1)
  1796. game:GetService("Debris"):AddItem(rng4, 0.1)
  1797. game:GetService("Debris"):AddItem(rng5, 0.1)
  1798. hum.WalkSpeed = 16
  1799. hit:disconnect()
  1800. attack = false
  1801. char.Head.face.Texture = "rbxassetid://29291814"
  1802. jumped = false
  1803. end
  1804.  
  1805.  
  1806. function dashs()
  1807. attack = true
  1808. jumped = true
  1809. hum.WalkSpeed = 16
  1810. local bv = Instance.new("BodyVelocity")
  1811. bv.maxForce = Vector3.new(0, 0, 0)
  1812. bv.velocity = root.CFrame.lookVector*150
  1813. bv.Parent = root
  1814. char.Head.face.Texture = "rbxassetid://126198982"
  1815. game:GetService("Debris"):AddItem(bv, 1)
  1816. local rng = Instance.new("Part", char)
  1817. rng.Anchored = true
  1818. rng.BrickColor = BrickColor.new("Neon orange")
  1819. rng.CanCollide = false
  1820. rng.FormFactor = 3
  1821. rng.Name = "Ring"
  1822. rng.Size = Vector3.new(1, 1, 1)
  1823. rng.Transparency = 0
  1824. rng.TopSurface = 0
  1825. rng.BottomSurface = 0
  1826. rng.CFrame = root.CFrame
  1827. local rngm = Instance.new("SpecialMesh", rng)
  1828. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1829. local rng2 = rng:Clone()
  1830. rng2.BrickColor = BrickColor.new("Dark stone grey")
  1831. rng2.Parent = char
  1832. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1833. local rng2m = rng2.Mesh
  1834. local rng3 = rng:Clone()
  1835. rng3.Parent = char
  1836. rng3.BrickColor = BrickColor.new("Dark stone grey")
  1837. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1838. local rng3m = rng3.Mesh
  1839. local rng4 = rng:Clone()
  1840. rng4.Parent = char
  1841. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1842. local rng4m = rng4.Mesh
  1843. local rng5 = rng:Clone()
  1844. rng5.Parent = char
  1845. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1846. local rng5m = rng5.Mesh
  1847. local rng6 = rng:Clone()
  1848. rng6.Material = "Neon"
  1849. rng6.CanCollide = false
  1850. rng6.BrickColor = BrickColor.new("Neon orange")
  1851. rng6.Parent = LeftLeg
  1852. local rng6m = rng6.Mesh
  1853. rng6m.Scale = vt(1,1,1)
  1854. rng6m.MeshType = "Sphere"
  1855. local rng7 = rng:Clone()
  1856. rng7.Material = "Plastic"
  1857. rng7.CanCollide = false
  1858. rng7.BrickColor = BrickColor.new("Bright red")
  1859. rng7.Parent = LeftLeg
  1860. local rng7m = rng7.Mesh
  1861. rng7m.Scale = vt(1,1,1)
  1862. rng7m.MeshType = "Sphere"
  1863. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  1864. CFuncs["Sound"].Create("rbxassetid://539294959", root, 1, 1)
  1865. wait()
  1866. local scaler = 10/5
  1867. local scaler2 = 10/5
  1868. local hit = rng6.Touched:connect(function(hit)
  1869. Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1)
  1870. end)
  1871. for i = 0,10,0.1 do
  1872. swait()
  1873. rng.Transparency = rng.Transparency + 0.01
  1874. rng2.Transparency = rng2.Transparency + 0.01
  1875. rng3.Transparency = rng3.Transparency + 0.01
  1876. rng4.Transparency = rng4.Transparency + 0.01
  1877. rng5.Transparency = rng5.Transparency + 0.01
  1878. rng6.Transparency = rng5.Transparency + 0.001
  1879. rng7.Transparency = rng5.Transparency + 0.001
  1880. scaler = scaler - 0.125/5
  1881. scaler2 = scaler2 - 0.1/5
  1882. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1883. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1884. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1885. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/1.65, scaler2/1.65, 0)
  1886. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/0.5)
  1887. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/0.3)
  1888. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1889. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1890. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1891. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1892. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1893. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1894. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1895. rng6.CFrame = rng3.CFrame
  1896. rng7.CFrame = rng3.CFrame
  1897. end
  1898. game:GetService("Debris"):AddItem(rng, 0.1)
  1899. game:GetService("Debris"):AddItem(rng2, 0.1)
  1900. game:GetService("Debris"):AddItem(rng3, 0.1)
  1901. game:GetService("Debris"):AddItem(rng4, 0.1)
  1902. game:GetService("Debris"):AddItem(rng5, 0.1)
  1903. hum.WalkSpeed = 16
  1904. hit:disconnect()
  1905. attack = false
  1906. char.Head.face.Texture = "rbxassetid://29291814"
  1907. jumped = false
  1908. end
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914. function punch()
  1915. attack = true
  1916. jumped = true
  1917. hum.WalkSpeed = 30
  1918. killbrick = Instance.new("Part",rarm)
  1919. killbrick.Size = Vector3.new(0.1,0.1,0.1)
  1920. killbrick.Transparency = 1
  1921. killbrick:BreakJoints()
  1922. killbrick.CanCollide = false
  1923. killbrick.Anchored = true
  1924. killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  1925. lig = Instance.new("PointLight",player.Character.Torso)
  1926. lig.Color=Color3.new(255,0,0)
  1927. lig.Range = 20
  1928. local bv = Instance.new("BodyVelocity")
  1929. bv.maxForce = Vector3.new(1,1,1)
  1930. bv.velocity = root.CFrame.lookVector*150
  1931. bv.Parent = root
  1932. char.Head.face.Texture = "rbxassetid://126198982"
  1933. game:GetService("Debris"):AddItem(bv, 1)
  1934. local rng = Instance.new("Part", char)
  1935. rng.Anchored = true
  1936. rng.BrickColor = BrickColor.new("Neon orange")
  1937. rng.CanCollide = false
  1938. rng.FormFactor = 3
  1939. rng.Name = "Ring"
  1940. rng.Size = Vector3.new(1, 1, 1)
  1941. rng.Transparency = 0
  1942. rng.TopSurface = 0
  1943. rng.BottomSurface = 0
  1944. rng.CFrame = root.CFrame
  1945. local rngm = Instance.new("SpecialMesh", rng)
  1946. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1947. local rng2 = rng:Clone()
  1948. rng2.BrickColor = BrickColor.new("Dark stone grey")
  1949. rng2.Parent = char
  1950. rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1951. local rng2m = rng2.Mesh
  1952. local rng3 = rng:Clone()
  1953. rng3.Parent = char
  1954. rng3.BrickColor = BrickColor.new("Dark stone grey")
  1955. rng3.CFrame = rng.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1956. local rng3m = Instance.new("SpecialMesh", rng3)
  1957. rng3m.MeshId = "http://www.roblox.com/asset/?id=665769722"
  1958. local rng4 = rng:Clone()
  1959. rng4.Parent = char
  1960. rng4.BrickColor = BrickColor.new("Dark stone grey")
  1961. rng4.CFrame = root.CFrame + root.CFrame.lookVector*12
  1962. local rng4m = rng4.Mesh
  1963. local rng5 = rng:Clone()
  1964. rng5.Parent = char
  1965. rng5.BrickColor = BrickColor.new("Dark stone grey")
  1966. rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14
  1967. local rng5m = rng5.Mesh
  1968. local rng6 = rng:Clone()
  1969. rng6.Material = "Neon"
  1970. rng6.CanCollide = false
  1971. rng6.BrickColor = BrickColor.new("Neon orange")
  1972. rng6.Parent = LeftLeg
  1973. local rng6m = rng6.Mesh
  1974. rng6m.Scale = vt(1,1,1)
  1975. rng6m.MeshType = "Sphere"
  1976. local rng7 = rng:Clone()
  1977. rng7.Material = "Plastic"
  1978. rng7.CanCollide = false
  1979. rng7.BrickColor = BrickColor.new("Bright red")
  1980. rng7.Parent = LeftLeg
  1981. local rng7m = rng7.Mesh
  1982. rng7m.Scale = vt(1,1,1)
  1983. rng7m.MeshType = "Sphere"
  1984. CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
  1985. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  1986. wait()
  1987. local scaler = 10/5
  1988. local scaler2 = 10/5
  1989. local hit = rng6.Touched:connect(function(hit)
  1990. Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1)
  1991. CRIT=true
  1992. end)
  1993. for i = 0,10,0.1 do
  1994. swait()
  1995. rng.Transparency = rng.Transparency + 0.01
  1996. rng2.Transparency = rng2.Transparency + 0.01
  1997. rng3.Transparency = rng3.Transparency + 0.01
  1998. rng4.Transparency = rng4.Transparency + 0.01
  1999. rng5.Transparency = rng5.Transparency + 0.01
  2000. rng6.Transparency = rng5.Transparency + 0.001
  2001. rng7.Transparency = rng5.Transparency + 0.001
  2002. scaler = scaler - 0.125/5
  2003. scaler2 = scaler2 - 0.1/5
  2004. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  2005. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/7.5, scaler2/7.5, 0)
  2006. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  2007. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  2008. rng6.Size = rng6.Size + Vector3.new(scaler2/1.2, scaler2/1.2, scaler2/1.2)
  2009. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  2010. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2011. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  2012. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2013. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  2014. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  2015. rng6.CFrame = killbrick.CFrame
  2016. rng7.CFrame = killbrick.CFrame
  2017. end
  2018. game:GetService("Debris"):AddItem(rng, 0.1)
  2019. game:GetService("Debris"):AddItem(rng2, 0.1)
  2020. game:GetService("Debris"):AddItem(rng3, 0.1)
  2021. game:GetService("Debris"):AddItem(rng4, 0.1)
  2022. game:GetService("Debris"):AddItem(rng5, 0.1)
  2023. hum.WalkSpeed = 16
  2024. hit:disconnect()
  2025. attack = false
  2026. killbrick:Destroy()
  2027. char.Head.face.Texture = "rbxassetid://29291814"
  2028. jumped = false
  2029. lig:Remove()
  2030. end
  2031.  
  2032.  
  2033.  
  2034.  
  2035. function punchd()
  2036. attack = true
  2037. jumped = true
  2038. hum.WalkSpeed = 30
  2039. killbrick = Instance.new("Part",rarm)
  2040. killbrick.Size = Vector3.new(0.1,0.1,0.1)
  2041. killbrick.Transparency = 1
  2042. killbrick:BreakJoints()
  2043. killbrick.CanCollide = false
  2044. killbrick.Anchored = true
  2045. killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  2046. lig = Instance.new("PointLight",player.Character.Torso)
  2047. lig.Color=Color3.new(255,0,0)
  2048. lig.Range = 20
  2049. local bv = Instance.new("BodyVelocity")
  2050. bv.maxForce = Vector3.new(1,1,1)
  2051. bv.velocity = root.CFrame.lookVector*150
  2052. bv.Parent = root
  2053. char.Head.face.Texture = "rbxassetid://126198982"
  2054. game:GetService("Debris"):AddItem(bv, 1)
  2055. local rng = Instance.new("Part", char)
  2056. rng.Anchored = true
  2057. rng.BrickColor = BrickColor.new("Neon orange")
  2058. rng.CanCollide = false
  2059. rng.FormFactor = 3
  2060. rng.Name = "Ring"
  2061. rng.Size = Vector3.new(1, 1, 1)
  2062. rng.Transparency = 0
  2063. rng.TopSurface = 0
  2064. rng.BottomSurface = 0
  2065. rng.CFrame = root.CFrame
  2066. local rngm = Instance.new("SpecialMesh", rng)
  2067. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2068. local rng2 = rng:Clone()
  2069. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2070. rng2.Parent = char
  2071. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  2072. local rng2m = rng2.Mesh
  2073. local rng3 = rng:Clone()
  2074. rng3.Parent = char
  2075. rng3.BrickColor = BrickColor.new("Dark stone grey")
  2076. rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12
  2077. local rng3m = rng3.Mesh
  2078. local rng4 = rng:Clone()
  2079. rng4.Parent = char
  2080. rng4.CFrame = root.CFrame + root.CFrame.lookVector*13
  2081. local rng4m = rng4.Mesh
  2082. local rng5 = rng:Clone()
  2083. rng5.Parent = char
  2084. rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14
  2085. local rng5m = rng5.Mesh
  2086. local rng6 = rng:Clone()
  2087. rng6.Material = "Neon"
  2088. rng6.CanCollide = false
  2089. rng6.BrickColor = BrickColor.new("Neon orange")
  2090. rng6.Parent = LeftLeg
  2091. local rng6m = rng6.Mesh
  2092. rng6m.Scale = vt(1,1,1)
  2093. rng6m.MeshType = "Sphere"
  2094. local rng7 = rng:Clone()
  2095. rng7.Material = "Plastic"
  2096. rng7.CanCollide = false
  2097. rng7.BrickColor = BrickColor.new("Bright red")
  2098. rng7.Parent = LeftLeg
  2099. local rng7m = rng7.Mesh
  2100. rng7m.Scale = vt(1,1,1)
  2101. rng7m.MeshType = "Sphere"
  2102. CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
  2103. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  2104. wait()
  2105. local scaler = 10/5
  2106. local scaler2 = 10/5
  2107. local hit = rng6.Touched:connect(function(hit)
  2108. Damagefunc(hit,45,55,math.random(40,50),"Normal",root,.2,1)
  2109. CRIT=true
  2110. end)
  2111. for i = 0,10,0.1 do
  2112. swait()
  2113. rng.Transparency = rng.Transparency + 0.01
  2114. rng2.Transparency = rng2.Transparency + 0.01
  2115. rng3.Transparency = rng3.Transparency + 0.01
  2116. rng4.Transparency = rng4.Transparency + 0.01
  2117. rng5.Transparency = rng5.Transparency + 0.01
  2118. rng6.Transparency = rng5.Transparency + 0.001
  2119. rng7.Transparency = rng5.Transparency + 0.001
  2120. scaler = scaler - 0.125/5
  2121. scaler2 = scaler2 - 0.1/5
  2122. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  2123. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  2124. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  2125. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  2126. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5)
  2127. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  2128. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2129. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  2130. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2131. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  2132. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  2133. rng6.CFrame = killbrick.CFrame
  2134. rng7.CFrame = killbrick.CFrame
  2135. end
  2136. game:GetService("Debris"):AddItem(rng, 0.1)
  2137. game:GetService("Debris"):AddItem(rng2, 0.1)
  2138. game:GetService("Debris"):AddItem(rng3, 0.1)
  2139. game:GetService("Debris"):AddItem(rng4, 0.1)
  2140. game:GetService("Debris"):AddItem(rng5, 0.1)
  2141. hum.WalkSpeed = 16
  2142. hit:disconnect()
  2143. attack = false
  2144. killbrick:Destroy()
  2145. char.Head.face.Texture = "rbxassetid://29291814"
  2146. jumped = false
  2147. lig:Remove()
  2148. end
  2149.  
  2150.  
  2151.  
  2152.  
  2153. function punch2()
  2154. attack = true
  2155. jumped = true
  2156. hum.WalkSpeed = 16
  2157. killbrick = Instance.new("Part",rarm)
  2158. killbrick.Size = Vector3.new(0.1,0.1,0.1)
  2159. killbrick.Transparency = 1
  2160. killbrick:BreakJoints()
  2161. killbrick.CanCollide = false
  2162. killbrick.Anchored = true
  2163. killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  2164. lig = Instance.new("PointLight",player.Character.Torso)
  2165. lig.Color=Color3.new(255,0,0)
  2166. lig.Range = 20
  2167. local bv = Instance.new("BodyVelocity")
  2168. bv.maxForce = Vector3.new(1,1,1)
  2169. bv.velocity = root.CFrame.lookVector*150
  2170. bv.Parent = root
  2171. char.Head.face.Texture = "rbxassetid://126198982"
  2172. game:GetService("Debris"):AddItem(bv, 1)
  2173. local rng = Instance.new("Part", char)
  2174. rng.Anchored = true
  2175. rng.BrickColor = BrickColor.new("Neon orange")
  2176. rng.CanCollide = false
  2177. rng.FormFactor = 3
  2178. rng.Name = "Ring"
  2179. rng.Size = Vector3.new(1, 1, 1)
  2180. rng.Transparency = 0
  2181. rng.TopSurface = 0
  2182. rng.BottomSurface = 0
  2183. rng.CFrame = root.CFrame
  2184. local rngm = Instance.new("SpecialMesh", rng)
  2185. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2186. local rng2 = rng:Clone()
  2187. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2188. rng2.Parent = char
  2189. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  2190. local rng2m = rng2.Mesh
  2191. local rng3 = rng:Clone()
  2192. rng3.Parent = char
  2193. rng3.BrickColor = BrickColor.new("Dark stone grey")
  2194. rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12
  2195. local rng3m = rng3.Mesh
  2196. local rng4 = rng:Clone()
  2197. rng4.Parent = char
  2198. rng4.CFrame = root.CFrame + root.CFrame.lookVector*13
  2199. local rng4m = rng4.Mesh
  2200. local rng5 = rng:Clone()
  2201. rng5.Parent = char
  2202. rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14
  2203. local rng5m = rng5.Mesh
  2204. local rng6 = rng:Clone()
  2205. rng6.Material = "Neon"
  2206. rng6.CanCollide = false
  2207. rng6.BrickColor = BrickColor.new("Neon orange")
  2208. rng6.Parent = LeftLeg
  2209. local rng6m = rng6.Mesh
  2210. rng6m.Scale = vt(1,1,1)
  2211. rng6m.MeshType = "Sphere"
  2212. local rng7 = rng:Clone()
  2213. rng7.Material = "Plastic"
  2214. rng7.CanCollide = false
  2215. rng7.BrickColor = BrickColor.new("Bright red")
  2216. rng7.Parent = LeftLeg
  2217. local rng7m = rng7.Mesh
  2218. rng7m.Scale = vt(1,1,1)
  2219. rng7m.MeshType = "Sphere"
  2220. CFuncs["Sound"].Create("rbxassetid://633130540", root, 1, 1)
  2221. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  2222. wait()
  2223. local scaler = 10/5
  2224. local scaler2 = 10/5
  2225. local hit = rng6.Touched:connect(function(hit)
  2226. Damagefunc(hit,67,75,math.random(60,70),"Normal",root,.2,1)
  2227. end)
  2228. for i = 0,10,0.1 do
  2229. swait()
  2230. rng.Transparency = rng.Transparency + 0.01
  2231. rng2.Transparency = rng2.Transparency + 0.01
  2232. rng3.Transparency = rng3.Transparency + 0.01
  2233. rng4.Transparency = rng4.Transparency + 0.01
  2234. rng5.Transparency = rng5.Transparency + 0.01
  2235. rng6.Transparency = rng5.Transparency + 0.001
  2236. rng7.Transparency = rng5.Transparency + 0.001
  2237. scaler = scaler - 0.125/5
  2238. scaler2 = scaler2 - 0.1/5
  2239. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0)
  2240. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0)
  2241. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0)
  2242. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  2243. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5)
  2244. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  2245. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2246. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2247. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  2248. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  2249. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2250. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  2251. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  2252. rng6.CFrame = killbrick.CFrame
  2253. rng7.CFrame = killbrick.CFrame
  2254.  
  2255. end
  2256. game:GetService("Debris"):AddItem(rng, 0.1)
  2257. game:GetService("Debris"):AddItem(rng2, 0.1)
  2258. game:GetService("Debris"):AddItem(rng3, 0.1)
  2259. game:GetService("Debris"):AddItem(rng4, 0.1)
  2260. game:GetService("Debris"):AddItem(rng5, 0.1)
  2261. hum.WalkSpeed = 16
  2262. hit:disconnect()
  2263. attack = false
  2264. killbrick:Destroy()
  2265. char.Head.face.Texture = "rbxassetid://29291814"
  2266. jumped = false
  2267. lig:Remove()
  2268. end
  2269.  
  2270.  
  2271. function Crater(hed,Radius)
  2272. spawn(function()
  2273. local Ray = Ray.new(hed.Position,Vector3.new(0,-1,0)*10)
  2274. local Ignore = {}
  2275. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2276. if v.Character ~= nil then
  2277. Ignore[#Ignore+1] = v.Character
  2278. end
  2279. end
  2280. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  2281. if Hit == nil then return end
  2282. local Parts = {}
  2283. for i = 1,360,10 do
  2284. local P = Instance.new("Part",hed.Parent)
  2285. P.Anchored = true
  2286. P.FormFactor = "Custom"
  2287. P.BrickColor = Hit.BrickColor
  2288. P.Material = Hit.Material
  2289. P.TopSurface = "Smooth"
  2290. P.BottomSurface = "Smooth"
  2291. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  2292. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  2293. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  2294. if math.random(0,5) == 0 then -- rubble
  2295. local P = Instance.new("Part",hed.Parent)
  2296. P.Anchored = true
  2297. P.FormFactor = "Custom"
  2298. P.BrickColor = Hit.BrickColor
  2299. P.Material = Hit.Material
  2300. P.TopSurface = "Smooth"
  2301. P.BottomSurface = "Smooth"
  2302. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  2303. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  2304. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  2305. end
  2306. end
  2307. for i = 0,1,0.05 do
  2308. for i2,v in pairs(Parts) do
  2309. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  2310. end
  2311. wait(0)
  2312. end
  2313. for i,v in pairs(Parts) do
  2314. if v[1].Size.X > 2.1 then
  2315. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  2316. end
  2317. v[1].Anchored = false
  2318. end
  2319. for i = 0,1,0.05 do
  2320. for i2,v in pairs(Parts) do
  2321. v[1].Transparency = i
  2322. if i == 1 then
  2323. v[1]:Destroy()
  2324. elseif i >= 0.25 then
  2325. v[1].CanCollide = false
  2326. end
  2327. end
  2328. wait(0.02)
  2329. end
  2330. Parts = nil
  2331. end)
  2332. end
  2333.  
  2334.  
  2335. function shock()
  2336. attack = true
  2337. jumped = true
  2338. hum.WalkSpeed = 16
  2339. killbrick = Instance.new("Part",rarm)
  2340. killbrick.Size = Vector3.new(0.1,0.1,0.1)
  2341. killbrick.Transparency = 1
  2342. killbrick:BreakJoints()
  2343. killbrick.CanCollide = false
  2344. killbrick.Anchored = true
  2345. killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  2346. lig = Instance.new("PointLight",player.Character.Torso)
  2347. lig.Color=Color3.new(255,0,0)
  2348. lig.Range = 20
  2349. local bv = Instance.new("BodyVelocity")
  2350. bv.maxForce = Vector3.new(1,1,1)
  2351. bv.velocity = root.CFrame.lookVector*150
  2352. bv.Parent = root
  2353. char.Head.face.Texture = "rbxassetid://126198982"
  2354. game:GetService("Debris"):AddItem(bv, 1)
  2355. local rng = Instance.new("Part", char)
  2356. rng.Anchored = true
  2357. rng.BrickColor = BrickColor.new("Neon orange")
  2358. rng.CanCollide = false
  2359. rng.FormFactor = 3
  2360. rng.Name = "Ring"
  2361. rng.Size = Vector3.new(1, 1, 1)
  2362. rng.Transparency = 0
  2363. rng.TopSurface = 0
  2364. rng.BottomSurface = 0
  2365. rng.CFrame = root.CFrame
  2366. local rngm = Instance.new("SpecialMesh", rng)
  2367. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2368. local rng2 = rng:Clone()
  2369. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2370. rng2.Parent = char
  2371. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  2372. local rng2m = rng2.Mesh
  2373. local rng3 = rng:Clone()
  2374. rng3.Parent = char
  2375. rng3.BrickColor = BrickColor.new("Dark stone grey")
  2376. rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12
  2377. local rng3m = rng3.Mesh
  2378. local rng4 = rng:Clone()
  2379. rng4.Parent = char
  2380. rng4.CFrame = root.CFrame + root.CFrame.lookVector*13
  2381. local rng4m = rng4.Mesh
  2382. local rng5 = rng:Clone()
  2383. rng5.Parent = char
  2384. rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14
  2385. local rng5m = rng5.Mesh
  2386. local rng6 = rng:Clone()
  2387. rng6.Material = "Neon"
  2388. rng6.CanCollide = false
  2389. rng6.BrickColor = BrickColor.new("Neon orange")
  2390. rng6.Parent = LeftLeg
  2391. local rng6m = rng6.Mesh
  2392. rng6m.Scale = vt(1,1,1)
  2393. rng6m.MeshType = "Sphere"
  2394. local rng7 = rng:Clone()
  2395. rng7.Material = "Plastic"
  2396. rng7.CanCollide = false
  2397. rng7.BrickColor = BrickColor.new("Bright red")
  2398. rng7.Parent = LeftLeg
  2399. local rng7m = rng7.Mesh
  2400. rng7m.Scale = vt(1,1,1)
  2401. rng7m.MeshType = "Sphere"
  2402. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  2403. wait()
  2404. local scaler = 10/5
  2405. local scaler2 = 10/5
  2406. local hit = rng6.Touched:connect(function(hit)
  2407. Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1)
  2408. end)
  2409. for i = 0,10,0.1 do
  2410. swait()
  2411. MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  2412. rng.Transparency = rng.Transparency + 0.01
  2413. rng2.Transparency = rng2.Transparency + 0.01
  2414. rng3.Transparency = rng3.Transparency + 0.01
  2415. rng4.Transparency = rng4.Transparency + 0.01
  2416. rng5.Transparency = rng5.Transparency + 0.01
  2417. rng6.Transparency = rng5.Transparency + 0.001
  2418. rng7.Transparency = rng5.Transparency + 0.001
  2419. scaler = scaler - 0.125/5
  2420. scaler2 = scaler2 - 0.1/5
  2421. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/0.25, scaler2/0.45, 0)
  2422. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/0.5, scaler2/0.7, 0)
  2423. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/0.75, scaler2/0.95, 0)
  2424. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/0.9, scaler2/0.9, 0)
  2425. rng6.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6)
  2426. rng7.Size = rng6.Size + Vector3.new(scaler2/0.6, scaler2/0.6, scaler2/0.6)
  2427. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2428. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2429. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  2430. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  2431. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2432. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  2433. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  2434. rng6.CFrame = killbrick.CFrame
  2435. rng7.CFrame = killbrick.CFrame
  2436. end
  2437. game:GetService("Debris"):AddItem(rng, 0.1)
  2438. game:GetService("Debris"):AddItem(rng2, 0.1)
  2439. game:GetService("Debris"):AddItem(rng3, 0.1)
  2440. game:GetService("Debris"):AddItem(rng4, 0.1)
  2441. game:GetService("Debris"):AddItem(rng5, 0.1)
  2442. hum.WalkSpeed = 16
  2443. hit:disconnect()
  2444. attack = false
  2445. killbrick:Destroy()
  2446. char.Head.face.Texture = "rbxassetid://29291814"
  2447. jumped = false
  2448. lig:Remove()
  2449. end
  2450.  
  2451.  
  2452. function punch3()
  2453. attack = true
  2454. jumped = true
  2455. hum.WalkSpeed = 16
  2456. killbrick = Instance.new("Part",rarm)
  2457. killbrick.Size = Vector3.new(0.1,0.1,0.1)
  2458. killbrick.Transparency = 1
  2459. killbrick:BreakJoints()
  2460. killbrick.CanCollide = false
  2461. killbrick.Anchored = true
  2462. killbrick.CFrame = char.Torso.CFrame * CFrame.new(0,0,0)
  2463.  
  2464. killbrick2 = Instance.new("Part",rarm)
  2465. killbrick2.Size = Vector3.new(0.1,0.1,0.1)
  2466. killbrick2.Transparency = 1
  2467. killbrick2:BreakJoints()
  2468. killbrick2.CanCollide = false
  2469. killbrick2.Anchored = true
  2470. killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-30)
  2471. lig = Instance.new("PointLight",player.Character.Torso)
  2472. lig.Color=Color3.new(255,0,0)
  2473. lig.Range = 20
  2474. local bv = Instance.new("BodyVelocity")
  2475. bv.maxForce = Vector3.new(1,1,1)
  2476. bv.velocity = root.CFrame.lookVector*150
  2477. bv.Parent = root
  2478. char.Head.face.Texture = "rbxassetid://126198982"
  2479. game:GetService("Debris"):AddItem(bv, 1)
  2480. local rng = Instance.new("Part", char)
  2481. rng.Anchored = true
  2482. rng.BrickColor = BrickColor.new("Neon orange")
  2483. rng.CanCollide = false
  2484. rng.FormFactor = 3
  2485. rng.Name = "Ring"
  2486. rng.Size = Vector3.new(1, 1, 1)
  2487. rng.Transparency = 0
  2488. rng.TopSurface = 0
  2489. rng.BottomSurface = 0
  2490. rng.CFrame = root.CFrame
  2491. local rngm = Instance.new("SpecialMesh", rng)
  2492. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2493. local rng2 = rng:Clone()
  2494. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2495. rng2.Parent = char
  2496. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  2497. local rng2m = rng2.Mesh
  2498. local rng3 = rng:Clone()
  2499. rng3.Parent = char
  2500. rng3.BrickColor = BrickColor.new("Dark stone grey")
  2501. rng3.CFrame = root.CFrame + root.CFrame.lookVector*-12
  2502. local rng3m = rng3.Mesh
  2503. local rng4 = rng:Clone()
  2504. rng4.Parent = char
  2505. rng4.CFrame = root.CFrame + root.CFrame.lookVector*13
  2506. local rng4m = rng4.Mesh
  2507. local rng5 = rng:Clone()
  2508. rng5.Parent = char
  2509. rng5.CFrame = root.CFrame + root.CFrame.lookVector*-14
  2510. local rng5m = rng5.Mesh
  2511. local rng6 = rng:Clone()
  2512. rng6.Material = "Neon"
  2513. rng6.CanCollide = false
  2514. rng6.BrickColor = BrickColor.new("Neon orange")
  2515. rng6.Parent = LeftLeg
  2516. local rng6m = rng6.Mesh
  2517. rng6m.Scale = vt(1,1,1)
  2518. rng6m.MeshType = "Sphere"
  2519. local rng7 = rng:Clone()
  2520. rng7.Material = "Plastic"
  2521. rng7.CanCollide = false
  2522. rng7.BrickColor = BrickColor.new("Bright red")
  2523. rng7.Parent = LeftLeg
  2524. local rng7m = rng7.Mesh
  2525. rng7m.Scale = vt(1,1,1)
  2526. rng7m.MeshType = "Sphere"
  2527. local rng8 = rng6:Clone()
  2528. rng8.Material = "Neon"
  2529. rng8.CanCollide = false
  2530. rng8.BrickColor = BrickColor.new("Neon orange")
  2531. rng8.Parent = LeftLeg
  2532. local rng8m = rng7.Mesh
  2533. rng8m.Scale = vt(1,1,1)
  2534. rng8m.MeshType = "Sphere"
  2535. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  2536. wait()
  2537. local scaler = 10/5
  2538. local scaler2 = 10/5
  2539. local hit = rng8.Touched:connect(function(hit)
  2540. Damagefunc(hit,57,65,math.random(50,60),"Normal",root,.2,1)
  2541. end)
  2542. for i = 0,10,0.1 do
  2543. swait()
  2544. rng.Transparency = rng.Transparency + 0.01
  2545. rng2.Transparency = rng2.Transparency + 0.01
  2546. rng3.Transparency = rng3.Transparency + 0.01
  2547. rng4.Transparency = rng4.Transparency + 0.01
  2548. rng5.Transparency = rng5.Transparency + 0.01
  2549. rng6.Transparency = rng5.Transparency + 0.001
  2550. rng7.Transparency = rng5.Transparency + 0.001
  2551. rng8.Transparency = rng5.Transparency + 0.001
  2552. scaler = scaler - 0.125/5
  2553. scaler2 = scaler2 - 0.1/5
  2554. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.45, 0)
  2555. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.7, 0)
  2556. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.95, 0)
  2557. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  2558. rng6.Size = rng6.Size + Vector3.new(scaler2/1.5, scaler2/1.5, scaler2/1.5)
  2559. rng7.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  2560. rng8.Size = rng6.Size + Vector3.new(scaler2/1.3, scaler2/1.3, scaler2/1.3)
  2561. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2562. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  2563. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  2564. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  2565. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  2566. rng6.CFrame = killbrick.CFrame
  2567. rng7.CFrame = killbrick.CFrame
  2568. rng8.CFrame = killbrick2.CFrame
  2569. end
  2570. game:GetService("Debris"):AddItem(rng, 0.1)
  2571. game:GetService("Debris"):AddItem(rng2, 0.1)
  2572. game:GetService("Debris"):AddItem(rng3, 0.1)
  2573. game:GetService("Debris"):AddItem(rng4, 0.1)
  2574. game:GetService("Debris"):AddItem(rng5, 0.1)
  2575. hum.WalkSpeed = 16
  2576. hit:disconnect()
  2577. attack = false
  2578. killbrick:Destroy()
  2579. char.Head.face.Texture = "rbxassetid://29291814"
  2580. jumped = false
  2581. lig:Remove()
  2582. end
  2583.  
  2584.  
  2585.  
  2586. function boom()
  2587. attack = true
  2588. jumped = true
  2589. hum.WalkSpeed = 0
  2590. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  2591. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  2592. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  2593. for i = 0,15,0.1 do
  2594. swait()
  2595. MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  2596. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2597. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  2598. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  2599. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2600. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  2601. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  2602. char.Head.face.Texture = "rbxassetid://126198982"
  2603. end
  2604. local rng = Instance.new("Part", char)
  2605. rng.Anchored = true
  2606. rng.BrickColor = BrickColor.new("Neon orange")
  2607. rng.CanCollide = false
  2608. rng.FormFactor = 3
  2609. rng.Name = "Ring"
  2610. rng.Size = Vector3.new(1, 1, 1)
  2611. rng.Transparency = 0
  2612. rng.TopSurface = 0
  2613. rng.BottomSurface = 0
  2614. rng.Position = root.Position
  2615. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  2616. local rngm = Instance.new("SpecialMesh", rng)
  2617. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2618. local rng2 = rng:Clone()
  2619. rng2.Parent = char
  2620. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2621. local rng2m = rng2.Mesh
  2622. local rng3 = rng:Clone()
  2623. rng3.Parent = char
  2624. local rng3m = rng3.Mesh
  2625. local rng4 = rng:Clone()
  2626. rng4.Parent = char
  2627. local rng4m = rng4.Mesh
  2628. local rng5 = rng:Clone()
  2629. rng5.Parent = char
  2630. rng5.BrickColor = BrickColor.new("Dark stone grey")
  2631. local rng5m = rng5.Mesh
  2632. local hit = rng5.Touched:connect(function(hit)
  2633. Damagefunc(hit,120,175,math.random(100,100),"Normal",root,.2,1)
  2634. end)
  2635. MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
  2636. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
  2637. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.85)
  2638. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 10, 1)
  2639. wait()
  2640. local scaler = 10
  2641. local scaler2 = 10
  2642. for i = 0,10,0.1 do
  2643. swait()
  2644. rng.Transparency = rng.Transparency + 0.01
  2645. rng2.Transparency = rng2.Transparency + 0.01
  2646. rng3.Transparency = rng3.Transparency + 0.01
  2647. rng4.Transparency = rng4.Transparency + 0.01
  2648. rng5.Transparency = rng5.Transparency + 0.01
  2649. scaler = scaler - 0.125
  2650. scaler2 = scaler2 - 0.1
  2651. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  2652. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  2653. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  2654. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  2655. rng5.Size = rng5m.Scale
  2656. rng5.CFrame = rng.CFrame
  2657. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  2658. text.Text = " DIE! "
  2659. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2660. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  2661. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  2662. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2663. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  2664. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  2665. end
  2666. hit:disconnect()
  2667. game:GetService("Debris"):AddItem(rng, 1)
  2668. game:GetService("Debris"):AddItem(rng2, 1)
  2669. game:GetService("Debris"):AddItem(rng3, 1)
  2670. game:GetService("Debris"):AddItem(rng4, 1)
  2671. game:GetService("Debris"):AddItem(rng5, 1)
  2672. hum.WalkSpeed = 16
  2673. attack = false
  2674. text.Text = " "
  2675. char.Head.face.Texture = "rbxassetid://29291814"
  2676. jumped = false
  2677. end
  2678.  
  2679. function shooty()
  2680. attack = true
  2681. MagicBlock(bc("Neon orange"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  2682. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  2683. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7)
  2684. for i = 0,15,0.1 do
  2685. swait()
  2686. MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  2687. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  2688. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  2689. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  2690. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  2691. char.Head.face.Texture = "rbxassetid://126198982"
  2692. end
  2693. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 1)
  2694. local a = Instance.new("Part",Character)
  2695. a.Name = "Direction"
  2696. a.Anchored = true
  2697. a.BrickColor = bc("Neon orange")
  2698. a.Material = "Neon"
  2699. a.Transparency = 1
  2700. a.CanCollide = false
  2701. local ray = Ray.new(
  2702. root.CFrame.p, -- origin
  2703. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  2704. )
  2705. local ignore = Character
  2706. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2707. a.BottomSurface = 10
  2708. a.TopSurface = 10
  2709. local distance = (root.CFrame.p - position).magnitude
  2710. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2711. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  2712. local lb = Instance.new("Part")
  2713. lb.Parent = char
  2714. lb.BrickColor = bc("Neon orange")
  2715. local pie22 = Instance.new("ParticleEmitter")
  2716. pie22.Parent = char.Torso
  2717. pie22.Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color)
  2718. pie22.LightEmission = 0
  2719. pie22.Size = NumberSequence.new(10,5)
  2720. pie22.Texture = "http://www.roblox.com/asset/?id=254959503"
  2721. pie22.Transparency = NumberSequence.new(0, 1)
  2722. pie22.EmissionDirection = "Top"
  2723. pie22.Enabled = true
  2724. pie22.Lifetime = NumberRange.new(1)
  2725. pie22.Rotation = NumberRange.new(-17, 17)
  2726. pie22.Rate = 200
  2727. pie22.Speed = NumberRange.new(3)
  2728. pie22.LockedToPart = false
  2729. pie22.VelocitySpread = 3
  2730. pie22.Name = "Haa"
  2731. pie22.Parent = lb
  2732. lb.CanCollide = false
  2733. lb.Material = "Neon"
  2734. lb.Anchored = true
  2735. lb.TopSurface = 0
  2736. lb.BottomSurface = 0
  2737. lb.Transparency = 0
  2738. lb.Size = vt(0.5,0.5,0.5)
  2739. lb.CFrame = sorb.CFrame
  2740. lb.Anchored = false
  2741. local thingery = Instance.new("SpecialMesh",lb)
  2742. thingery.MeshType = "Sphere"
  2743. thingery.Scale = vt(25,25,25)
  2744. game:GetService("Debris"):AddItem(lb, 10)
  2745. local bv = Instance.new("BodyVelocity")
  2746. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2747. bv.velocity = a.CFrame.lookVector*150
  2748. bv.Parent = lb
  2749. game:GetService("Debris"):AddItem(a, 0.1)
  2750. wait(0.05)
  2751. local hitted = false
  2752. lb.Touched:connect(function(hit)
  2753. if hitted == false then
  2754. hitted = true
  2755. lb.Anchored = true
  2756. lb.Transparency = 1
  2757. local rng = Instance.new("Part", char)
  2758. rng.Anchored = true
  2759. rng.BrickColor = BrickColor.new("Neon orange")
  2760. rng.CanCollide = false
  2761. rng.FormFactor = 3
  2762. rng.Name = "Ring"
  2763. rng.Size = Vector3.new(1, 1, 1)
  2764. rng.Transparency = 0
  2765. rng.TopSurface = 0
  2766. rng.BottomSurface = 0
  2767. rng.CFrame = lb.CFrame
  2768. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  2769. local rngm = Instance.new("SpecialMesh", rng)
  2770. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2771. local rng2 = rng:Clone()
  2772. rng2.Parent = char
  2773. local rng2m = rng2.Mesh
  2774. local rng3 = rng:Clone()
  2775. rng3.Parent = char
  2776. rng3.BrickColor = BrickColor.new("Dark stone grey")
  2777. local rng3m = rng3.Mesh
  2778. local rng4 = rng:Clone()
  2779. rng4.Parent = char
  2780. local rng4m = rng4.Mesh
  2781. local rng5 = rng:Clone()
  2782. rng5.Parent = char
  2783. rng5.BrickColor = BrickColor.new("Dark stone grey")
  2784. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  2785. local rng5m = rng5.Mesh
  2786. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  2787. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  2788. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  2789. MagicBlock(bc("White"),lb.CFrame,15,15,15,5,5,5,0.015)
  2790. local rng6 = rng:Clone()
  2791. rng6.Material = "Neon"
  2792. rng6.Parent = char
  2793. local rng6m = rng6.Mesh
  2794. rng6m.Scale = vt(1,1,1)
  2795. rng6m.MeshType = "Sphere"
  2796. local hita = rng6.Touched:connect(function(hit)
  2797. Damagefunc(hit,72,78,math.random(70,70),"Normal",root,.2,1)
  2798. end)
  2799. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1)
  2800. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 0.75)
  2801. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
  2802. local scaler = 5
  2803. local scaler2 = 5
  2804. for i = 0,20,0.1 do
  2805. swait()
  2806. rng.Transparency = rng.Transparency + 0.005
  2807. rng2.Transparency = rng2.Transparency + 0.005
  2808. rng3.Transparency = rng3.Transparency + 0.005
  2809. rng4.Transparency = rng4.Transparency + 0.005
  2810. rng5.Transparency = rng5.Transparency + 0.005
  2811. rng6.Transparency = rng6.Transparency + 0.005
  2812. scaler = scaler - 0.005/2
  2813. scaler2 = scaler2 - 0.05/2
  2814. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  2815. rng6.CFrame = rng.CFrame
  2816. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  2817. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  2818. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  2819. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  2820. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2821. end
  2822. hita:disconnect()
  2823. game:GetService("Debris"):AddItem(rng, 1)
  2824. game:GetService("Debris"):AddItem(rng2, 1)
  2825. game:GetService("Debris"):AddItem(rng3, 1)
  2826. game:GetService("Debris"):AddItem(rng4, 1)
  2827. game:GetService("Debris"):AddItem(rng5, 1)
  2828. game:GetService("Debris"):AddItem(rng6, 1)
  2829. end
  2830. end)
  2831. for i = 0,2,0.1 do
  2832. swait()
  2833. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  2834. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  2835. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2836. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  2837. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  2838. text.Text = " DIE! "
  2839. end
  2840. attack = false
  2841. text.Text = " "
  2842. char.Head.face.Texture = "rbxassetid://29291814"
  2843. end
  2844.  
  2845. function superpunch()
  2846. attack = true
  2847. jumped = true
  2848. hum.WalkSpeed = 16
  2849. chatfunc("You'll be fine as long as you dodge!")
  2850. wait(1.5)
  2851. text.Text = " "
  2852. wait(0.5)
  2853. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  2854. CFuncs["Sound"].Create("rbxassetid://165970126", root, 1, 0.7)
  2855. wait(0.7)
  2856. chatfunc("Explosion Grenade!")
  2857. for i = 0,15,0.1 do
  2858. swait()
  2859. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  2860. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  2861. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  2862. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  2863. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  2864. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  2865. char.Head.face.Texture = "rbxassetid://126198982"
  2866. end
  2867. local rng = Instance.new("Part", char)
  2868. rng.Anchored = true
  2869. rng.BrickColor = BrickColor.new("Neon orange")
  2870. rng.CanCollide = false
  2871. rng.FormFactor = 3
  2872. rng.Name = "Ring"
  2873. rng.Size = Vector3.new(1, 1, 1)
  2874. rng.Transparency = 0
  2875. rng.TopSurface = 0
  2876. rng.BottomSurface = 0
  2877. rng.CFrame = root.CFrame
  2878. local rngm = Instance.new("SpecialMesh", rng)
  2879. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2880. local rng2 = rng:Clone()
  2881. rng2.Parent = char
  2882. rng2.BrickColor = BrickColor.new("Dark stone grey")
  2883. local rng2m = rng2.Mesh
  2884. local rng3 = rng:Clone()
  2885. rng3.Parent = char
  2886. local rng3m = rng3.Mesh
  2887. local rng4 = rng:Clone()
  2888. rng4.Parent = char
  2889. rng4.BrickColor = BrickColor.new("Dark stone grey")
  2890. local rng4m = rng4.Mesh
  2891. local rng5 = rng:Clone()
  2892. rng5.Parent = char
  2893. local rng5m = rng5.Mesh
  2894. local rng6 = rng:Clone()
  2895. rng6.Material = "Neon"
  2896. rng6.Parent = char
  2897. local rng6m = rng6.Mesh
  2898. rng6m.Scale = vt(1,1,1)
  2899. rng6m.MeshType = "Sphere"
  2900. local hita = rng6.Touched:connect(function(hit)
  2901. Damagefunc(hit,30000,44000,math.random(30000,40000),"Normal",root,.2,1)
  2902. end)
  2903. rng2.CFrame = root.CFrame
  2904. rng3.CFrame = root.CFrame
  2905. rng4.CFrame = root.CFrame
  2906. rng5.CFrame = root.CFrame
  2907. rng6.CFrame = root.CFrame
  2908. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1)
  2909. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85)
  2910. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
  2911. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
  2912. CFuncs["Sound"].Create("rbxassetid://165970126", rng, 5, 1)
  2913. wait()
  2914. local scaler = 10/5
  2915. local scaler2 = 10/5
  2916. MagicBlock(bc("Dark stone grey"),root.CFrame,30,30,30,5,5,5,0.015)
  2917. for i = 0,10,0.1 do
  2918. swait()
  2919. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  2920. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/0.25
  2921. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/0.5
  2922. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/0.75
  2923. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  2924. rng6.Size = rng6.Size + Vector3.new(scaler2/0.9, scaler2/0.9, scaler2/0.4)
  2925. rng6.CFrame = rng.CFrame
  2926. rng.Transparency = rng.Transparency + 0.01
  2927. rng2.Transparency = rng2.Transparency + 0.01
  2928. rng3.Transparency = rng3.Transparency + 0.01
  2929. rng4.Transparency = rng4.Transparency + 0.01
  2930. rng5.Transparency = rng5.Transparency + 0.01
  2931. rng6.Transparency = rng6.Transparency + 0.01
  2932. scaler = scaler - 0.125/5
  2933. scaler2 = scaler2 - 0.1/5
  2934. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  2935. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  2936. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  2937. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  2938. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  2939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  2940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2941. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  2942. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  2943. end
  2944. hita:disconnect()
  2945. game:GetService("Debris"):AddItem(rng, 1)
  2946. game:GetService("Debris"):AddItem(rng2, 1)
  2947. game:GetService("Debris"):AddItem(rng3, 1)
  2948. game:GetService("Debris"):AddItem(rng4, 1)
  2949. game:GetService("Debris"):AddItem(rng5, 1)
  2950. hum.WalkSpeed = 16
  2951. attack = false
  2952. char.Head.face.Texture = "rbxassetid://29291814"
  2953. jumped = false
  2954. end
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962. mouse.KeyDown:connect(function(k)
  2963. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  2964. jump()
  2965. end
  2966. if k == "x" and attack == false then
  2967. dash()
  2968. end
  2969. if k == "t" and attack == false then
  2970. dashh()
  2971. end
  2972. if k == "r" and attack == false then
  2973. dashs()
  2974. end
  2975. if k == "p" and attack == false then
  2976. asd:Stop()
  2977. end
  2978. if k == "g" and attack == false then
  2979. chatfunc("Deku!")
  2980. end
  2981. if k == "1" and attack == false then
  2982. chatfunc("Weak!")
  2983. end
  2984. if k == "2" and attack == false then
  2985. chatfunc("That's what you consider strong?!")
  2986. end
  2987. if k == "3" and attack == false then
  2988. chatfunc("Useless!")
  2989. end
  2990. if k == "4" and attack == false then
  2991. chatfunc("What?!")
  2992. end
  2993. if k == "5" and attack == false then
  2994. chatfunc("Hmph.")
  2995. end
  2996. if k == "6" and attack == false then
  2997. chatfunc("Trash!")
  2998. end
  2999. if k == "7" and attack == false then
  3000. chatfunc("You're Nothing!")
  3001. end
  3002. if k == "h" and attack == false then
  3003. chatfunc("Die!")
  3004. end
  3005. if k == "m" and attack == false then
  3006. char.Head.face.Texture = "rbxassetid://126198982"
  3007. chatfunc("I'll crush you!")
  3008. end
  3009. if k == "j" and attack == false then
  3010. chatfunc("Idiot!")
  3011. end
  3012. if k == "k" and attack == false then
  3013. chatfunc("I'll crush that Half-n-Half bastard..")
  3014. end
  3015. if k == "l" and attack == false then
  3016. chatfunc("Remember who you are.. YOU'RE BENEATH ME!")
  3017. end
  3018. if k == "f" and attack == false then
  3019. daash()
  3020. end
  3021. if k == "u" and attack == false then
  3022. asd:Play()
  3023. end
  3024. if k == "e" and attack == false then
  3025. punch()
  3026. end
  3027. if k == "y" and attack == false then
  3028. punch3()
  3029. end
  3030.  
  3031. if k == "q" and attack == false then
  3032. punch2()
  3033. end
  3034. if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  3035. boom()
  3036. end
  3037. if k == "v" and attack == false then
  3038. shooty()
  3039. end
  3040. if k == "l" and attack == false then
  3041. if Serious == true then
  3042. punchd()
  3043. end
  3044. end
  3045. if k == "b" and attack == false then
  3046. superpunch()
  3047. end
  3048. end)
  3049. mouse.KeyDown:connect(function(key)
  3050. if key=="8" then
  3051. Serious()
  3052. end
  3053. end)
  3054. Health = math.huge --------- Serious mode aura.
  3055. BaseHealth = math.huge
  3056.  
  3057.  
  3058.  
  3059.  
  3060. InForm = false
  3061.  
  3062. Player = game.Players.LocalPlayer
  3063. Char = Player.Character
  3064. Torso = Char.Torso
  3065.  
  3066. function Serious()
  3067. for X = 1, 1 do wait()
  3068. asd1 = Instance.new("Sound",char)
  3069. asd1.SoundId = "http://www.roblox.com/asset/?id = 934992368"
  3070. asd1.Volume = 2
  3071. asd1.Looped = true
  3072. asd1:Play()
  3073. chatfunc("...")
  3074. wait(1.6)
  3075. chatfunc("...You..")
  3076. wait(1.6)
  3077. chatfunc("...")
  3078. wait(1.6)
  3079. chatfunc("There's no point in winning if both sides don't give it their all.")
  3080. wait(8)
  3081. for X = 1, 1 do wait()
  3082. local Effect = Instance.new("Part")
  3083. Effect.Name = "Effect"
  3084. Effect.Parent = Torso
  3085. Effect.CFrame = Torso.CFrame
  3086. Effect.BrickColor = BrickColor.new("Neon orange")
  3087. Effect.Shape = "Ball"
  3088. Effect.Size = Vector3.new(1, 1, 1)
  3089. Effect.Anchored = true
  3090. Effect.Material = "Neon"
  3091. Effect.CanCollide = false
  3092. Effect.CFrame = Torso.CFrame
  3093. Effect.Size = Effect.Size + Vector3.new(0.5)
  3094. Effect.Transparency = Effect.Transparency + 0.04
  3095. end
  3096. end
  3097.  
  3098. repeat
  3099. Torso:FindFirstChild("Effect"):Remove()
  3100. until Torso:FindFirstChild("Effect") == nil
  3101.  
  3102.  
  3103. local Color1 = Color3.new(255, 255, 0)
  3104. local Color2 = Color3.new(255, 255, 0)
  3105.  
  3106.  
  3107. local Aura = Instance.new('ParticleEmitter')
  3108. Aura.Name = "Aura"
  3109. Aura.Texture = "rbxassetid://254959503"
  3110. Aura.Parent = Torso
  3111. Aura.LightEmission = 0.6
  3112. Aura.Transparency = NumberSequence.new(0.5)
  3113. Aura.Color = ColorSequence.new(BrickColor.new("Neon orange").Color)
  3114. Aura.Size = NumberSequence.new(7,4,1)
  3115. Aura.LockedToPart = false
  3116. Aura.Lifetime = NumberRange.new(3)
  3117. Aura.Rate = 40
  3118. Aura.Speed = NumberRange.new(2)
  3119. Aura.Rotation = NumberRange.new(-420,420)
  3120. Aura.EmissionDirection = "Top"
  3121. MagicBlock(bc("Neon orange"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3122. punch2()
  3123. chatfunc("DON'T UNDERESTIMATE ME!")
  3124. Instance.new("ForceField",char).Visible = false
  3125. hum.Name = "youdungoofed"
  3126. local Aura2 = Instance.new('ParticleEmitter')
  3127. Aura2.Name = "Aura"
  3128. Aura2.Texture = "rbxassetid://254959503"
  3129. Aura2.Parent = Torso
  3130. Aura2.LightEmission = 0
  3131. Aura2.Transparency = NumberSequence.new(0.7)
  3132. Aura2.Color = ColorSequence.new(BrickColor.new("Grey").Color)
  3133. Aura2.Size = NumberSequence.new(10,6,1)
  3134. Aura2.LockedToPart = false
  3135. Aura2.Lifetime = NumberRange.new(3)
  3136. Aura2.Rate = 40
  3137. Aura2.Speed = NumberRange.new(2)
  3138. Aura2.Rotation = NumberRange.new(3,-3)
  3139. Aura2.EmissionDirection = "Top"
  3140. local Aura3 = Instance.new('ParticleEmitter')
  3141. Aura3.Name = "Aura"
  3142. Aura3.Texture = "rbxassetid://245595131"
  3143. Aura3.Parent = Torso
  3144. Aura3.LightEmission = 1
  3145. Aura3.Transparency = NumberSequence.new(0.7)
  3146. Aura3.Color = ColorSequence.new(BrickColor.new("Grey").Color)
  3147. Aura3.Size = NumberSequence.new(0.6)
  3148. Aura3.LockedToPart = false
  3149. Aura3.Lifetime = NumberRange.new(1)
  3150. Aura3.Rate = 40
  3151. Aura3.Speed = NumberRange.new(2)
  3152. Aura3.Rotation = NumberRange.new(3,-3)
  3153. Aura3.EmissionDirection = "Top"
  3154.  
  3155.  
  3156. InForm = true
  3157.  
  3158. Char.Humanoid.MaxHealth = Health
  3159. wait(0.3)
  3160. Char.Humanoid.Health = Health
  3161.  
  3162.  
  3163. end
  3164.  
  3165. function Base()
  3166. InForm = false
  3167. local Effect = Instance.new("Part")
  3168. Effect.Name = "Effect"
  3169. Effect.Parent = Torso
  3170. Effect.CFrame = Torso.CFrame
  3171. Effect.BrickColor = BrickColor.new("White")
  3172. Effect.Shape = "Ball"
  3173. Effect.Size = Vector3.new(8, 8, 8)
  3174. Effect.Anchored = true
  3175. Effect.Material = "Neon"
  3176. Effect.CanCollide = false
  3177. for loop = 1, 25 do wait()
  3178. Effect.CFrame = Torso.CFrame
  3179. Effect.Size = Effect.Size + Vector3.new(-0.5)
  3180. Effect.Transparency = Effect.Transparency + 0.04
  3181. end
  3182. repeat
  3183. Torso:FindFirstChild("Effect"):Remove()
  3184. until Torso:FindFirstChild("Effect") == nil
  3185.  
  3186. for i, v in pairs(Torso:GetChildren()) do
  3187. if v:IsA('ParticleEmitter') then
  3188. v:Remove()
  3189. asd1:Destroy()
  3190. killbrick:Destroy()
  3191. end
  3192. end
  3193. char.Humanoid.MaxHealth = BaseHealth
  3194. wait(0.3)
  3195. char.Humanoid.Health = BaseHealth
  3196.  
  3197. end
  3198.  
  3199. mouse.KeyDown:connect(function(key)
  3200. if key=="9" then
  3201. Base()
  3202. end
  3203. end)
  3204.  
  3205. Player.Chatted:connect(function(Message)
  3206. if Message == "Time to get serious." and InForm == false then
  3207. wait(0.10)
  3208. Serious()
  3209. end
  3210. if Message == "off" or Message == "Nice fight." and InForm == true then
  3211. Base()
  3212. end
  3213. end)
  3214. Humanoid.Animator.Parent = nil
  3215. idleanim=.4
  3216. while true do
  3217. swait()
  3218. sine = sine + change
  3219. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3220. local velderp=RootPart.Velocity.y
  3221. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3222. if equipped==true or equipped==false then
  3223. if attack==false then
  3224. idle=idle+1
  3225. else
  3226. idle=0
  3227. end
  3228. if idle>=500 then
  3229. if attack==false then
  3230. --Sheath()
  3231. end
  3232. end
  3233. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3234. Anim="Jump"
  3235. if attack==false then
  3236. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3237. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3238. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3239. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  3240. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3241. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  3242. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3243. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3244. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3245. end
  3246. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3247. Anim="Fall"
  3248. if attack==false then
  3249. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  3250. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3251. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  3252. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  3253. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3254. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  3255. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3256. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3257. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3258. end
  3259. elseif torvel<1 and hitfloor~=nil then
  3260. Anim="Idle"
  3261. if jumped == false then
  3262. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  3263. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  3264. end
  3265. if attack==false then
  3266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  3268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  3269. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  3270. end
  3271. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3272. Anim="Walk"
  3273. if jumped == false then
  3274. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  3275. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  3276. end
  3277. if attack==false then
  3278. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  3279. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  3281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  3282. end
  3283. elseif torvel>=22 and hitfloor~=nil then
  3284. Anim="Run"
  3285. if jumped == false then
  3286. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  3287. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  3288. end
  3289. if attack==false then
  3290. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  3291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3292. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  3293. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  3294. end
  3295. end
  3296. end
  3297. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement