Advertisement
bmrx13

finally a new rare for u skiddos

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