Advertisement
Mateolr

Untitled

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