Advertisement
Tetezaza1542

Light

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