Advertisement
SuperDragonFost

Untitled

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