Advertisement
Dark_EccentricYT

Untitled

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