Advertisement
tntmyles

CorruptVectorist

Jun 29th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.74 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. hum = char.Humanoid
  4. local cam = game.Workspace.CurrentCamera
  5. t = char.Torso
  6. h = char.Head
  7. ra = char["Right Arm"]
  8. la = char["Left Arm"]
  9. rl = char["Right Leg"]
  10. ll = char["Left Leg"]
  11. tors = char.Torso
  12. lleg = char["Left Leg"]
  13. root = char.HumanoidRootPart
  14. hed = char.Head
  15. rleg = char["Right Leg"]
  16. rarm = char["Right Arm"]
  17. larm = char["Left Arm"]
  18. vt = Vector3.new
  19. bc = BrickColor.new
  20. br = BrickColor.random
  21. it = Instance.new
  22. cf = CFrame.new
  23.  
  24. function CameraShake(Times, Power)
  25. coroutine.resume(coroutine.create(function()
  26. FV = Instance.new("BoolValue", Character)
  27. FV.Name = "CameraShake"
  28. for ShakeNum=1,Times do
  29. swait()
  30. local ef=Power
  31. if ef>=1 then
  32. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  33. else
  34. ef=Power*10
  35. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  36. end
  37. end
  38. Humanoid.CameraOffset = Vector3.new(0,0,0)
  39. FV:Destroy()
  40. end))
  41. end
  42.  
  43. CamShake=function(Part,Distan,Power,Times)
  44. local de=Part.Position
  45. for i,v in pairs(workspace:children()) do
  46. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  47. for _,c in pairs(v:children()) do
  48. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  49. local Noob=v.Humanoid
  50. if Noob~=nil then
  51. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  52. --[[local ss=script.CamShake:clone()
  53. ss.Parent=Noob
  54. ss.Power.Value=Power
  55. ss.Times.Value=Times
  56. ss.Disabled=false]]
  57. CameraShake(Times, Power)
  58. end
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65.  
  66. function chatfunc(text,color)
  67. local chat = coroutine.wrap(function()
  68. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  69. Character:FindFirstChild("TalkingBillBoard"):destroy()
  70. end
  71. local naeeym2 = Instance.new("BillboardGui",Character)
  72. naeeym2.Size = UDim2.new(0,100,0,40)
  73. naeeym2.StudsOffset = Vector3.new(0,3,0)
  74. naeeym2.Adornee = Character.Head
  75. naeeym2.Name = "TalkingBillBoard"
  76. local tecks2 = Instance.new("TextLabel",naeeym2)
  77. tecks2.BackgroundTransparency = 1
  78. tecks2.BorderSizePixel = 0
  79. tecks2.Text = ""
  80. tecks2.Font = "SciFi"
  81. tecks2.TextSize = 30
  82. tecks2.TextStrokeTransparency = 0
  83. tecks2.TextColor3 = color
  84. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  85. tecks2.Size = UDim2.new(1,0,0.5,0)
  86. local tecks3 = Instance.new("TextLabel",naeeym2)
  87. tecks3.BackgroundTransparency = 1
  88. tecks3.BorderSizePixel = 0
  89. tecks3.Text = ""
  90. tecks3.Font = "SciFi"
  91. tecks3.TextSize = 30
  92. tecks3.TextStrokeTransparency = 0
  93. tecks3.TextColor3 = Color3.new(0,0,0)
  94. tecks3.TextStrokeColor3 = color
  95. tecks3.Size = UDim2.new(1,0,0.5,0)
  96. for i = 1,string.len(text),1 do
  97. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  98. tecks2.Text = string.sub(text,1,i)
  99. tecks3.Text = string.sub(text,1,i)
  100. wait(0.01)
  101. end
  102. wait(1)
  103. local randomrot = math.random(1,2)
  104. if randomrot == 1 then
  105. for i = 1, 50 do
  106. swait()
  107. tecks2.Rotation = tecks2.Rotation - .75
  108. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  109. tecks2.TextTransparency = tecks2.TextTransparency + .04
  110. tecks3.Rotation = tecks2.Rotation + .75
  111. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  112. tecks3.TextTransparency = tecks2.TextTransparency + .04
  113. end
  114. elseif randomrot == 2 then
  115. for i = 1, 50 do
  116. swait()
  117. tecks2.Rotation = tecks2.Rotation + .75
  118. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  119. tecks2.TextTransparency = tecks2.TextTransparency + .04
  120. tecks3.Rotation = tecks2.Rotation - .75
  121. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  122. tecks3.TextTransparency = tecks2.TextTransparency + .04
  123. end
  124. end
  125. naeeym2:Destroy()
  126. end)
  127. chat()
  128. end
  129.  
  130.  
  131. local Create = LoadLibrary("RbxUtility").Create
  132.  
  133. CFuncs = {
  134. ["Part"] = {
  135. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  136. local Part = Create("Part"){
  137. Parent = Parent,
  138. Reflectance = Reflectance,
  139. Transparency = Transparency,
  140. CanCollide = false,
  141. Locked = true,
  142. BrickColor = BrickColor.new(tostring(BColor)),
  143. Name = Name,
  144. Size = Size,
  145. Material = Material,
  146. }
  147. RemoveOutlines(Part)
  148. return Part
  149. end;
  150. };
  151.  
  152. ["Mesh"] = {
  153. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  154. local Msh = Create(Mesh){
  155. Parent = Part,
  156. Offset = OffSet,
  157. Scale = Scale,
  158. }
  159. if Mesh == "SpecialMesh" then
  160. Msh.MeshType = MeshType
  161. Msh.MeshId = MeshId
  162. end
  163. return Msh
  164. end;
  165. };
  166.  
  167. ["Mesh"] = {
  168. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  169. local Msh = Create(Mesh){
  170. Parent = Part,
  171. Offset = OffSet,
  172. Scale = Scale,
  173. }
  174. if Mesh == "SpecialMesh" then
  175. Msh.MeshType = MeshType
  176. Msh.MeshId = MeshId
  177. end
  178. return Msh
  179. end;
  180. };
  181.  
  182. ["Weld"] = {
  183. Create = function(Parent, Part0, Part1, C0, C1)
  184. local Weld = Create("Weld"){
  185. Parent = Parent,
  186. Part0 = Part0,
  187. Part1 = Part1,
  188. C0 = C0,
  189. C1 = C1,
  190. }
  191. return Weld
  192. end;
  193. };
  194.  
  195. ["Sound"] = {
  196. Create = function(id, par, vol, pit)
  197. coroutine.resume(coroutine.create(function()
  198. local S = Create("Sound"){
  199. Volume = vol,
  200. Pitch = pit or 1,
  201. SoundId = id,
  202. Parent = par or workspace,
  203. }
  204. wait()
  205. S:play()
  206. game:GetService("Debris"):AddItem(S, 10)
  207. end))
  208. end;
  209. };
  210.  
  211. ["LongSound"] = {
  212. Create = function(id, par, vol, pit)
  213. coroutine.resume(coroutine.create(function()
  214. local S = Create("Sound"){
  215. Volume = vol,
  216. Pitch = pit or 1,
  217. SoundId = id,
  218. Parent = par or workspace,
  219. }
  220. wait()
  221. S:play()
  222. game:GetService("Debris"):AddItem(S, 30)
  223. end))
  224. end;
  225. };
  226.  
  227. ["ParticleEmitter"] = {
  228. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  229. local fp = Create("ParticleEmitter"){
  230. Parent = Parent,
  231. Color = ColorSequence.new(Color1, Color2),
  232. LightEmission = LightEmission,
  233. Size = Size,
  234. Texture = Texture,
  235. Transparency = Transparency,
  236. ZOffset = ZOffset,
  237. Acceleration = Accel,
  238. Drag = Drag,
  239. LockedToPart = LockedToPart,
  240. VelocityInheritance = VelocityInheritance,
  241. EmissionDirection = EmissionDirection,
  242. Enabled = Enabled,
  243. Lifetime = LifeTime,
  244. Rate = Rate,
  245. Rotation = Rotation,
  246. RotSpeed = RotSpeed,
  247. Speed = Speed,
  248. VelocitySpread = VelocitySpread,
  249. }
  250. return fp
  251. end;
  252. };
  253.  
  254. CreateTemplate = {
  255.  
  256. };
  257. }
  258.  
  259.  
  260.  
  261. New = function(Object, Parent, Name, Data)
  262. local Object = Instance.new(Object)
  263. for Index, Value in pairs(Data or {}) do
  264. Object[Index] = Value
  265. end
  266. Object.Parent = Parent
  267. Object.Name = Name
  268. return Object
  269. end
  270. local halocolor = BrickColor.new("Dark indigo")
  271. local wepcolor = BrickColor.new("Really black")
  272. local m = Instance.new("Model",char)
  273.  
  274. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  275. local p = Instance.new("Part")
  276. p.TopSurface = 0
  277. p.BottomSurface = 0
  278. p.Parent = parent
  279. p.Size = Vector3.new(1,1,1)
  280. p.Transparency = transparency
  281. p.Reflectance = reflectance
  282. p.CanCollide = false
  283. p.Locked = true
  284. p.BrickColor = brickcolor
  285. p.Material = material
  286. return p
  287. end
  288.  
  289. function CreateMesh(parent,meshtype,x1,y1,z1)
  290. local mesh = Instance.new("SpecialMesh",parent)
  291. mesh.MeshType = meshtype
  292. mesh.Scale = Vector3.new(x1,y1,z1)
  293. return mesh
  294. end
  295.  
  296. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  297. local mesh = Instance.new("SpecialMesh",parent)
  298. mesh.MeshType = "FileMesh"
  299. mesh.MeshId = meshid
  300. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  301. mesh.Scale = Vector3.new(x1,y1,z1)
  302. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  303. return mesh
  304. end
  305.  
  306. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  307. local weld = Instance.new("Weld")
  308. weld.Parent = parent
  309. weld.Part0 = part0
  310. weld.Part1 = part1
  311. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  312. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  313. return weld
  314. end
  315.  
  316.  
  317. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  318. 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))
  319. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  320. 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))
  321.  
  322. function RemoveOutlines(part)
  323. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  324. end
  325. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  326. local Part = Create("Part")({
  327. Parent = Parent,
  328. Reflectance = Reflectance,
  329. Transparency = Transparency,
  330. CanCollide = false,
  331. Locked = true,
  332. BrickColor = BrickColor.new(tostring(BColor)),
  333. Name = Name,
  334. Size = Size,
  335. Material = Material
  336. })
  337. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  338. RemoveOutlines(Part)
  339. return Part
  340. end
  341. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  342. local Msh = Create(Mesh)({
  343. Parent = Part,
  344. Offset = OffSet,
  345. Scale = Scale
  346. })
  347. if Mesh == "SpecialMesh" then
  348. Msh.MeshType = MeshType
  349. Msh.MeshId = MeshId
  350. end
  351. return Msh
  352. end
  353. function CreateWeld(Parent, Part0, Part1, C0, C1)
  354. local Weld = Create("Weld")({
  355. Parent = Parent,
  356. Part0 = Part0,
  357. Part1 = Part1,
  358. C0 = C0,
  359. C1 = C1
  360. })
  361. return Weld
  362. end
  363.  
  364. Player=game:GetService("Players").LocalPlayer
  365. Character=Player.Character
  366. PlayerGui=Player.PlayerGui
  367. Backpack=Player.Backpack
  368. Torso=Character.Torso
  369. Head=Character.Head
  370. Humanoid=Character.Humanoid
  371. m=Instance.new('Model',Character)
  372. LeftArm=Character["Left Arm"]
  373. LeftLeg=Character["Left Leg"]
  374. RightArm=Character["Right Arm"]
  375. RightLeg=Character["Right Leg"]
  376. LS=Torso["Left Shoulder"]
  377. LH=Torso["Left Hip"]
  378. RS=Torso["Right Shoulder"]
  379. RH=Torso["Right Hip"]
  380. Face = Head.face
  381. Neck=Torso.Neck
  382. it=Instance.new
  383. attacktype=1
  384. vt=Vector3.new
  385. cf=CFrame.new
  386. euler=CFrame.fromEulerAnglesXYZ
  387. angles=CFrame.Angles
  388. cloaked=false
  389. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  390. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  391. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  392. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  393. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  394. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  395. RootPart=Character.HumanoidRootPart
  396. RootJoint=RootPart.RootJoint
  397. RootCF=euler(-1.57,0,3.14)
  398. attack = false
  399. attackdebounce = false
  400. deb=false
  401. equipped=true
  402. hand=false
  403. MMouse=nil
  404. combo=0
  405. mana=0
  406. trispeed=.2
  407. attackmode='none'
  408. local idle=0
  409. local Anim="Idle"
  410. local Effects={}
  411. local gun=false
  412. local shoot=false
  413. local sine = 0
  414. local change = 1
  415. player=nil
  416.  
  417. mouse=Player:GetMouse()
  418. --save shoulders
  419. RSH, LSH=nil, nil
  420. --welds
  421. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  422. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  423. LH=Torso["Left Hip"]
  424. RH=Torso["Right Hip"]
  425. TorsoColor=Torso.BrickColor
  426. function NoOutline(Part)
  427. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  428. end
  429. player=Player
  430. ch=Character
  431. RSH=ch.Torso["Right Shoulder"]
  432. LSH=ch.Torso["Left Shoulder"]
  433. --
  434. RSH.Parent=nil
  435. LSH.Parent=nil
  436. --
  437. RW.Name="Right Shoulder"
  438. RW.Part0=ch.Torso
  439. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  440. RW.C1=cf(0, 0.5, 0)
  441. RW.Part1=ch["Right Arm"]
  442. RW.Parent=ch.Torso
  443. --
  444. LW.Name="Left Shoulder"
  445. LW.Part0=ch.Torso
  446. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  447. LW.C1=cf(0, 0.5, 0)
  448. LW.Part1=ch["Left Arm"]
  449. LW.Parent=ch.Torso
  450.  
  451. local Stats=Instance.new("BoolValue")
  452. Stats.Name="Stats"
  453. Stats.Parent=Character
  454. local Atk=Instance.new("NumberValue")
  455. Atk.Name="Damage"
  456. Atk.Parent=Stats
  457. Atk.Value=1
  458. local Def=Instance.new("NumberValue")
  459. Def.Name="Defense"
  460. Def.Parent=Stats
  461. Def.Value=1
  462. local Speed=Instance.new("NumberValue")
  463. Speed.Name="Speed"
  464. Speed.Parent=Stats
  465. Speed.Value=1
  466. local Mvmt=Instance.new("NumberValue")
  467. Mvmt.Name="Movement"
  468. Mvmt.Parent=Stats
  469. Mvmt.Value=1
  470.  
  471. local donum=0
  472.  
  473.  
  474. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  475. local fp=it("Part")
  476. fp.formFactor=formfactor
  477. fp.Parent=parent
  478. fp.Reflectance=reflectance
  479. fp.Transparency=transparency
  480. fp.CanCollide=false
  481. fp.Locked=true
  482. fp.BrickColor=brickcolor
  483. fp.Name=name
  484. fp.Size=size
  485. fp.Position=Torso.Position
  486. NoOutline(fp)
  487. fp.Material="SmoothPlastic"
  488. fp:BreakJoints()
  489. return fp
  490. end
  491.  
  492. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  493. local mesh=it(Mesh)
  494. mesh.Parent=part
  495. if Mesh=="SpecialMesh" then
  496. mesh.MeshType=meshtype
  497. if meshid~="nil" then
  498. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  499. end
  500. end
  501. mesh.Offset=offset
  502. mesh.Scale=scale
  503. return mesh
  504. end
  505.  
  506. function weld(parent,part0,part1,c0)
  507. local weld=it("Weld")
  508. weld.Parent=parent
  509. weld.Part0=part0
  510. weld.Part1=part1
  511. weld.C0=c0
  512. return weld
  513. end
  514.  
  515. local Color1=Torso.BrickColor
  516.  
  517. local bodvel=Instance.new("BodyVelocity")
  518. local bg=Instance.new("BodyGyro")
  519.  
  520. function swait(num)
  521. if num==0 or num==nil then
  522. game:service'RunService'.Stepped:wait(0)
  523. else
  524. for i=0,num do
  525. game:service'RunService'.Stepped:wait(0)
  526. end
  527. end
  528. end
  529.  
  530.  
  531. so = function(id,par,vol,pit)
  532. coroutine.resume(coroutine.create(function()
  533. local sou = Instance.new("Sound",par or workspace)
  534. sou.Volume=vol
  535. sou.Pitch=pit or 1
  536. sou.SoundId=id
  537. swait()
  538. sou:play()
  539. game:GetService("Debris"):AddItem(sou,6)
  540. end))
  541. end
  542.  
  543. function clerp(a,b,t)
  544. local qa = {QuaternionFromCFrame(a)}
  545. local qb = {QuaternionFromCFrame(b)}
  546. local ax, ay, az = a.x, a.y, a.z
  547. local bx, by, bz = b.x, b.y, b.z
  548. local _t = 1-t
  549. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  550. end
  551.  
  552. function QuaternionFromCFrame(cf)
  553. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  554. local trace = m00 + m11 + m22
  555. if trace > 0 then
  556. local s = math.sqrt(1 + trace)
  557. local recip = 0.5/s
  558. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  559. else
  560. local i = 0
  561. if m11 > m00 then
  562. i = 1
  563. end
  564. if m22 > (i == 0 and m00 or m11) then
  565. i = 2
  566. end
  567. if i == 0 then
  568. local s = math.sqrt(m00-m11-m22+1)
  569. local recip = 0.5/s
  570. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  571. elseif i == 1 then
  572. local s = math.sqrt(m11-m22-m00+1)
  573. local recip = 0.5/s
  574. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  575. elseif i == 2 then
  576. local s = math.sqrt(m22-m00-m11+1)
  577. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  578. end
  579. end
  580. end
  581.  
  582. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  583. local xs, ys, zs = x + x, y + y, z + z
  584. local wx, wy, wz = w*xs, w*ys, w*zs
  585. local xx = x*xs
  586. local xy = x*ys
  587. local xz = x*zs
  588. local yy = y*ys
  589. local yz = y*zs
  590. local zz = z*zs
  591. 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))
  592. end
  593.  
  594. function QuaternionSlerp(a, b, t)
  595. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  596. local startInterp, finishInterp;
  597. if cosTheta >= 0.0001 then
  598. if (1 - cosTheta) > 0.0001 then
  599. local theta = math.acos(cosTheta)
  600. local invSinTheta = 1/math.sin(theta)
  601. startInterp = math.sin((1-t)*theta)*invSinTheta
  602. finishInterp = math.sin(t*theta)*invSinTheta
  603. else
  604. startInterp = 1-t
  605. finishInterp = t
  606. end
  607. else
  608. if (1+cosTheta) > 0.0001 then
  609. local theta = math.acos(-cosTheta)
  610. local invSinTheta = 1/math.sin(theta)
  611. startInterp = math.sin((t-1)*theta)*invSinTheta
  612. finishInterp = math.sin(t*theta)*invSinTheta
  613. else
  614. startInterp = t-1
  615. finishInterp = t
  616. end
  617. end
  618. 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
  619. end
  620.  
  621. local function CFrameFromTopBack(at, top, back)
  622. local right = top:Cross(back)
  623. return CFrame.new(at.x, at.y, at.z,
  624. right.x, top.x, back.x,
  625. right.y, top.y, back.y,
  626. right.z, top.z, back.z)
  627. end
  628.  
  629. function Triangle(a, b, c)
  630. local edg1 = (c-a):Dot((b-a).unit)
  631. local edg2 = (a-b):Dot((c-b).unit)
  632. local edg3 = (b-c):Dot((a-c).unit)
  633. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  634. a, b, c = a, b, c
  635. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  636. a, b, c = b, c, a
  637. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  638. a, b, c = c, a, b
  639. else
  640. assert(false, "unreachable")
  641. end
  642.  
  643. local len1 = (c-a):Dot((b-a).unit)
  644. local len2 = (b-a).magnitude - len1
  645. local width = (a + (b-a).unit*len1 - c).magnitude
  646.  
  647. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  648.  
  649. local list = {}
  650.  
  651. if len1 > 0.01 then
  652. local w1 = Instance.new('WedgePart', m)
  653. game:GetService("Debris"):AddItem(w1,5)
  654. w1.Material = "SmoothPlastic"
  655. w1.FormFactor = 'Custom'
  656. w1.BrickColor = BrickColor.new("Really red")
  657. w1.Transparency = 0
  658. w1.Reflectance = 0
  659. w1.Material = "SmoothPlastic"
  660. w1.CanCollide = false
  661. local l1 = Instance.new("PointLight",w1)
  662. l1.Color = Color3.new(170,0,0)
  663. NoOutline(w1)
  664. local sz = Vector3.new(0.2, width, len1)
  665. w1.Size = sz
  666. local sp = Instance.new("SpecialMesh",w1)
  667. sp.MeshType = "Wedge"
  668. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  669. w1:BreakJoints()
  670. w1.Anchored = true
  671. w1.Parent = workspace
  672. w1.Transparency = 0.7
  673. table.insert(Effects,{w1,"Disappear",.01})
  674. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  675. table.insert(list,w1)
  676. end
  677.  
  678. if len2 > 0.01 then
  679. local w2 = Instance.new('WedgePart', m)
  680. game:GetService("Debris"):AddItem(w2,5)
  681. w2.Material = "SmoothPlastic"
  682. w2.FormFactor = 'Custom'
  683. w2.BrickColor = BrickColor.new("Really red")
  684. w2.Transparency = 0
  685. w2.Reflectance = 0
  686. w2.Material = "SmoothPlastic"
  687. w2.CanCollide = false
  688. local l2 = Instance.new("PointLight",w2)
  689. l2.Color = Color3.new(170,0,0)
  690. NoOutline(w2)
  691. local sz = Vector3.new(0.2, width, len2)
  692. w2.Size = sz
  693. local sp = Instance.new("SpecialMesh",w2)
  694. sp.MeshType = "Wedge"
  695. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  696. w2:BreakJoints()
  697. w2.Anchored = true
  698. w2.Parent = workspace
  699. w2.Transparency = 0.7
  700. table.insert(Effects,{w2,"Disappear",.01})
  701. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  702. table.insert(list,w2)
  703. end
  704. return unpack(list)
  705. end
  706.  
  707.  
  708. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  709. if hit.Parent == nil then
  710. return
  711. end
  712. local h = hit.Parent:FindFirstChild("Humanoid")
  713. for _, v in pairs(hit.Parent:children()) do
  714. if v:IsA("Humanoid") then
  715. h = v
  716. end
  717. end
  718. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  719. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  720. return
  721. end
  722. local c = Create("ObjectValue")({
  723. Name = "creator",
  724. Value = game:service("Players").LocalPlayer,
  725. Parent = h
  726. })
  727. game:GetService("Debris"):AddItem(c, 0.5)
  728. if HitSound ~= nil and HitPitch ~= nil then
  729. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  730. end
  731. local Damage = math.random(minim, maxim)
  732. local blocked = false
  733. local block = hit.Parent:findFirstChild("Block")
  734. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  735. blocked = true
  736. block.Value = block.Value - 1
  737. print(block.Value)
  738. end
  739. if blocked == false then
  740. HitHealth = h.Health
  741. h.Health = h.Health - Damage
  742. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  743. print("gained kill")
  744. end
  745. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  746. else
  747. h.Health = h.Health - Damage / 2
  748. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  749. end
  750. if Type == "Knockdown" then
  751. local hum = hit.Parent.Humanoid
  752. hum.PlatformStand = true
  753. coroutine.resume(coroutine.create(function(HHumanoid)
  754. swait(1)
  755. HHumanoid.PlatformStand = false
  756. end), hum)
  757. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  758. local bodvol = Create("BodyVelocity")({
  759. velocity = angle * knockback,
  760. P = 5000,
  761. maxForce = Vector3.new(8000, 8000, 8000),
  762. Parent = hit
  763. })
  764. local rl = Create("BodyAngularVelocity")({
  765. P = 3000,
  766. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  767. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  768. Parent = hit
  769. })
  770. game:GetService("Debris"):AddItem(bodvol, 0.5)
  771. game:GetService("Debris"):AddItem(rl, 0.5)
  772. elseif Type == "Normal" then
  773. local vp = Create("BodyVelocity")({
  774. P = 500,
  775. maxForce = Vector3.new(math.huge, 0, math.huge),
  776. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  777. })
  778. if knockback > 0 then
  779. vp.Parent = hit.Parent.Torso
  780. end
  781. game:GetService("Debris"):AddItem(vp, 0.5)
  782. elseif Type == "Up" then
  783. local bodyVelocity = Create("BodyVelocity")({
  784. velocity = Vector3.new(0, 20, 0),
  785. P = 5000,
  786. maxForce = Vector3.new(8000, 8000, 8000),
  787. Parent = hit
  788. })
  789. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  790. local bodyVelocity = Create("BodyVelocity")({
  791. velocity = Vector3.new(0, 20, 0),
  792. P = 5000,
  793. maxForce = Vector3.new(8000, 8000, 8000),
  794. Parent = hit
  795. })
  796. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  797. elseif Type == "Leech" then
  798. local hum = hit.Parent.Humanoid
  799. if hum ~= nil then
  800. for i = 0, 2 do
  801. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  802. end
  803. Humanoid.Health = Humanoid.Health + 10
  804. end
  805. elseif Type == "UpKnock" then
  806. local hum = hit.Parent.Humanoid
  807. hum.PlatformStand = true
  808. if hum ~= nil then
  809. hitr = true
  810. end
  811. coroutine.resume(coroutine.create(function(HHumanoid)
  812. swait(5)
  813. HHumanoid.PlatformStand = false
  814. hitr = false
  815. end), hum)
  816. local bodyVelocity = Create("BodyVelocity")({
  817. velocity = Vector3.new(0, 20, 0),
  818. P = 5000,
  819. maxForce = Vector3.new(8000, 8000, 8000),
  820. Parent = hit
  821. })
  822. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  823. local bodyVelocity = Create("BodyVelocity")({
  824. velocity = Vector3.new(0, 20, 0),
  825. P = 5000,
  826. maxForce = Vector3.new(8000, 8000, 8000),
  827. Parent = hit
  828. })
  829. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  830. elseif Type == "Snare" then
  831. local bp = Create("BodyPosition")({
  832. P = 2000,
  833. D = 100,
  834. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  835. position = hit.Parent.Torso.Position,
  836. Parent = hit.Parent.Torso
  837. })
  838. game:GetService("Debris"):AddItem(bp, 1)
  839. elseif Type == "Slashnare" then
  840. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  841. for i = 1, math.random(4, 5) do
  842. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  843. end
  844. local bp = Create("BodyPosition")({
  845. P = 2000,
  846. D = 100,
  847. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  848. position = hit.Parent.Torso.Position,
  849. Parent = hit.Parent.Torso
  850. })
  851. game:GetService("Debris"):AddItem(bp, 1)
  852. elseif Type == "Spike" then
  853. CreateBigIceSword(hit.Parent.Torso.CFrame)
  854. local bp = Create("BodyPosition")({
  855. P = 2000,
  856. D = 100,
  857. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  858. position = hit.Parent.Torso.Position,
  859. Parent = hit.Parent.Torso
  860. })
  861. game:GetService("Debris"):AddItem(bp, 1)
  862. elseif Type == "Freeze" then
  863. local BodPos = Create("BodyPosition")({
  864. P = 50000,
  865. D = 1000,
  866. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  867. position = hit.Parent.Torso.Position,
  868. Parent = hit.Parent.Torso
  869. })
  870. local BodGy = Create("BodyGyro")({
  871. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  872. P = 20000,
  873. Parent = hit.Parent.Torso,
  874. cframe = hit.Parent.Torso.CFrame
  875. })
  876. hit.Parent.Torso.Anchored = true
  877. coroutine.resume(coroutine.create(function(Part)
  878. swait(1.5)
  879. Part.Anchored = false
  880. end), hit.Parent.Torso)
  881. game:GetService("Debris"):AddItem(BodPos, 3)
  882. game:GetService("Debris"):AddItem(BodGy, 3)
  883. end
  884. local debounce = Create("BoolValue")({
  885. Name = "DebounceHit",
  886. Parent = hit.Parent,
  887. Value = true
  888. })
  889. game:GetService("Debris"):AddItem(debounce, Delay)
  890. c = Instance.new("ObjectValue")
  891. c.Name = "creator"
  892. c.Value = Player
  893. c.Parent = h
  894. game:GetService("Debris"):AddItem(c, 0.5)
  895. end
  896. end
  897. function ShowDamage(Pos, Text, Time, Color)
  898. local Rate = 0.1
  899. local Pos = Pos or Vector3.new(0, 0, 0)
  900. local Text = Text or ""
  901. local Time = Time or 2
  902. local Color = Color or Color3.new(1, 0, 1)
  903. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  904. EffectPart.Anchored = true
  905. local BillboardGui = Create("BillboardGui")({
  906. Size = UDim2.new(3, 0, 3, 0),
  907. Adornee = EffectPart,
  908. Parent = EffectPart
  909. })
  910. local TextLabel = Create("TextLabel")({
  911. BackgroundTransparency = 1,
  912. Size = UDim2.new(1, 0, 1, 0),
  913. Text = Text,
  914. TextColor3 = Color3.new(1,1,1),
  915. TextStrokeColor3 = Color3.new(0,0,0),
  916. TextStrokeTransparency = 0.25,
  917. TextScaled = true,
  918. Font = Enum.Font.Fantasy,
  919. TextSize = 24,
  920. Parent = BillboardGui
  921. })
  922. game.Debris:AddItem(EffectPart, Time + 0.1)
  923. EffectPart.Parent = game:GetService("Workspace")
  924. delay(0, function()
  925. local Frames = Time / Rate
  926. for Frame = 1, Frames do
  927. swait(Rate)
  928. local Percent = Frame / Frames
  929. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent*2, 0)
  930. TextLabel.TextTransparency = Percent
  931. TextLabel.TextStrokeTransparency = Percent
  932. end
  933. if EffectPart and EffectPart.Parent then
  934. EffectPart:Destroy()
  935. end
  936. end)
  937. end
  938. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  939. for _, c in pairs(workspace:children()) do
  940. local hum = c:findFirstChild("Humanoid")
  941. if hum ~= nil then
  942. local head = c:findFirstChild("Torso")
  943. if head ~= nil then
  944. local targ = head.Position - Part.Position
  945. local mag = targ.magnitude
  946. if magni >= mag and c.Name ~= Player.Name then
  947. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  948. end
  949. end
  950. end
  951. end
  952. end
  953.  
  954. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  955. for _, c in pairs(workspace:children()) do
  956. local hum = c:findFirstChild("Humanoid")
  957. if hum ~= nil then
  958. local head = c:findFirstChild("Torso")
  959. if head ~= nil then
  960. local targ = head.Position - Part.Position
  961. local mag = targ.magnitude
  962. if magni >= mag and c.Name ~= Player.Name then
  963. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  964. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  965. end
  966. end
  967. end
  968. end
  969. end
  970.  
  971. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  972. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  973. end
  974.  
  975. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  976. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  977. prt.Anchored=true
  978. prt.CFrame=cframe
  979. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  980. --http://www.roblox.com/asset/?id=4770560
  981. game:GetService("Debris"):AddItem(prt,2)
  982. CF=prt.CFrame
  983. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  984. for i=0,1,0.2 do
  985. wait()
  986. Part.CFrame=CF*cf(0,0,-0.4)
  987. end
  988. for i=0,1,delay do
  989. wait()
  990. --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)
  991. Mesh.Scale=Mesh.Scale
  992. end
  993. for i=0,1,0.1 do
  994. wait()
  995. Part.Transparency=i
  996. end
  997. Part.Parent=nil
  998. end),prt,msh,CF)
  999. end
  1000.  
  1001. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1002. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1003. prt.Anchored=true
  1004. prt.Material = "Neon"
  1005. prt.CFrame=cframe
  1006. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1007. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1008. game:GetService("Debris"):AddItem(prt,5)
  1009. coroutine.resume(coroutine.create(function(Part,Mesh)
  1010. for i=0,1,delay do
  1011. swait()
  1012. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1013. Part.Transparency=i
  1014. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1015. end
  1016. Part.Parent=nil
  1017. end),prt,msh)
  1018. end
  1019.  
  1020. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1021. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1022. prt.Anchored=true
  1023. prt.Material = "Neon"
  1024. prt.CFrame=cframe
  1025. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1026. game:GetService("Debris"):AddItem(prt,5)
  1027. coroutine.resume(coroutine.create(function(Part,Mesh)
  1028. local rtype = rottype
  1029. for i=0,1,delay do
  1030. swait()
  1031. if rtype == 1 then
  1032. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1033. elseif rtype == 2 then
  1034. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1035. end
  1036. Part.Transparency=i
  1037. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1038. end
  1039. Part.Parent=nil
  1040. end),prt,msh)
  1041. end
  1042.  
  1043. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1044. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1045. prt.Anchored=true
  1046. prt.CFrame=cframe
  1047. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1048. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1049. game:GetService("Debris"):AddItem(prt,5)
  1050. coroutine.resume(coroutine.create(function(Part,Mesh)
  1051. for i=0,1,delay do
  1052. wait()
  1053. Part.Transparency=i
  1054. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1055. end
  1056. Part.Parent=nil
  1057. end),prt,msh)
  1058. end
  1059.  
  1060. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1061. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1062. prt.Anchored=true
  1063. prt.Material = "Neon"
  1064. prt.CFrame=cframe
  1065. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1066. game:GetService("Debris"):AddItem(prt,5)
  1067. coroutine.resume(coroutine.create(function(Part,Mesh)
  1068. local rtype = rottype
  1069. for i=0,1,delay do
  1070. swait()
  1071. if rtype == 1 then
  1072. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1073. elseif rtype == 2 then
  1074. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1075. end
  1076. Part.Transparency=i
  1077. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1078. end
  1079. Part.Parent=nil
  1080. end),prt,msh)
  1081. end
  1082.  
  1083. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1084. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1085. prt.Anchored=true
  1086. prt.Material = "Neon"
  1087. prt.CFrame=cframe
  1088. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1089. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1090. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1091. game:GetService("Debris"):AddItem(prt,5)
  1092. coroutine.resume(coroutine.create(function(Part,Mesh)
  1093. local rtype = rottype
  1094. for i=0,1,delay do
  1095. swait()
  1096. if rtype == 1 then
  1097. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1098. elseif rtype == 2 then
  1099. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1100. end
  1101. dec.Transparency=i
  1102. dec2.Transparency=i
  1103. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1104. end
  1105. Part.Parent=nil
  1106. end),prt,msh)
  1107. end
  1108.  
  1109. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1110. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1111. prt.Anchored=true
  1112. prt.Material = "Neon"
  1113. prt.CFrame=cframe
  1114. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1115. game:GetService("Debris"):AddItem(prt,5)
  1116. coroutine.resume(coroutine.create(function(Part,Mesh)
  1117. local rtype = rottype
  1118. for i=0,1,delay do
  1119. swait()
  1120. if rtype == 1 then
  1121. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1122. elseif rtype == 2 then
  1123. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1124. end
  1125. prt.Transparency=i
  1126. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1127. end
  1128. Part.Parent=nil
  1129. end),prt,msh)
  1130. end
  1131.  
  1132. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1133. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1134. prt.Anchored=true
  1135. prt.Material = "Neon"
  1136. prt.CFrame=cframe
  1137. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1138. game:GetService("Debris"):AddItem(prt,5)
  1139. coroutine.resume(coroutine.create(function(Part,Mesh)
  1140. local rtype = rottype
  1141. for i=0,1,delay do
  1142. swait()
  1143. if rtype == 1 then
  1144. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1145. elseif rtype == 2 then
  1146. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1147. end
  1148. prt.Transparency=i
  1149. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1150. end
  1151. Part.Parent=nil
  1152. end),prt,msh)
  1153. end
  1154.  
  1155. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1156. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1157. prt.Anchored=true
  1158. prt.Material = "Neon"
  1159. prt.CFrame=cframe
  1160. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1161. game:GetService("Debris"):AddItem(prt,5)
  1162. coroutine.resume(coroutine.create(function(Part,Mesh)
  1163. local rtype = rottype
  1164. for i=0,1,delay do
  1165. swait()
  1166. if rtype == 1 then
  1167. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1168. elseif rtype == 2 then
  1169. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1170. end
  1171. prt.Transparency=i
  1172. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1173. end
  1174. Part.Parent=nil
  1175. end),prt,msh)
  1176. end
  1177.  
  1178. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1179. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1180. prt.Anchored=true
  1181. prt.Material = "Neon"
  1182. prt.CFrame=cframe
  1183. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1184. game:GetService("Debris"):AddItem(prt,5)
  1185. coroutine.resume(coroutine.create(function(Part,Mesh)
  1186. local rtype = rottype
  1187. for i=0,1,delay do
  1188. swait()
  1189. if rtype == 1 then
  1190. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1191. elseif rtype == 2 then
  1192. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1193. end
  1194. prt.Transparency=i
  1195. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1196. end
  1197. Part.Parent=nil
  1198. end),prt,msh)
  1199. end
  1200.  
  1201. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1202. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1203. prt.Anchored=false
  1204. prt.CFrame=cframe
  1205. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1206. local wld=weld(prt,prt,Parent,cframe)
  1207. game:GetService("Debris"):AddItem(prt,5)
  1208. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1209. for i=0,1,delay do
  1210. wait()
  1211. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1212. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1213. Part.Transparency=i
  1214. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1215. end
  1216. Part.Parent=nil
  1217. end),prt,msh,wld)
  1218. end
  1219.  
  1220. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1221. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1222. prt.Anchored=false
  1223. prt.CFrame=cframe
  1224. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1225. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1226. game:GetService("Debris"):AddItem(prt,5)
  1227. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1228. for i=0,1,delay do
  1229. wait()
  1230. Weld.C0=euler(i*20,0,0)
  1231. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1232. Part.Transparency=i
  1233. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1234. end
  1235. Part.Parent=nil
  1236. end),prt,msh,wld)
  1237. end
  1238.  
  1239. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1240. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1241. prt.Anchored=true
  1242. prt.CFrame=cframe
  1243. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1244. game:GetService("Debris"):AddItem(prt,2)
  1245. coroutine.resume(coroutine.create(function(Part,Mesh)
  1246. for i=0,1,delay do
  1247. wait()
  1248. Part.CFrame=Part.CFrame
  1249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1250. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1251. prt2.Anchored=true
  1252. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1253. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1254. game:GetService("Debris"):AddItem(prt2,2)
  1255. coroutine.resume(coroutine.create(function(Part,Mesh)
  1256. for i=0,1,0.1 do
  1257. wait()
  1258. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1259. end
  1260. Part.Parent=nil
  1261. end),prt2,msh2)
  1262. end
  1263. for i=0,1,delay*2 do
  1264. wait()
  1265. Part.CFrame=Part.CFrame
  1266. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1267. end
  1268. Part.Parent=nil
  1269. end),prt,msh)
  1270. end
  1271.  
  1272. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1273. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1274. prt.Anchored=true
  1275. prt.CFrame=cframe
  1276. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1277. game:GetService("Debris"):AddItem(prt,2)
  1278. coroutine.resume(coroutine.create(function(Part,Mesh)
  1279. for i=0,1,delay do
  1280. wait()
  1281. Part.CFrame=Part.CFrame
  1282. Part.Transparency=i
  1283. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1284. end
  1285. Part.Parent=nil
  1286. end),prt,msh)
  1287. end
  1288.  
  1289. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1290. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1291. prt.Anchored=true
  1292. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1293. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1294. game:GetService("Debris"):AddItem(prt,2)
  1295. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1296. CF=Part.CFrame
  1297. Numbb=0
  1298. randnumb=math.random()/10
  1299. rand1=math.random()/10
  1300. for i=0,1,rand1 do
  1301. wait()
  1302. CF=CF*cf(0,math.random()/2,0)
  1303. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1304. Part.CFrame=CF*euler(Numbb,0,0)
  1305. Part.Transparency=i
  1306. Numbb=Numbb+randnumb
  1307. end
  1308. Part.Parent=nil
  1309. end),prt,CF,Numbb,randnumb)
  1310. end
  1311.  
  1312. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1313. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1314. prt.Anchored=true
  1315. prt.CFrame=cframe
  1316. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1317. game:GetService("Debris"):AddItem(prt,5)
  1318. coroutine.resume(coroutine.create(function(Part,Mesh)
  1319. for i=0,1,delay do
  1320. wait()
  1321. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1322. Part.Transparency=i
  1323. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1324. end
  1325. Part.Parent=nil
  1326. end),prt,msh)
  1327. end
  1328.  
  1329. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1331. prt.Anchored=true
  1332. prt.CFrame=cframe
  1333. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1334. game:GetService("Debris"):AddItem(prt,2)
  1335. coroutine.resume(coroutine.create(function(Part,Mesh)
  1336. for i=0,1,delay do
  1337. wait()
  1338. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1339. Part.Transparency=i
  1340. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1341. end
  1342. Part.Parent=nil
  1343. end),prt,msh)
  1344. end
  1345.  
  1346. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1347. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1348. prt.Anchored=true
  1349. prt.CFrame=cframe*cf(x,y,z)
  1350. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1351. game:GetService("Debris"):AddItem(prt,5)
  1352. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1353. local num=math.random()
  1354. local num2=math.random(-3,2)+math.random()
  1355. local numm=0
  1356. for i=0,1,delay*2 do
  1357. swait()
  1358. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1359. Part.Transparency=i
  1360. numm=numm+0.01
  1361. end
  1362. Part.Parent=nil
  1363. Mesh.Parent=nil
  1364. end),prt,msh,x,y,z)
  1365. end
  1366.  
  1367. function dmgstart(dmg,what)
  1368. hitcon = what.Touched:connect(function(hit)
  1369. local hum = hit.Parent:FindFirstChild("Humanoid")
  1370. if hum and not hum:IsDescendantOf(Character) then
  1371. hum:TakeDamage(dmg)
  1372. end
  1373. end)
  1374. end
  1375.  
  1376. function dmgstop()
  1377. hitcon:disconnect()
  1378. end
  1379.  
  1380. function Cloak()
  1381. Face.Parent=nil
  1382. cloaked=true
  1383. for _,v in pairs(Torso.Parent:children()) do
  1384. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1385. coroutine.resume(coroutine.create(function()
  1386. for i=0,1,0.2 do
  1387. wait()
  1388. v.Transparency=i
  1389. end
  1390. v.Transparency=1
  1391. end))
  1392. end
  1393. if v.className=="Hat" then
  1394. hatp=v.Handle
  1395. coroutine.resume(coroutine.create(function(derp)
  1396. for i=0,1,0.2 do
  1397. wait()
  1398. derp.Transparency=i
  1399. end
  1400. derp.Transparency=1
  1401. end),hatp)
  1402. end
  1403. end
  1404. for _,v in pairs(m:children()) do
  1405. if v.className=="Part" then
  1406. coroutine.resume(coroutine.create(function()
  1407. for i=0,1,0.2 do
  1408. wait()
  1409. v.Transparency=i
  1410. end
  1411. v.Transparency=1
  1412. end))
  1413. end
  1414. end
  1415. end
  1416.  
  1417. function UnCloak()
  1418. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1419. Face.Parent=Head
  1420. cloaked=false
  1421. for _,v in pairs(Torso.Parent:children()) do
  1422. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1423. coroutine.resume(coroutine.create(function()
  1424. for i=0,1,0.1 do
  1425. wait()
  1426. v.Transparency=v.Transparency-0.1
  1427. end
  1428. v.Transparency=0
  1429. end))
  1430. end
  1431. if v.className=="Hat" then
  1432. hatp=v.Handle
  1433. coroutine.resume(coroutine.create(function(derp)
  1434. for i=0,1,0.1 do
  1435. wait()
  1436. derp.Transparency=derp.Transparency-0.1
  1437. end
  1438. derp.Transparency=0
  1439. end),hatp)
  1440. end
  1441. end
  1442. for _,v in pairs(m:children()) do
  1443. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1444. coroutine.resume(coroutine.create(function()
  1445. for i=0,1,0.1 do
  1446. wait()
  1447. v.Transparency=v.Transparency-0.1
  1448. end
  1449. v.Transparency=0
  1450. end))
  1451. v.Transparency=0
  1452. end
  1453. end
  1454. end
  1455.  
  1456. local origcolor = BrickColor.new("Dark indigo")
  1457. ---- This section of explosions.
  1458. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1459. local expart = Instance.new("Part",char)
  1460. local expart2 = Instance.new("Part",char)
  1461. local rin = Instance.new("Part",char)
  1462. local rin2 = Instance.new("Part",char)
  1463. local partMesh = Instance.new("SpecialMesh",expart)
  1464. partMesh.MeshType = "Sphere"
  1465. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1466. partMesh2.MeshType = "Sphere"
  1467. local partMesh3 = Instance.new("SpecialMesh",rin)
  1468. partMesh3.MeshType = "Brick"
  1469. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1470. partMesh4.MeshType = "Brick"
  1471. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1472. partMesh.Scale = vt(rad,rad,rad)
  1473. expart.Size = vt(1,1,1)
  1474. expart.Transparency = 1
  1475. expart.Anchored = true
  1476. expart.Material = "Neon"
  1477. expart.BrickColor = bc("White")
  1478. expart.CFrame = par.CFrame
  1479. partMesh2.Scale = vt(rad,rad,rad)
  1480. expart2.Size = vt(1.15,1.15,1.15)
  1481. expart2.Transparency = 0.75
  1482. expart2.Anchored = true
  1483. expart2.Material = "Glass"
  1484. expart2.BrickColor = par.BrickColor
  1485. expart2.CFrame = par.CFrame
  1486. rin.Size = vt(1.15,1.15,1.15)
  1487. rin.Transparency = 1
  1488. rin.Anchored = true
  1489. rin.Material = "Neon"
  1490. rin.BrickColor = par.BrickColor
  1491. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1492. rin2.Size = vt(1.15,1.15,1.15)
  1493. rin2.Transparency = 1
  1494. rin2.Anchored = true
  1495. rin2.Material = "Neon"
  1496. rin2.BrickColor = par.BrickColor
  1497. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1498. partMesh3.Scale = vt(0,1,0)
  1499. partMesh4.Scale = vt(0,1,0)
  1500. local dec2 = Instance.new("Decal", rin)
  1501. dec2.Face = "Top"
  1502. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1503. dec2.Parent = rin
  1504. local dec2b = dec2:Clone()
  1505. dec2b.Face = "Bottom"
  1506. dec2b.Parent = rin
  1507.  
  1508. local dec2a = Instance.new("Decal", rin2)
  1509. dec2a.Face = "Top"
  1510. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1511. dec2a.Parent = rin2
  1512. local dec2ab = dec2a:Clone()
  1513. dec2ab.Face = "Bottom"
  1514. dec2ab.Parent = rin2
  1515. expart.CanCollide = false
  1516. expart2.CanCollide = false
  1517. rin.CanCollide = false
  1518. rin2.CanCollide = false
  1519. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1520. local value = 1*rad/6.5
  1521. for i = 0, 199 do
  1522. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1523. expart.CFrame = expart.CFrame
  1524. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1525. expart2.CFrame = expart.CFrame
  1526. value = value - 0.035*rad/30
  1527. if value < 7.5 then
  1528. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1529. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1530. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1531. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1532. end
  1533. if value < 0 then
  1534. dec2.Transparency = dec2.Transparency + 0.025
  1535. dec2a.Transparency = dec2a.Transparency + 0.025
  1536. dec2b.Transparency = dec2b.Transparency + 0.025
  1537. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1538. expart.Transparency = expart.Transparency + 0.025
  1539. expart2.Transparency = expart2.Transparency + 0.025
  1540. rin.Transparency = rin.Transparency + 0.025
  1541. rin2.Transparency = rin2.Transparency + 0.025
  1542. end
  1543. swait()
  1544. end
  1545. game:GetService("Debris"):AddItem(expart, 1)
  1546. game:GetService("Debris"):AddItem(expart2, 1)
  1547. game:GetService("Debris"):AddItem(rin, 1)
  1548. game:GetService("Debris"):AddItem(rin2, 1)
  1549. end
  1550.  
  1551. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1552. local expart = Instance.new("Part",char)
  1553. local expart2 = Instance.new("Part",char)
  1554. local partMesh = Instance.new("SpecialMesh",expart)
  1555. partMesh.MeshType = "Sphere"
  1556. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1557. partMesh2.MeshType = "Sphere"
  1558. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1559. partMesh.Scale = vt(rad,rad,rad)
  1560. expart.Size = vt(1,1,1)
  1561. expart.Transparency = 0
  1562. expart.Anchored = true
  1563. expart.Material = "Neon"
  1564. expart.BrickColor = bc("White")
  1565. expart.CFrame = par.CFrame
  1566. partMesh2.Scale = vt(rad,rad,rad)
  1567. expart2.Size = vt(1.15,1.15,1.15)
  1568. expart2.Transparency = 0.5
  1569. expart2.Anchored = true
  1570. expart2.Material = "Neon"
  1571. expart2.BrickColor = par.BrickColor
  1572. expart2.CFrame = par.CFrame
  1573. expart.CanCollide = false
  1574. expart2.CanCollide = false
  1575. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1576. local value = 1*rad/6.5
  1577. for i = 0, 75 do
  1578. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1579. expart.CFrame = expart.CFrame
  1580. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1581. expart2.CFrame = expart.CFrame
  1582. value = value - 0.035*rad/5
  1583. if value < 0 then
  1584. value = 0
  1585. expart.Transparency = expart.Transparency + 0.05
  1586. expart2.Transparency = expart2.Transparency + 0.05
  1587. end
  1588. swait()
  1589. end
  1590. game:GetService("Debris"):AddItem(expart, 1)
  1591. game:GetService("Debris"):AddItem(expart2, 1)
  1592. end
  1593.  
  1594. function AreaDanger(rad,par,mindam,maxdam)
  1595. local expart = Instance.new("Part",char)
  1596. local partMesh = Instance.new("SpecialMesh",expart)
  1597. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1598. partMesh.MeshType = "Sphere"
  1599. partMesh.Scale = vt(rad,rad,rad)
  1600. expart.Size = vt(1,1,1)
  1601. expart.Transparency = 0.5
  1602. expart.Anchored = true
  1603. expart.Material = "Neon"
  1604. expart.CanCollide = false
  1605. expart.BrickColor = par.BrickColor
  1606. expart.CFrame = par.CFrame
  1607. local value = 1*rad/5
  1608. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1609. for i = 0, 14 do
  1610. wait()
  1611. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1612. expart.CFrame = expart.CFrame
  1613. value = value - 0.035*rad
  1614. if value < 0 then
  1615. value = 0
  1616. end
  1617. end
  1618. wait(0.25)
  1619. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1620. wait(0.5)
  1621. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1622. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1623. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1624. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1625. for i = 0, 14 do
  1626. wait()
  1627. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1628. expart.CFrame = expart.CFrame
  1629. value = value - 0.035*rad/2
  1630. end
  1631. expart.Transparency = 1
  1632. game:GetService("Debris"):AddItem(expart, 5)
  1633. end
  1634.  
  1635. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1636. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1637. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1638. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1639. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1640. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1641. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1642. for i = 0, 24 do
  1643. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1644. end
  1645. for i = 0, 24 do
  1646. local expart = Instance.new("Part",char)
  1647. expart.Transparency = 1
  1648. expart.Anchored = true
  1649. expart.CanCollide = false
  1650. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1651. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1652. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1653. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1654. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1655. for i = 0, 9 do
  1656. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1657. end
  1658. game:GetService("Debris"):AddItem(expart, 2)
  1659. wait(0.1)
  1660. end
  1661. end
  1662.  
  1663. function EXterPlosion(par)
  1664. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1665. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1666. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1667. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1668. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1669. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1670. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1671. for i = 0, 24 do
  1672. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1673. end
  1674. for i = 0, 24 do
  1675. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1676. end
  1677. end
  1678. ----
  1679. function bullit()
  1680. attack = true
  1681. for i = 0,1,0.1 do
  1682. swait()
  1683. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1684. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.3)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.3)
  1688. end
  1689. CFuncs["Sound"].Create("rbxassetid://558640653", sorb, 1.5, 1)
  1690. local a = Instance.new("Part",Character)
  1691. a.Name = "Direction"
  1692. a.Anchored = true
  1693. a.BrickColor = bc("Bright red")
  1694. a.Material = "Neon"
  1695. a.Transparency = 1
  1696. a.CanCollide = false
  1697. local ray = Ray.new(
  1698. sorb.CFrame.p, -- origin
  1699. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1700. )
  1701. local ignore = Character
  1702. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1703. a.BottomSurface = 10
  1704. a.TopSurface = 10
  1705. local distance = (root.CFrame.p - position).magnitude
  1706. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1707. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1708. local lb = Instance.new("Part")
  1709. lb.Parent = char
  1710. lb.BrickColor = origcolor
  1711. lb.CanCollide = false
  1712. lb.Material = "Glass"
  1713. lb.Anchored = true
  1714. lb.TopSurface = 0
  1715. lb.BottomSurface = 0
  1716. lb.Transparency = 0.75
  1717. lb.Size = vt(0.5,0.5,0.5)
  1718. lb.CFrame = a.CFrame
  1719. lb.Anchored = false
  1720. local thingery = Instance.new("SpecialMesh",lb)
  1721. thingery.MeshType = "Sphere"
  1722. thingery.Scale = vt(20,20,20)
  1723. game:GetService("Debris"):AddItem(lb, 10)
  1724. local bv = Instance.new("BodyVelocity")
  1725. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1726. bv.velocity = a.CFrame.lookVector*150
  1727. bv.Parent = lb
  1728. local hitted = false
  1729. game:GetService("Debris"):AddItem(a, 0.1)
  1730. wait(0.01)
  1731. lb.Touched:connect(function(hit)
  1732. if hitted == false then
  1733. hitted = true
  1734. lb.Anchored = true
  1735. lb.Transparency = 1
  1736. Explode(7.5,lb,1,1,10,15)
  1737. end
  1738. end)
  1739. for i = 0,2,0.1 do
  1740. swait()
  1741. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1742. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1743. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1744. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1745. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1746. end
  1747. attack = false
  1748. end
  1749.  
  1750.  
  1751. function RingEffect(pos,startsize,size,col)
  1752. local lb = Instance.new("Part")
  1753. lb.Parent = char
  1754. lb.BrickColor = col
  1755. lb.CanCollide = false
  1756. lb.Material = "Neon"
  1757. lb.Anchored = true
  1758. lb.TopSurface = 0
  1759. lb.BottomSurface = 0
  1760. lb.Transparency = 1
  1761. lb.Size = vt(1,1,1)
  1762. lb.CFrame = pos
  1763. local thingery = Instance.new("SpecialMesh",lb)
  1764. thingery.MeshType = "Brick"
  1765. thingery.Scale = vt(startsize,0.1,startsize)
  1766. local dec2 = Instance.new("Texture", lb)
  1767. dec2.Face = "Top"
  1768. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1769. dec2.Color3 = lb.Color
  1770. dec2.Parent = lb
  1771. dec2.StudsPerTileU = startsize
  1772. dec2.StudsPerTileV = startsize
  1773. local dec2b = dec2:Clone()
  1774. dec2b.Face = "Bottom"
  1775. dec2b.Parent = lb
  1776. local randomrot = math.random(1,2)
  1777. coroutine.resume(coroutine.create(function()
  1778. for i = 0, 19 do
  1779. swait()
  1780. if randomrot == 1 then
  1781. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1782. elseif randomrot == 2 then
  1783. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1784. end
  1785. dec2.Transparency = dec2.Transparency + 0.05
  1786. dec2b.Transparency = dec2b.Transparency + 0.05
  1787. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  1788. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  1789. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  1790. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  1791. thingery.Scale = thingery.Scale + vt(size,0,size)
  1792. end
  1793. lb:Destroy()
  1794. end))
  1795. end
  1796.  
  1797. function SlowRingEffect(pos,startsize,size,col)
  1798. local lb = Instance.new("Part")
  1799. lb.Parent = char
  1800. lb.BrickColor = col
  1801. lb.CanCollide = false
  1802. lb.Material = "Neon"
  1803. lb.Anchored = true
  1804. lb.TopSurface = 0
  1805. lb.BottomSurface = 0
  1806. lb.Transparency = 1
  1807. lb.Size = vt(1,1,1)
  1808. lb.CFrame = pos
  1809. local thingery = Instance.new("SpecialMesh",lb)
  1810. thingery.MeshType = "Brick"
  1811. thingery.Scale = vt(startsize,0.1,startsize)
  1812. local dec2 = Instance.new("Decal", lb)
  1813. dec2.Face = "Top"
  1814. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1815. dec2.Color3 = lb.Color
  1816. dec2.Parent = lb
  1817. local dec2b = dec2:Clone()
  1818. dec2b.Face = "Bottom"
  1819. dec2b.Parent = lb
  1820. local randomrot = math.random(1,2)
  1821. coroutine.resume(coroutine.create(function()
  1822. for i = 0, 49 do
  1823. swait()
  1824. if randomrot == 1 then
  1825. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1826. elseif randomrot == 2 then
  1827. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1828. end
  1829. dec2.Transparency = dec2.Transparency + 0.02
  1830. dec2b.Transparency = dec2b.Transparency + 0.02
  1831. thingery.Scale = thingery.Scale + vt(size,0,size)
  1832. end
  1833. lb:Destroy()
  1834. end))
  1835. end
  1836.  
  1837.  
  1838. function groundringaa(pos)
  1839. local rng = Instance.new("Part", char)
  1840. rng.Anchored = true
  1841. rng.BrickColor = origcolor
  1842. rng.CanCollide = false
  1843. rng.FormFactor = 3
  1844. rng.Name = "Ring"
  1845. rng.Size = Vector3.new(1, 1, 1)
  1846. rng.Transparency = 1
  1847. rng.TopSurface = 0
  1848. rng.BottomSurface = 0
  1849. rng.CFrame = pos
  1850. local rngm = Instance.new("SpecialMesh", rng)
  1851. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1852. rngm.Scale = Vector3.new(100,100,5)
  1853. local scaler2 = -10/2
  1854. coroutine.resume(coroutine.create(function()
  1855. for i = 0,10,0.1 do
  1856. swait()
  1857. scaler2 = scaler2 + 0.1/2
  1858. rng.Transparency = rng.Transparency - 0.01
  1859. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1860. end
  1861. rng:Destroy()
  1862. end))
  1863. end
  1864.  
  1865. function groundringbb(pos)
  1866. local rng = Instance.new("Part", char)
  1867. rng.Anchored = true
  1868. rng.BrickColor = origcolor
  1869. rng.CanCollide = false
  1870. rng.FormFactor = 3
  1871. rng.Name = "Ring"
  1872. rng.Size = Vector3.new(1, 1, 1)
  1873. rng.Transparency = 0
  1874. rng.TopSurface = 0
  1875. rng.BottomSurface = 0
  1876. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1877. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1878. local rngm = Instance.new("SpecialMesh", rng)
  1879. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1880. rngm.Scale = Vector3.new(0,0,5)
  1881. local scaler2 = 10
  1882. coroutine.resume(coroutine.create(function()
  1883. for i = 0,10*2,0.1 do
  1884. swait()
  1885. scaler2 = scaler2 - 0.1/2
  1886. rng.Transparency = rng.Transparency + 0.005
  1887. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  1888. end
  1889. rng:Destroy()
  1890. end))
  1891. end
  1892.  
  1893. function groundglowaa(pos)
  1894. local rng = Instance.new("Part", char)
  1895. rng.Anchored = true
  1896. rng.BrickColor = origcolor
  1897. rng.CanCollide = false
  1898. rng.FormFactor = 3
  1899. rng.Material = "Neon"
  1900. rng.Name = "Ring"
  1901. rng.Size = Vector3.new(1, 1, 1)
  1902. rng.Transparency = 0
  1903. rng.TopSurface = 0
  1904. rng.BottomSurface = 0
  1905. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1906. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1907. local rngm = Instance.new("SpecialMesh", rng)
  1908. rngm.MeshType = "Sphere"
  1909. rngm.Scale = Vector3.new(0,0,25)
  1910. local scaler2 = 10*2
  1911. coroutine.resume(coroutine.create(function()
  1912. for i = 0,10*2,0.1 do
  1913. swait()
  1914. scaler2 = scaler2 - 0.1*2/2
  1915. rng.Transparency = rng.Transparency + 0.005
  1916. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1917. end
  1918. rng:Destroy()
  1919. end))
  1920. end
  1921.  
  1922. function bemaa(pos)
  1923. local rng = Instance.new("Part", char)
  1924. rng.Anchored = true
  1925. rng.BrickColor = origcolor
  1926. rng.CanCollide = false
  1927. rng.FormFactor = 3
  1928. rng.Material = "Neon"
  1929. rng.Name = "Ring"
  1930. rng.Size = Vector3.new(1, 1, 1)
  1931. rng.Transparency = 0
  1932. rng.TopSurface = 0
  1933. rng.BottomSurface = 0
  1934. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1935. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1936. local rngm = Instance.new("SpecialMesh", rng)
  1937. rngm.MeshType = "Sphere"
  1938. rngm.Scale = Vector3.new(0,0,10000)
  1939. local scaler2 = 1
  1940. coroutine.resume(coroutine.create(function()
  1941. for i = 0,99,0.1 do
  1942. swait()
  1943. scaler2 = scaler2 - 0.0025
  1944. rng.Transparency = rng.Transparency + 0.0025
  1945. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  1946. end
  1947. rng:Destroy()
  1948. end))
  1949. end
  1950.  
  1951. function bemaashake(pos)
  1952. local rng = Instance.new("Part", char)
  1953. rng.Anchored = true
  1954. rng.BrickColor = origcolor
  1955. rng.CanCollide = false
  1956. rng.FormFactor = 3
  1957. rng.Material = "Neon"
  1958. rng.Name = "Ring"
  1959. rng.Size = Vector3.new(1, 1, 1)
  1960. rng.Transparency = 0
  1961. rng.TopSurface = 0
  1962. rng.BottomSurface = 0
  1963. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1964. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1965. local rngm = Instance.new("SpecialMesh", rng)
  1966. rngm.MeshType = "Sphere"
  1967. local oof = Instance.new("Part",char)
  1968. oof.Parent = rng
  1969. oof.CFrame = rng.CFrame
  1970. oof.CanCollide = false
  1971. oof.Anchored = true
  1972. oof.Transparency = 1
  1973. rngm.Scale = Vector3.new(0,0,10000)
  1974. local scaler2 = 1*10
  1975. coroutine.resume(coroutine.create(function()
  1976. for i = 0,99,0.1 do
  1977. swait()
  1978. scaler2 = scaler2 - 0.0025*10
  1979. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  1980. rng.Transparency = rng.Transparency + 0.0025
  1981. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  1982. end
  1983. rng:Destroy()
  1984. end))
  1985. end
  1986.  
  1987. function groundringlarge(pos)
  1988. local rng = Instance.new("Part", char)
  1989. rng.Anchored = true
  1990. rng.BrickColor = origcolor
  1991. rng.CanCollide = false
  1992. rng.FormFactor = 3
  1993. rng.Name = "Ring"
  1994. rng.Size = Vector3.new(1, 1, 1)
  1995. rng.Transparency = 0
  1996. rng.TopSurface = 0
  1997. rng.BottomSurface = 0
  1998. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1999. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2000. local rngm = Instance.new("SpecialMesh", rng)
  2001. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2002. rngm.Scale = Vector3.new(0,0,5)
  2003. local scaler2 = 10*10
  2004. coroutine.resume(coroutine.create(function()
  2005. for i = 0,10*2,0.1 do
  2006. swait()
  2007. scaler2 = scaler2 - 0.1*10/2
  2008. rng.Transparency = rng.Transparency + 0.005
  2009. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2010. end
  2011. rng:Destroy()
  2012. end))
  2013. end
  2014.  
  2015. function sphere(bonuspeed,type,pos,scale,value,color)
  2016. local type = type
  2017. local rng = Instance.new("Part", char)
  2018. rng.Anchored = true
  2019. rng.BrickColor = color
  2020. rng.CanCollide = false
  2021. rng.FormFactor = 3
  2022. rng.Name = "Ring"
  2023. rng.Material = "Neon"
  2024. rng.Size = Vector3.new(1, 1, 1)
  2025. rng.Transparency = 0
  2026. rng.TopSurface = 0
  2027. rng.BottomSurface = 0
  2028. rng.CFrame = pos
  2029. local rngm = Instance.new("SpecialMesh", rng)
  2030. rngm.MeshType = "Sphere"
  2031. rngm.Scale = scale
  2032. local scaler2 = 1
  2033. if type == "Add" then
  2034. scaler2 = 1*value
  2035. elseif type == "Divide" then
  2036. scaler2 = 1/value
  2037. end
  2038. coroutine.resume(coroutine.create(function()
  2039. for i = 0,10/bonuspeed,0.1 do
  2040. swait()
  2041. if type == "Add" then
  2042. scaler2 = scaler2 - 0.01*value/bonuspeed
  2043. elseif type == "Divide" then
  2044. scaler2 = scaler2 - 0.01/value*bonuspeed
  2045. end
  2046. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2047. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2048. end
  2049. rng:Destroy()
  2050. end))
  2051. end
  2052.  
  2053. function Transition()
  2054. attack = true
  2055. attack = false
  2056. end
  2057.  
  2058. --Transition()
  2059.  
  2060. function FaceMouse()
  2061. Cam = workspace.CurrentCamera
  2062. return {
  2063. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2064. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2065. }
  2066. end
  2067.  
  2068. function outerbeam()
  2069. attack = true
  2070. hum.WalkSpeed = 5
  2071. local trail = Instance.new("ParticleEmitter",sorb2)
  2072. trail.LightEmission = 1
  2073. trail.Color = ColorSequence.new(origcolor.Color)
  2074. trail.Rate = 5000
  2075. trail.Lifetime = NumberRange.new(0.5)
  2076. trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,2,0)})
  2077. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2078. trail.Speed = NumberRange.new(0,0)
  2079. trail.EmissionDirection = "Front"
  2080. trail.Rotation = NumberRange.new(-500,500)
  2081. trail.RotSpeed = NumberRange.new(-500,500)
  2082. local trail2 = Instance.new("ParticleEmitter",sorb2)
  2083. trail2.LightEmission = 1
  2084. trail2.Texture = "rbxassetid://254287058"
  2085. trail2.Color = ColorSequence.new(origcolor.Color)
  2086. trail2.Rate = 25
  2087. trail2.Lifetime = NumberRange.new(1)
  2088. trail2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(1,0,0)})
  2089. trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  2090. trail2.Speed = NumberRange.new(0,0)
  2091. trail2.EmissionDirection = "Front"
  2092. trail2.Rotation = NumberRange.new(-1000,1000)
  2093. trail2.RotSpeed = NumberRange.new(-1000,1000)
  2094. CFuncs["Sound"].Create("rbxassetid://1256695951", sorb2, 1, 1.15)
  2095. for i = 0,10,0.1 do
  2096. swait()
  2097. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,-0.25,BrickColor.new("White"))
  2098. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,0.1,BrickColor.new("Alder"))
  2099. MagicBlock(BrickColor.new("White"),sorb2.CFrame,1.5,1.5,1.5,0.05,0.05,0.05,0.05)
  2100. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.2)
  2101. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.2)
  2102. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.2)
  2103. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.2)
  2104. 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)),.1)
  2105. 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)),.1)
  2106. root.CFrame = FaceMouse()[1]
  2107. end
  2108. for i = 0, 4 do
  2109. wait(0.25)
  2110. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,-0.25,BrickColor.new("White"))
  2111. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,0.1,BrickColor.new("Alder"))
  2112. MagicBlock(BrickColor.new("White"),sorb2.CFrame,1.5,1.5,1.5,0.05,0.05,0.05,0.05)
  2113. root.CFrame = FaceMouse()[1]
  2114. CFuncs["Sound"].Create("rbxassetid://1256695105", sorb2, 1, 1.25)
  2115. local a = Instance.new("Part",Character)
  2116. a.Name = "Direction"
  2117. a.Anchored = true
  2118. a.BrickColor = bc("Bright red")
  2119. a.Material = "Neon"
  2120. a.Transparency = 1
  2121. a.CanCollide = false
  2122. local ray = Ray.new(
  2123. sorb2.CFrame.p, -- origin
  2124. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  2125. )
  2126. local ignore = Character
  2127. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2128. a.BottomSurface = 10
  2129. a.TopSurface = 10
  2130. local distance = (root.CFrame.p - position).magnitude
  2131. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2132. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
  2133. local lb = Instance.new("Part")
  2134. lb.Parent = char
  2135. lb.BrickColor = BrickColor.new("White")
  2136. lb.CanCollide = false
  2137. lb.Material = "Neon"
  2138. lb.Anchored = true
  2139. lb.TopSurface = 0
  2140. lb.BottomSurface = 0
  2141. lb.Transparency = 0.5
  2142. lb.Size = vt(1,1,1)
  2143. lb.CFrame = a.CFrame
  2144. lb.Anchored = false
  2145. local thingery = Instance.new("SpecialMesh",lb)
  2146. thingery.MeshType = "Sphere"
  2147. thingery.Scale = vt(2,2,2)
  2148. game:GetService("Debris"):AddItem(lb, 10)
  2149. local bv = Instance.new("BodyVelocity")
  2150. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2151. bv.velocity = a.CFrame.lookVector*250
  2152. bv.Parent = lb
  2153. local traile = Instance.new("ParticleEmitter",lb)
  2154. traile.LightEmission = 1
  2155. traile.Texture = "rbxassetid://254287058"
  2156. traile.Color = ColorSequence.new(origcolor.Color)
  2157. traile.Rate = 2500
  2158. traile.Lifetime = NumberRange.new(0.5)
  2159. traile.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(1,0,0)})
  2160. traile.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  2161. traile.Speed = NumberRange.new(0,0)
  2162. traile.EmissionDirection = "Front"
  2163. traile.Rotation = NumberRange.new(-1000,1000)
  2164. traile.RotSpeed = NumberRange.new(-1000,1000)
  2165. local trailq = Instance.new("ParticleEmitter",lb)
  2166. trailq.LightEmission = 1
  2167. trailq.Color = ColorSequence.new(Color3.new(1,1,1))
  2168. trailq.Rate = 5000
  2169. trailq.Lifetime = NumberRange.new(0.1)
  2170. trailq.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)})
  2171. trailq.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2172. trailq.Speed = NumberRange.new(0,1)
  2173. trailq.VelocitySpread = 100000
  2174. trailq.LockedToPart = true
  2175. trailq.EmissionDirection = "Front"
  2176. trailq.Rotation = NumberRange.new(-500,500)
  2177. trailq.RotSpeed = NumberRange.new(-500,500)
  2178. local hitted = false
  2179. game:GetService("Debris"):AddItem(a, 0.1)
  2180. wait(0.01)
  2181. lb.Touched:connect(function(hit)
  2182. if hitted == false then
  2183. hitted = true
  2184. lb.Anchored = true
  2185. traile.Enabled = false
  2186. trailq.Enabled = false
  2187. lb.Transparency = 1
  2188. CFuncs["Sound"].Create("rbxassetid://142070127", lb, 2.5, 1)
  2189. sphere(2.25,"Add",lb.CFrame,vt(0,0,0),0.55,origcolor)
  2190. sphere(2.25,"Add",lb.CFrame,vt(0,0,0),0.4,BrickColor.new("White"))
  2191. MagniDamage(lb, 25, 16,24, 0, "Normal")
  2192. for i = 0, 9 do
  2193. RingEffect(lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,3,BrickColor.new("White"))
  2194. RingEffect(lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,6,BrickColor.new("Alder"))
  2195. end
  2196. --Explode(7.5,lb,1,1,10,15)
  2197. end
  2198. end)
  2199. end
  2200. trail.Enabled = false
  2201. game:GetService("Debris"):AddItem(trail, 2)
  2202. trail2.Enabled = false
  2203. game:GetService("Debris"):AddItem(trail2, 3)
  2204. hum.WalkSpeed = 16
  2205. attack = false
  2206. end
  2207.  
  2208. function inpulse()
  2209. attack = true
  2210. hum.WalkSpeed = 0
  2211. CFuncs["Sound"].Create("rbxassetid://569564686", root, 1.5, 1)
  2212. CFuncs["Sound"].Create("rbxassetid://1256698605", root, 0.5, 0.5)
  2213. for i = 0,5,0.1 do
  2214. swait()
  2215. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2216. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2217. RingEffect(sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("Really black"))
  2218. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("Really black"))
  2219. RingEffect(root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),75,math.random(-1,1),origcolor)
  2220. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2221. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2222. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  2223. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  2224. 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)),.1)
  2225. 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)),.1)
  2226. end
  2227. CFuncs["Sound"].Create("rbxassetid://621522790", root, 4, 1)
  2228. CFuncs["Sound"].Create("rbxassetid://533243953", root, 6, 1)
  2229. CFuncs["Sound"].Create("rbxassetid://621522959", root, 0.25, 1)
  2230. sphere(1,"Add",root.CFrame,vt(60,60,60),-1.25,BrickColor.new("Really black"))
  2231. sphere(1,"Add",root.CFrame,vt(55,55,55),-1.25,origcolor)
  2232. MagniDamage(root, 45, 10,28, 0, "Normal")
  2233. for i = 0, 9 do
  2234. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(100,150),math.random(-8,-3),BrickColor.new("Really black"))
  2235. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(100,150),math.random(1,2),BrickColor.new("Really black"))
  2236. end
  2237. for i = 0,4,0.1 do
  2238. swait()
  2239. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2240. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2241. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.2)
  2242. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.2)
  2243. 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)),.1)
  2244. 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)),.1)
  2245. end
  2246. hum.WalkSpeed = 16
  2247. attack = false
  2248. end
  2249.  
  2250. function tele()
  2251. attack = true
  2252. hum.WalkSpeed = 0
  2253. CFuncs["Sound"].Create("rbxassetid://569564686", root, 1.5, 1)
  2254. for i = 0,3,0.1 do
  2255. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2256. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2257. RingEffect(sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("White"))
  2258. RingEffect(sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,-0.05,BrickColor.new("White"))
  2259. swait()
  2260. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2261. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  2262. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(20)), 0.2)
  2263. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(-20)), 0.2)
  2264. 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)),.1)
  2265. 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)),.1)
  2266. root.CFrame = FaceMouse()[1]
  2267. end
  2268. CFuncs["Sound"].Create("rbxassetid://1256698605", root, 1, 1)
  2269. sphere(2,"Add",root.CFrame,vt(60/1.5,60/1.5,60/1.5),-0.5,origcolor)
  2270. sphere(2,"Add",root.CFrame,vt(55/1.5,55/1.5,55/1.5),-0.5,BrickColor.new("White"))
  2271. for i = 0, 9 do
  2272. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(50,75),math.random(-4,-2),BrickColor.new("White"))
  2273. end
  2274. wait(0.3325)
  2275. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  2276. CFuncs["Sound"].Create("rbxassetid://533243953", root, 1, 1)
  2277. CFuncs["Sound"].Create("rbxassetid://1256695105", root, 1, 1.25)
  2278. sphere(2,"Add",root.CFrame,vt(0,0,0),0.75,origcolor)
  2279. sphere(2,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
  2280. MagniDamage(root, 28, 15,35, 0, "Normal")
  2281. for i = 0, 9 do
  2282. RingEffect(root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),math.random(25,30),math.random(4,7),BrickColor.new("White"))
  2283. end
  2284. hum.WalkSpeed = 16
  2285. attack = false
  2286. end
  2287.  
  2288. mouse.KeyDown:connect(function(k)
  2289. if k == "z" and attack == false then
  2290. outerbeam()
  2291. end
  2292. if k == "x" and attack == false then
  2293. inpulse()
  2294. end
  2295. if k == "c" and attack == false then
  2296. tele()
  2297. end
  2298. end)
  2299. Humanoid.Animator.Parent = nil
  2300. idleanim=.4
  2301. while true do
  2302. swait()
  2303. sine = sine + change
  2304. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2305. local velderp=RootPart.Velocity.y
  2306. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2307. if equipped==true or equipped==false then
  2308. if attack==false then
  2309. idle=idle+1
  2310. else
  2311. idle=0
  2312. end
  2313. if idle>=500 then
  2314. if attack==false then
  2315. --Sheath()
  2316. end
  2317. end
  2318. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2319. Anim="Jump"
  2320. if attack==false then
  2321. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  2322. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  2323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  2324. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2325. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  2326. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  2327. end
  2328. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2329. Anim="Fall"
  2330. if attack==false then
  2331. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  2332. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  2333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2335. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  2336. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  2337. end
  2338. elseif torvel<1 and hitfloor~=nil then
  2339. Anim="Idle"
  2340. if attack==false then
  2341. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 34))),.1)
  2342. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  2343. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  2344. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  2345. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  2346. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  2347. end
  2348. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2349. Anim="Walk"
  2350. if attack==false then
  2351. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2352. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  2353. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
  2354. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 6))),.1)
  2355. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 75 * math.cos(sine / 6)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 3))),.1)
  2356. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 3))),.1)
  2357. end
  2358. elseif torvel>=22 and hitfloor~=nil then
  2359. Anim="Run"
  2360. if attack==false then
  2361. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  2362. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  2363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  2364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  2365. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  2366. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  2367. end
  2368. end
  2369. end
  2370. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement