Advertisement
Dark_EccentricYT

Untitled

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