Advertisement
memberhero

Lunarist

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