Advertisement
Tetezaza1542

ถุงมือเทพ?

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