Advertisement
DarkScriptZEditors

Loght

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