Advertisement
Shizzzle

Nah

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