Advertisement
Christoffer07700Extr

Skidisher

Oct 11th, 2019
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 448.35 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,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. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. Player = game:GetService("Players").LocalPlayer
  146. PlayerGui = Player.PlayerGui
  147. Cam = workspace.CurrentCamera
  148. Backpack = Player.Backpack
  149. Character = Player.Character
  150. Humanoid = Character.Humanoid
  151. Mouse = Player:GetMouse()
  152. RootPart = Character["HumanoidRootPart"]
  153. Torso = Character["Torso"]
  154. Head = Character["Head"]
  155. RightArm = Character["Right Arm"]
  156. LeftArm = Character["Left Arm"]
  157. RightLeg = Character["Right Leg"]
  158. LeftLeg = Character["Left Leg"]
  159. RootJoint = RootPart["RootJoint"]
  160. Neck = Torso["Neck"]
  161. RightShoulder = Torso["Right Shoulder"]
  162. LeftShoulder = Torso["Left Shoulder"]
  163. RightHip = Torso["Right Hip"]
  164. LeftHip = Torso["Left Hip"]
  165.  
  166. IT = Instance.new
  167. CF = CFrame.new
  168. VT = Vector3.new
  169. RAD = math.rad
  170. C3 = Color3.new
  171. UD2 = UDim2.new
  172. BRICKC = BrickColor.new
  173. ANGLES = CFrame.Angles
  174. EULER = CFrame.fromEulerAnglesXYZ
  175. COS = math.cos
  176. ACOS = math.acos
  177. SIN = math.sin
  178. ASIN = math.asin
  179. ABS = math.abs
  180. MRANDOM = math.random
  181. FLOOR = math.floor
  182.  
  183. --//=================================\\
  184. --|| USEFUL VALUES
  185. --\\=================================//
  186.  
  187. Animation_Speed = 3
  188. local FORCERESET = false
  189. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  190. local SIZE = 1
  191. local Speed = 16
  192. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  193. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  194. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  195. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  196. local DAMAGEMULTIPLIER = 1
  197. local ANIM = "Idle"
  198. local ATTACK = false
  199. local EQUIPPED = false
  200. local HOLD = false
  201. local COMBO = 1
  202. local Rooted = false
  203. local SINE = 0
  204. local KEYHOLD = false
  205. local CHANGE = 2 / Animation_Speed
  206. local WALKINGANIM = false
  207. local VALUE1 = false
  208. local VALUE2 = false
  209. local ROBLOXIDLEANIMATION = IT("Animation")
  210. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  211. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  212. --ROBLOXIDLEANIMATION.Parent = Humanoid
  213. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  214. WEAPONGUI.Name = "BanishV3Gui"
  215. local Weapon = IT("Folder", Character)
  216. Weapon.Name = "Weapon"
  217. local Weapon2 = IT("Folder", Character)
  218. Weapon2.Name = "Weapon2"
  219. local DeadEye = IT("Folder", Character)
  220. DeadEye.Name = "DeadEye"
  221. local HM = IT("Folder", Character)
  222. HM.Name = "HM"
  223. local Pan = IT("Folder", Character)
  224. Pan.Name = "Pan"
  225. local Pan2 = IT("Folder", Character)
  226. Pan2.Name = "Pan2"
  227. local FaceGradient = IT("Folder", Character)
  228. FaceGradient.Name = "FaceGradient"
  229. local black = IT("Folder", Character)
  230. black.Name = "black"
  231. local Heads = IT("Folder", Character)
  232. Heads.Name = "Heads"
  233. local Effects = IT("Folder", Character)
  234. Effects.Name = "Effects"
  235. local ANIMATOR = Humanoid.Animator
  236. local ANIMATE = Character:FindFirstChild("Animate")
  237. local UNANCHOR = true
  238. local CLOCKLOOP = 0
  239. local CLOCKTARGET = nil
  240. local CLOCKSPEED = 1
  241. script.Parent = WEAPONGUI
  242. local HITFLOOR = nil
  243. local INTRO = false
  244. local INSTANT = false
  245. local LEFTWINGS = {}
  246. local RIGHTWINGS = {}
  247. local BODY = {}
  248. local TOBANISH = {}
  249. script.Parent = PlayerGui
  250.  
  251. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  252. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  253. end
  254.  
  255. function PositiveAngle(NUMBER)
  256. if NUMBER >= 0 then
  257. NUMBER = 0
  258. end
  259. return NUMBER
  260. end
  261.  
  262. function NegativeAngle(NUMBER)
  263. if NUMBER <= 0 then
  264. NUMBER = 0
  265. end
  266. return NUMBER
  267. end
  268.  
  269. function Swait(NUMBER)
  270. if NUMBER == 0 or NUMBER == nil then
  271. ArtificialHB.Event:wait()
  272. else
  273. for i = 1, NUMBER do
  274. ArtificialHB.Event:wait()
  275. end
  276. end
  277. end
  278.  
  279. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  280. local NEWMESH = IT(MESH)
  281. if MESH == "SpecialMesh" then
  282. NEWMESH.MeshType = MESHTYPE
  283. if MESHID ~= "nil" and MESHID ~= "" then
  284. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  285. end
  286. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  287. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  288. end
  289. end
  290. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  291. NEWMESH.Scale = SCALE
  292. NEWMESH.Parent = PARENT
  293. return NEWMESH
  294. end
  295.  
  296. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  297. local NEWPART = IT("Part")
  298. NEWPART.formFactor = FORMFACTOR
  299. NEWPART.Reflectance = REFLECTANCE
  300. NEWPART.Transparency = TRANSPARENCY
  301. NEWPART.CanCollide = false
  302. NEWPART.Locked = true
  303. NEWPART.Anchored = true
  304. if ANCHOR == false then
  305. NEWPART.Anchored = false
  306. end
  307. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  308. NEWPART.Name = NAME
  309. NEWPART.Size = SIZE
  310. NEWPART.Position = Torso.Position
  311. NEWPART.Material = MATERIAL
  312. NEWPART:BreakJoints()
  313. NEWPART.Parent = PARENT
  314. return NEWPART
  315. end
  316.  
  317. local function weldBetween(a, b)
  318. local weldd = Instance.new("ManualWeld")
  319. weldd.Part0 = a
  320. weldd.Part1 = b
  321. weldd.C0 = CFrame.new()
  322. weldd.C1 = b.CFrame:inverse() * a.CFrame
  323. weldd.Parent = a
  324. return weldd
  325. end
  326.  
  327.  
  328. function QuaternionFromCFrame(cf)
  329. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  330. local trace = m00 + m11 + m22
  331. if trace > 0 then
  332. local s = math.sqrt(1 + trace)
  333. local recip = 0.5 / s
  334. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  335. else
  336. local i = 0
  337. if m11 > m00 then
  338. i = 1
  339. end
  340. if m22 > (i == 0 and m00 or m11) then
  341. i = 2
  342. end
  343. if i == 0 then
  344. local s = math.sqrt(m00 - m11 - m22 + 1)
  345. local recip = 0.5 / s
  346. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  347. elseif i == 1 then
  348. local s = math.sqrt(m11 - m22 - m00 + 1)
  349. local recip = 0.5 / s
  350. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  351. elseif i == 2 then
  352. local s = math.sqrt(m22 - m00 - m11 + 1)
  353. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  354. end
  355. end
  356. end
  357.  
  358. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  359. local xs, ys, zs = x + x, y + y, z + z
  360. local wx, wy, wz = w * xs, w * ys, w * zs
  361. local xx = x * xs
  362. local xy = x * ys
  363. local xz = x * zs
  364. local yy = y * ys
  365. local yz = y * zs
  366. local zz = z * zs
  367. 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))
  368. end
  369.  
  370. function QuaternionSlerp(a, b, t)
  371. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  372. local startInterp, finishInterp;
  373. if cosTheta >= 0.0001 then
  374. if (1 - cosTheta) > 0.0001 then
  375. local theta = ACOS(cosTheta)
  376. local invSinTheta = 1 / SIN(theta)
  377. startInterp = SIN((1 - t) * theta) * invSinTheta
  378. finishInterp = SIN(t * theta) * invSinTheta
  379. else
  380. startInterp = 1 - t
  381. finishInterp = t
  382. end
  383. else
  384. if (1 + cosTheta) > 0.0001 then
  385. local theta = ACOS(-cosTheta)
  386. local invSinTheta = 1 / SIN(theta)
  387. startInterp = SIN((t - 1) * theta) * invSinTheta
  388. finishInterp = SIN(t * theta) * invSinTheta
  389. else
  390. startInterp = t - 1
  391. finishInterp = t
  392. end
  393. end
  394. 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
  395. end
  396.  
  397. function Clerp(a, b, t)
  398. local qa = {QuaternionFromCFrame(a)}
  399. local qb = {QuaternionFromCFrame(b)}
  400. local ax, ay, az = a.x, a.y, a.z
  401. local bx, by, bz = b.x, b.y, b.z
  402. local _t = 1 - t
  403. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  404. end
  405.  
  406. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  407. local frame = IT("Frame")
  408. frame.BackgroundTransparency = TRANSPARENCY
  409. frame.BorderSizePixel = BORDERSIZEPIXEL
  410. frame.Position = POSITION
  411. frame.Size = SIZE
  412. frame.BackgroundColor3 = COLOR
  413. frame.BorderColor3 = BORDERCOLOR
  414. frame.Name = NAME
  415. frame.Parent = PARENT
  416. return frame
  417. end
  418.  
  419. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  420. local label = IT("TextLabel")
  421. label.BackgroundTransparency = 1
  422. label.Size = UD2(1, 0, 1, 0)
  423. label.Position = UD2(0, 0, 0, 0)
  424. label.TextColor3 = TEXTCOLOR
  425. label.TextStrokeTransparency = STROKETRANSPARENCY
  426. label.TextTransparency = TRANSPARENCY
  427. label.FontSize = TEXTFONTSIZE
  428. label.Font = TEXTFONT
  429. label.BorderSizePixel = BORDERSIZEPIXEL
  430. label.TextScaled = false
  431. label.Text = TEXT
  432. label.Name = NAME
  433. label.Parent = PARENT
  434. return label
  435. end
  436.  
  437. function NoOutlines(PART)
  438. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  439. end
  440.  
  441. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  442. local NEWWELD = IT(TYPE)
  443. NEWWELD.Part0 = PART0
  444. NEWWELD.Part1 = PART1
  445. NEWWELD.C0 = C0
  446. NEWWELD.C1 = C1
  447. NEWWELD.Parent = PARENT
  448. return NEWWELD
  449. end
  450.  
  451. local S = IT("Sound")
  452. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  453. local NEWSOUND = nil
  454. coroutine.resume(coroutine.create(function()
  455. NEWSOUND = S:Clone()
  456. NEWSOUND.Parent = PARENT
  457. NEWSOUND.Volume = VOLUME
  458. NEWSOUND.Pitch = PITCH
  459. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  460. NEWSOUND:play()
  461. if DOESLOOP == true then
  462. NEWSOUND.Looped = true
  463. else
  464. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  465. NEWSOUND:remove()
  466. end
  467. end))
  468. return NEWSOUND
  469. end
  470.  
  471. function CFrameFromTopBack(at, top, back)
  472. local right = top:Cross(back)
  473. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  474. end
  475.  
  476. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  477. function WACKYEFFECT(Table)
  478. local TYPE = (Table.EffectType or "Sphere")
  479. local SIZE = (Table.Size or VT(1,1,1))
  480. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  481. local TRANSPARENCY = (Table.Transparency or 0)
  482. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  483. local CFRAME = (Table.CFrame or Torso.CFrame)
  484. local MOVEDIRECTION = (Table.MoveToPos or nil)
  485. local ROTATION1 = (Table.RotationX or 0)
  486. local ROTATION2 = (Table.RotationY or 0)
  487. local ROTATION3 = (Table.RotationZ or 0)
  488. local MATERIAL = (Table.Material or "Neon")
  489. local COLOR = (Table.Color or C3(1,1,1))
  490. local TIME = (Table.Time or 45)
  491. local SOUNDID = (Table.SoundID or nil)
  492. local SOUNDPITCH = (Table.SoundPitch or nil)
  493. local SOUNDVOLUME = (Table.SoundVolume or nil)
  494. coroutine.resume(coroutine.create(function()
  495. local PLAYSSOUND = false
  496. local SOUND = nil
  497. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  498. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  499. PLAYSSOUND = true
  500. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  501. end
  502. EFFECT.Color = COLOR
  503. local MSH = nil
  504. if TYPE == "Sphere" then
  505. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  506. elseif TYPE == "Block" then
  507. MSH = IT("BlockMesh",EFFECT)
  508. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  509. elseif TYPE == "Wave" then
  510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  511. elseif TYPE == "Ring" then
  512. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  513. elseif TYPE == "Slash" then
  514. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  515. elseif TYPE == "Round Slash" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  517. elseif TYPE == "Swirl" then
  518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  519. elseif TYPE == "Skull" then
  520. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  521. elseif TYPE == "Crystal" then
  522. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  523. end
  524. if MSH ~= nil then
  525. local MOVESPEED = nil
  526. if MOVEDIRECTION ~= nil then
  527. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  528. end
  529. local GROWTH = SIZE - ENDSIZE
  530. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  531. if TYPE == "Block" then
  532. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  533. else
  534. EFFECT.CFrame = CFRAME
  535. end
  536. for LOOP = 1, TIME+1 do
  537. Swait()
  538. MSH.Scale = MSH.Scale - GROWTH/TIME
  539. if TYPE == "Wave" then
  540. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  541. end
  542. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  543. if TYPE == "Block" then
  544. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  545. else
  546. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  547. end
  548. if MOVEDIRECTION ~= nil then
  549. local ORI = EFFECT.Orientation
  550. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  551. EFFECT.Orientation = ORI
  552. end
  553. end
  554. if PLAYSSOUND == false then
  555. EFFECT:remove()
  556. else
  557. SOUND.Stopped:Connect(function()
  558. EFFECT:remove()
  559. end)
  560. end
  561. else
  562. if PLAYSSOUND == false then
  563. EFFECT:remove()
  564. else
  565. repeat Swait() until SOUND.Playing == false
  566. EFFECT:remove()
  567. end
  568. end
  569. end))
  570. end
  571. for _, c in pairs(Character:GetChildren()) do
  572. if c.ClassName == "Part" then
  573. table.insert(BODY,{c,Character})
  574. for _, q in pairs(c:GetChildren()) do
  575. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  576. table.insert(BODY,{q,c})
  577. end
  578. end
  579. end
  580. end
  581.  
  582. function refit()
  583. Character.Parent = workspace
  584. for e = 1, #BODY do
  585. if BODY[e] ~= nil then
  586. local STUFF = BODY[e]
  587. local PART = STUFF[1]
  588. local PARENT = STUFF[2]
  589. PART.Parent = PARENT
  590. end
  591. end
  592. end
  593.  
  594. function MakeForm(PART,TYPE)
  595. if TYPE == "Cyl" then
  596. local MSH = IT("CylinderMesh",PART)
  597. elseif TYPE == "Ball" then
  598. local MSH = IT("SpecialMesh",PART)
  599. MSH.MeshType = "Sphere"
  600. elseif TYPE == "Wedge" then
  601. local MSH = IT("SpecialMesh",PART)
  602. MSH.MeshType = "Wedge"
  603. end
  604. end
  605.  
  606. function SpawnTrail(FROM,TO,BIG)
  607. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0))
  608. MakeForm(TRAIL,"Cyl")
  609. local DIST = (FROM - TO).Magnitude
  610. if BIG == true then
  611. TRAIL.Size = VT(0.5,DIST,0.5)
  612. else
  613. TRAIL.Size = VT(0.25,DIST,0.25)
  614. end
  615. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  616. coroutine.resume(coroutine.create(function()
  617. for i = 1, 5 do
  618. Swait()
  619. TRAIL.Transparency = TRAIL.Transparency + 0.1
  620. end
  621. TRAIL:remove()
  622. end))
  623. end
  624.  
  625. Debris = game:GetService("Debris")
  626.  
  627. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  628. local DIRECTION = CF(StartPos,EndPos).lookVector
  629. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  630. end
  631.  
  632. function turnto(position)
  633. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  634. end
  635. local asd = Instance.new("ParticleEmitter")
  636. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  637. asd.LightEmission = .1
  638. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  639. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  640. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  641. asd.Transparency = bbb
  642. asd.Size = aaa
  643. asd.ZOffset = .9
  644. asd.Acceleration = Vector3.new(0, -15, 0)
  645. asd.LockedToPart = false
  646. asd.EmissionDirection = "Back"
  647. asd.Lifetime = NumberRange.new(1, 2)
  648. asd.Rotation = NumberRange.new(-100, 100)
  649. asd.RotSpeed = NumberRange.new(-100, 100)
  650. asd.Speed = NumberRange.new(10)
  651. asd.Enabled = false
  652. asd.VelocitySpread = 999
  653.  
  654. function getbloody(victim,amount)
  655. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  656. PART.CFrame = victim.CFrame
  657. local HITPLAYERSOUNDS = {"356551938","264486467"}
  658. Debris:AddItem(PART,5)
  659. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  660. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  661. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  662. local prtcl = asd:Clone()
  663. prtcl.Parent = PART
  664. prtcl:Emit(amount*10)
  665. end
  666.  
  667. local Particle = IT("ParticleEmitter",nil)
  668. Particle.Enabled = false
  669. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  670. Particle.LightEmission = 0.5
  671. Particle.Rate = 150
  672. Particle.ZOffset = 1
  673. Particle.Rotation = NumberRange.new(-180, 180)
  674. Particle.RotSpeed = NumberRange.new(-180, 180)
  675. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  676. Particle.Color = ColorSequence.new(C3(0,0,0),C3(0.4,0,0))
  677.  
  678. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  679. function ParticleEmitter(Table)
  680. local PRTCL = Particle:Clone()
  681. local Speed = Table.Speed or 5
  682. local Drag = Table.Drag or 0
  683. local Size1 = Table.Size1 or 1
  684. local Size2 = Table.Size2 or 5
  685. local Lifetime1 = Table.Lifetime1 or 1
  686. local Lifetime2 = Table.Lifetime2 or 1.5
  687. local Parent = Table.Parent or Torso
  688. local Emit = Table.Emit or 100
  689. local Offset = Table.Offset or 360
  690. local Acel = Table.Acel or VT(0,0,0)
  691. local Enabled = Table.Enabled or false
  692. PRTCL.Parent = Parent
  693. PRTCL.Size = NumberSequence.new(Size1,Size2)
  694. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  695. PRTCL.Speed = NumberRange.new(Speed)
  696. PRTCL.VelocitySpread = Offset
  697. PRTCL.Drag = Drag
  698. PRTCL.Acceleration = Acel
  699. if Enabled == false then
  700. PRTCL:Emit(Emit)
  701. Debris:AddItem(PRTCL,Lifetime2)
  702. else
  703. PRTCL.Enabled = true
  704. end
  705. return PRTCL
  706. end
  707.  
  708. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  709. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  710. end
  711.  
  712. function PositiveAngle(NUMBER)
  713. if NUMBER >= 0 then
  714. NUMBER = 0
  715. end
  716. return NUMBER
  717. end
  718.  
  719. function NegativeAngle(NUMBER)
  720. if NUMBER <= 0 then
  721. NUMBER = 0
  722. end
  723. return NUMBER
  724. end
  725.  
  726. function Swait(NUMBER)
  727. if NUMBER == 0 or NUMBER == nil then
  728. ArtificialHB.Event:wait()
  729. else
  730. for i = 1, NUMBER do
  731. ArtificialHB.Event:wait()
  732. end
  733. end
  734. end
  735.  
  736. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  737. local NEWMESH = IT(MESH)
  738. if MESH == "SpecialMesh" then
  739. NEWMESH.MeshType = MESHTYPE
  740. if MESHID ~= "nil" and MESHID ~= "" then
  741. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  742. end
  743. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  744. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  745. end
  746. end
  747. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  748. NEWMESH.Scale = SCALE
  749. NEWMESH.Parent = PARENT
  750. return NEWMESH
  751. end
  752.  
  753. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  754. local NEWPART = IT("Part")
  755. NEWPART.formFactor = FORMFACTOR
  756. NEWPART.Reflectance = REFLECTANCE
  757. NEWPART.Transparency = TRANSPARENCY
  758. NEWPART.CanCollide = false
  759. NEWPART.Locked = true
  760. NEWPART.Anchored = true
  761. if ANCHOR == false then
  762. NEWPART.Anchored = false
  763. end
  764. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  765. NEWPART.Name = NAME
  766. NEWPART.Size = SIZE
  767. NEWPART.Position = Torso.Position
  768. NEWPART.Material = MATERIAL
  769. NEWPART:BreakJoints()
  770. NEWPART.Parent = PARENT
  771. return NEWPART
  772. end
  773.  
  774. local function weldBetween(a, b)
  775. local weldd = Instance.new("ManualWeld")
  776. weldd.Part0 = a
  777. weldd.Part1 = b
  778. weldd.C0 = CFrame.new()
  779. weldd.C1 = b.CFrame:inverse() * a.CFrame
  780. weldd.Parent = a
  781. return weldd
  782. end
  783.  
  784.  
  785. function QuaternionFromCFrame(cf)
  786. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  787. local trace = m00 + m11 + m22
  788. if trace > 0 then
  789. local s = math.sqrt(1 + trace)
  790. local recip = 0.5 / s
  791. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  792. else
  793. local i = 0
  794. if m11 > m00 then
  795. i = 1
  796. end
  797. if m22 > (i == 0 and m00 or m11) then
  798. i = 2
  799. end
  800. if i == 0 then
  801. local s = math.sqrt(m00 - m11 - m22 + 1)
  802. local recip = 0.5 / s
  803. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  804. elseif i == 1 then
  805. local s = math.sqrt(m11 - m22 - m00 + 1)
  806. local recip = 0.5 / s
  807. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  808. elseif i == 2 then
  809. local s = math.sqrt(m22 - m00 - m11 + 1)
  810. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  811. end
  812. end
  813. end
  814.  
  815. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  816. local xs, ys, zs = x + x, y + y, z + z
  817. local wx, wy, wz = w * xs, w * ys, w * zs
  818. local xx = x * xs
  819. local xy = x * ys
  820. local xz = x * zs
  821. local yy = y * ys
  822. local yz = y * zs
  823. local zz = z * zs
  824. 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))
  825. end
  826.  
  827. function QuaternionSlerp(a, b, t)
  828. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  829. local startInterp, finishInterp;
  830. if cosTheta >= 0.0001 then
  831. if (1 - cosTheta) > 0.0001 then
  832. local theta = ACOS(cosTheta)
  833. local invSinTheta = 1 / SIN(theta)
  834. startInterp = SIN((1 - t) * theta) * invSinTheta
  835. finishInterp = SIN(t * theta) * invSinTheta
  836. else
  837. startInterp = 1 - t
  838. finishInterp = t
  839. end
  840. else
  841. if (1 + cosTheta) > 0.0001 then
  842. local theta = ACOS(-cosTheta)
  843. local invSinTheta = 1 / SIN(theta)
  844. startInterp = SIN((t - 1) * theta) * invSinTheta
  845. finishInterp = SIN(t * theta) * invSinTheta
  846. else
  847. startInterp = t - 1
  848. finishInterp = t
  849. end
  850. end
  851. 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
  852. end
  853.  
  854. function Clerp(a, b, t)
  855. local qa = {QuaternionFromCFrame(a)}
  856. local qb = {QuaternionFromCFrame(b)}
  857. local ax, ay, az = a.x, a.y, a.z
  858. local bx, by, bz = b.x, b.y, b.z
  859. local _t = 1 - t
  860. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  861. end
  862.  
  863. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  864. local frame = IT("Frame")
  865. frame.BackgroundTransparency = TRANSPARENCY
  866. frame.BorderSizePixel = BORDERSIZEPIXEL
  867. frame.Position = POSITION
  868. frame.Size = SIZE
  869. frame.BackgroundColor3 = COLOR
  870. frame.BorderColor3 = BORDERCOLOR
  871. frame.Name = NAME
  872. frame.Parent = PARENT
  873. return frame
  874. end
  875.  
  876. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  877. local label = IT("TextLabel")
  878. label.BackgroundTransparency = 1
  879. label.Size = UD2(1, 0, 1, 0)
  880. label.Position = UD2(0, 0, 0, 0)
  881. label.TextColor3 = TEXTCOLOR
  882. label.TextStrokeTransparency = STROKETRANSPARENCY
  883. label.TextTransparency = TRANSPARENCY
  884. label.FontSize = TEXTFONTSIZE
  885. label.Font = TEXTFONT
  886. label.BorderSizePixel = BORDERSIZEPIXEL
  887. label.TextScaled = false
  888. label.Text = TEXT
  889. label.Name = NAME
  890. label.Parent = PARENT
  891. return label
  892. end
  893.  
  894. function NoOutlines(PART)
  895. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  896. end
  897.  
  898. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  899. local NEWWELD = IT(TYPE)
  900. NEWWELD.Part0 = PART0
  901. NEWWELD.Part1 = PART1
  902. NEWWELD.C0 = C0
  903. NEWWELD.C1 = C1
  904. NEWWELD.Parent = PARENT
  905. return NEWWELD
  906. end
  907.  
  908. local S = IT("Sound")
  909. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  910. local NEWSOUND = nil
  911. coroutine.resume(coroutine.create(function()
  912. NEWSOUND = S:Clone()
  913. NEWSOUND.Parent = PARENT
  914. NEWSOUND.Volume = VOLUME
  915. NEWSOUND.Pitch = PITCH
  916. NEWSOUND.SoundId = "rbxassetid://"..ID
  917. NEWSOUND:play()
  918. if DOESLOOP == true then
  919. NEWSOUND.Looped = true
  920. else
  921. repeat wait(1) until NEWSOUND.Playing == false
  922. NEWSOUND:remove()
  923. end
  924. end))
  925. return NEWSOUND
  926. end
  927.  
  928. function CFrameFromTopBack(at, top, back)
  929. local right = top:Cross(back)
  930. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  931. end
  932.  
  933. function R_RANDOM(CFRAME,DIST)
  934. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  935. end
  936.  
  937. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  938. function WACKYEFFECT(Table)
  939. local TYPE = (Table.EffectType or "Sphere")
  940. local SIZE = (Table.Size or VT(1,1,1))
  941. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  942. local TRANSPARENCY = (Table.Transparency or 0)
  943. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  944. local CFRAME = (Table.CFrame or Torso.CFrame)
  945. local MOVEDIRECTION = (Table.MoveToPos or nil)
  946. local ROTATION1 = (Table.RotationX or 0)
  947. local ROTATION2 = (Table.RotationY or 0)
  948. local ROTATION3 = (Table.RotationZ or 0)
  949. local MATERIAL = (Table.Material or "Neon")
  950. local COLOR = (Table.Color or C3(1,1,1))
  951. local TIME = (Table.Time or 45)
  952. local SOUNDID = (Table.SoundID or nil)
  953. local SOUNDPITCH = (Table.SoundPitch or nil)
  954. local SOUNDVOLUME = (Table.SoundVolume or nil)
  955. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  956. local BOOMERANG = (Table.Boomerang or 0)
  957. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  958. coroutine.resume(coroutine.create(function()
  959. local PLAYSSOUND = false
  960. local SOUND = nil
  961. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  962. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  963. PLAYSSOUND = true
  964. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  965. end
  966. EFFECT.Color = COLOR
  967. local MSH = nil
  968. if TYPE == "Sphere" then
  969. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  970. elseif TYPE == "Block" or TYPE == "Box" then
  971. MSH = IT("BlockMesh",EFFECT)
  972. MSH.Scale = SIZE
  973. elseif TYPE == "Wave" then
  974. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  975. elseif TYPE == "Ring" then
  976. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  977. elseif TYPE == "Slash" then
  978. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  979. elseif TYPE == "Round Slash" then
  980. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  981. elseif TYPE == "Swirl" then
  982. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  983. elseif TYPE == "Skull" then
  984. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  985. elseif TYPE == "Crystal" then
  986. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  987. end
  988. if MSH ~= nil then
  989. local BOOMR1 = 1+BOOMERANG/50
  990. local BOOMR2 = 1+SIZEBOOMERANG/50
  991. local MOVESPEED = nil
  992. if MOVEDIRECTION ~= nil then
  993. if USEBOOMERANGMATH == true then
  994. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  995. else
  996. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  997. end
  998. end
  999. local GROWTH = nil
  1000. if USEBOOMERANGMATH == true then
  1001. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  1002. else
  1003. GROWTH = (SIZE - ENDSIZE)
  1004. end
  1005. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1006. if TYPE == "Block" then
  1007. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1008. else
  1009. EFFECT.CFrame = CFRAME
  1010. end
  1011. if USEBOOMERANGMATH == true then
  1012. for LOOP = 1, TIME+1 do
  1013. Swait()
  1014. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  1015. if TYPE == "Wave" then
  1016. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  1017. end
  1018. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1019. if TYPE == "Block" then
  1020. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1021. else
  1022. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1023. end
  1024. if MOVEDIRECTION ~= nil then
  1025. local ORI = EFFECT.Orientation
  1026. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  1027. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  1028. end
  1029. end
  1030. else
  1031. for LOOP = 1, TIME+1 do
  1032. Swait()
  1033. MSH.Scale = MSH.Scale - GROWTH/TIME
  1034. if TYPE == "Wave" then
  1035. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  1036. end
  1037. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1038. if TYPE == "Block" then
  1039. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1040. else
  1041. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1042. end
  1043. if MOVEDIRECTION ~= nil then
  1044. local ORI = EFFECT.Orientation
  1045. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1046. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  1047. end
  1048. end
  1049. end
  1050. EFFECT.Transparency = 1
  1051. if PLAYSSOUND == false then
  1052. EFFECT:remove()
  1053. else
  1054. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1055. EFFECT:remove()
  1056. end
  1057. else
  1058. if PLAYSSOUND == false then
  1059. EFFECT:remove()
  1060. else
  1061. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1062. EFFECT:remove()
  1063. end
  1064. end
  1065. end))
  1066. end
  1067.  
  1068. function MakeForm(PART,TYPE)
  1069. if TYPE == "Cyl" then
  1070. local MSH = IT("CylinderMesh",PART)
  1071. elseif TYPE == "Ball" then
  1072. local MSH = IT("SpecialMesh",PART)
  1073. MSH.MeshType = "Sphere"
  1074. elseif TYPE == "Wedge" then
  1075. local MSH = IT("SpecialMesh",PART)
  1076. MSH.MeshType = "Wedge"
  1077. end
  1078. end
  1079.  
  1080. Debris = game:GetService("Debris")
  1081.  
  1082. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1083. local DIRECTION = CF(StartPos,EndPos).lookVector
  1084. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1085. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1086. end
  1087.  
  1088. local DECAL = IT("Decal")
  1089. function MagicRing()
  1090. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),true)
  1091. local MESH = IT("BlockMesh",RING)
  1092. local BOTTOMTEXTURE = DECAL:Clone()
  1093. BOTTOMTEXTURE.Parent = RING
  1094. BOTTOMTEXTURE.Face = "Bottom"
  1095. BOTTOMTEXTURE.Name = "BottomTexture"
  1096. local TOPTEXTURE = DECAL:Clone()
  1097. TOPTEXTURE.Parent = RING
  1098. TOPTEXTURE.Face = "Top"
  1099. TOPTEXTURE.Name = "TopTexture"
  1100. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1101. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1102. BOTTOMTEXTURE.Color3 = C3(0,0,0)
  1103. TOPTEXTURE.Color3 = C3(0,0,0)
  1104. return RING,MESH,TOPTEXTURE,BOTTOMTEXTURE
  1105. end
  1106.  
  1107. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  1108. coroutine.resume(coroutine.create(function()
  1109. local FADE = IT("Model",Effects)
  1110. if PARENT ~= nil then
  1111. FADE.Parent = PARENT
  1112. end
  1113. FADE.Name = "FadingEffect"
  1114. for _, c in pairs(Character:GetChildren()) do
  1115. if c.ClassName == "Part" then
  1116. c.CanCollide = false
  1117. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
  1118. FADER.CFrame = c.CFrame
  1119. FADER.Color = COLOR
  1120. if FADER.Name == "Head" then
  1121. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  1122. elseif FADER.Name == "HumanoidRootPart" then
  1123. FADE.PrimaryPart = FADER
  1124. FADER.Transparency = 1
  1125. end
  1126. end
  1127. end
  1128. local TRANS = 0.25/TIMER
  1129. local DIST = nil
  1130. if MOVEDIRECTION ~= nil then
  1131. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  1132. end
  1133. for i = 1, TIMER do
  1134. Swait()
  1135. for _, c in pairs(FADE:GetChildren()) do
  1136. if c.ClassName == "Part" then
  1137. c.Transparency = c.Transparency + TRANS
  1138. end
  1139. end
  1140. if MOVEDIRECTION ~= nil then
  1141. local ORI = FADE.PrimaryPart.Orientation
  1142. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  1143. end
  1144. end
  1145. FADE:remove()
  1146. end))
  1147. end
  1148.  
  1149. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1150. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1151. end
  1152.  
  1153. function PositiveAngle(NUMBER)
  1154. if NUMBER >= 0 then
  1155. NUMBER = 0
  1156. end
  1157. return NUMBER
  1158. end
  1159.  
  1160. function NegativeAngle(NUMBER)
  1161. if NUMBER <= 0 then
  1162. NUMBER = 0
  1163. end
  1164. return NUMBER
  1165. end
  1166.  
  1167. function Swait(NUMBER)
  1168. if NUMBER == 0 or NUMBER == nil then
  1169. ArtificialHB.Event:wait()
  1170. else
  1171. for i = 1, NUMBER do
  1172. ArtificialHB.Event:wait()
  1173. end
  1174. end
  1175. end
  1176.  
  1177. function QuaternionFromCFrame(cf)
  1178. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1179. local trace = m00 + m11 + m22
  1180. if trace > 0 then
  1181. local s = math.sqrt(1 + trace)
  1182. local recip = 0.5 / s
  1183. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1184. else
  1185. local i = 0
  1186. if m11 > m00 then
  1187. i = 1
  1188. end
  1189. if m22 > (i == 0 and m00 or m11) then
  1190. i = 2
  1191. end
  1192. if i == 0 then
  1193. local s = math.sqrt(m00 - m11 - m22 + 1)
  1194. local recip = 0.5 / s
  1195. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1196. elseif i == 1 then
  1197. local s = math.sqrt(m11 - m22 - m00 + 1)
  1198. local recip = 0.5 / s
  1199. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1200. elseif i == 2 then
  1201. local s = math.sqrt(m22 - m00 - m11 + 1)
  1202. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1203. end
  1204. end
  1205. end
  1206.  
  1207. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1208. local xs, ys, zs = x + x, y + y, z + z
  1209. local wx, wy, wz = w * xs, w * ys, w * zs
  1210. local xx = x * xs
  1211. local xy = x * ys
  1212. local xz = x * zs
  1213. local yy = y * ys
  1214. local yz = y * zs
  1215. local zz = z * zs
  1216. 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))
  1217. end
  1218.  
  1219. function QuaternionSlerp(a, b, t)
  1220. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1221. local startInterp, finishInterp;
  1222. if cosTheta >= 0.0001 then
  1223. if (1 - cosTheta) > 0.0001 then
  1224. local theta = ACOS(cosTheta)
  1225. local invSinTheta = 1 / SIN(theta)
  1226. startInterp = SIN((1 - t) * theta) * invSinTheta
  1227. finishInterp = SIN(t * theta) * invSinTheta
  1228. else
  1229. startInterp = 1 - t
  1230. finishInterp = t
  1231. end
  1232. else
  1233. if (1 + cosTheta) > 0.0001 then
  1234. local theta = ACOS(-cosTheta)
  1235. local invSinTheta = 1 / SIN(theta)
  1236. startInterp = SIN((t - 1) * theta) * invSinTheta
  1237. finishInterp = SIN(t * theta) * invSinTheta
  1238. else
  1239. startInterp = t - 1
  1240. finishInterp = t
  1241. end
  1242. end
  1243. 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
  1244. end
  1245.  
  1246. function Clerp(a, b, t)
  1247. local qa = {QuaternionFromCFrame(a)}
  1248. local qb = {QuaternionFromCFrame(b)}
  1249. local ax, ay, az = a.x, a.y, a.z
  1250. local bx, by, bz = b.x, b.y, b.z
  1251. local _t = 1 - t
  1252. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1253. end
  1254.  
  1255. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1256. local frame = IT("Frame")
  1257. frame.BackgroundTransparency = TRANSPARENCY
  1258. frame.BorderSizePixel = BORDERSIZEPIXEL
  1259. frame.Position = POSITION
  1260. frame.Size = SIZE
  1261. frame.BackgroundColor3 = COLOR
  1262. frame.BorderColor3 = BORDERCOLOR
  1263. frame.Name = NAME
  1264. frame.Parent = PARENT
  1265. return frame
  1266. end
  1267.  
  1268. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1269. local label = IT("TextLabel")
  1270. label.BackgroundTransparency = 1
  1271. label.Size = UD2(1, 0, 1, 0)
  1272. label.Position = UD2(0, 0, 0, 0)
  1273. label.TextColor3 = TEXTCOLOR
  1274. label.TextStrokeTransparency = STROKETRANSPARENCY
  1275. label.TextTransparency = TRANSPARENCY
  1276. label.FontSize = TEXTFONTSIZE
  1277. label.Font = TEXTFONT
  1278. label.BorderSizePixel = BORDERSIZEPIXEL
  1279. label.TextScaled = false
  1280. label.Text = TEXT
  1281. label.Name = NAME
  1282. label.Parent = PARENT
  1283. return label
  1284. end
  1285.  
  1286. function NoOutlines(PART)
  1287. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1288. end
  1289.  
  1290.  
  1291. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1292. local NEWWELD = IT(TYPE)
  1293. NEWWELD.Part0 = PART0
  1294. NEWWELD.Part1 = PART1
  1295. NEWWELD.C0 = C0
  1296. NEWWELD.C1 = C1
  1297. NEWWELD.Parent = PARENT
  1298. return NEWWELD
  1299. end
  1300.  
  1301. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1302. local NEWSOUND = nil
  1303. coroutine.resume(coroutine.create(function()
  1304. NEWSOUND = IT("Sound", PARENT)
  1305. NEWSOUND.Volume = VOLUME
  1306. NEWSOUND.Pitch = PITCH
  1307. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1308. Swait()
  1309. NEWSOUND:play()
  1310. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1311. end))
  1312. return NEWSOUND
  1313. end
  1314.  
  1315. function CFrameFromTopBack(at, top, back)
  1316. local right = top:Cross(back)
  1317. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1318. end
  1319.  
  1320. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1321. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1322. local mesh = IT("SpecialMesh",wave)
  1323. mesh.MeshType = "FileMesh"
  1324. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1325. mesh.Scale = SIZE
  1326. mesh.Offset = VT(0,0,-SIZE.X/8)
  1327. wave.CFrame = CFRAME
  1328. coroutine.resume(coroutine.create(function(PART)
  1329. for i = 1, WAIT do
  1330. Swait()
  1331. mesh.Scale = mesh.Scale + GROW
  1332. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1333. if DOESROT == true then
  1334. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1335. end
  1336. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1337. if wave.Transparency > 0.99 then
  1338. wave:remove()
  1339. end
  1340. end
  1341. end))
  1342. end
  1343.  
  1344. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1345. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1346. local mesh = IT("SpecialMesh",wave)
  1347. mesh.MeshType = "FileMesh"
  1348. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1349. mesh.Scale = SIZE
  1350. --mesh.Offset = VT(0,0,-SIZE.X/8)
  1351. wave.CFrame = CFRAME
  1352. coroutine.resume(coroutine.create(function(PART)
  1353. for i = 1, WAIT do
  1354. Swait()
  1355. mesh.Scale = mesh.Scale + GROW
  1356. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1357. if DOESROT == true then
  1358. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1359. end
  1360. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1361. if wave.Transparency > 0.99 then
  1362. wave:remove()
  1363. end
  1364. end
  1365. end))
  1366. end
  1367.  
  1368. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1369. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1370. local mesh = IT("SpecialMesh",wave)
  1371. mesh.MeshType = "FileMesh"
  1372. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1373. mesh.Scale = SIZE
  1374. wave.CFrame = CFRAME
  1375. coroutine.resume(coroutine.create(function(PART)
  1376. for i = 1, WAIT do
  1377. Swait()
  1378. mesh.Scale = mesh.Scale + GROW
  1379. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1380. if DOESROT == true then
  1381. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1382. end
  1383. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1384. if wave.Transparency > 0.99 then
  1385. wave:remove()
  1386. end
  1387. end
  1388. end))
  1389. end
  1390.  
  1391.  
  1392. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  1393. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1394. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1395. wave.CFrame = CFRAME
  1396. coroutine.resume(coroutine.create(function(PART)
  1397. for i = 1, WAIT do
  1398. Swait()
  1399. mesh.Scale = mesh.Scale * GROW
  1400. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1401. if wave.Transparency > 0.99 then
  1402. wave:remove()
  1403. end
  1404. end
  1405. end))
  1406. end
  1407.  
  1408. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1409. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1410. local mesh = IT("SpecialMesh",wave)
  1411. mesh.MeshType = "Sphere"
  1412. mesh.Scale = SIZE
  1413. mesh.Offset = VT(0,0,0)
  1414. wave.CFrame = CFRAME
  1415. coroutine.resume(coroutine.create(function(PART)
  1416. for i = 1, WAIT do
  1417. Swait()
  1418. mesh.Scale = mesh.Scale + GROW
  1419. wave.Transparency = wave.Transparency + (1/WAIT)
  1420. if wave.Transparency > 0.99 then
  1421. wave:remove()
  1422. end
  1423. end
  1424. end))
  1425. end
  1426.  
  1427. function MakeForm(PART,TYPE)
  1428. if TYPE == "Cyl" then
  1429. local MSH = IT("CylinderMesh",PART)
  1430. elseif TYPE == "Ball" then
  1431. local MSH = IT("SpecialMesh",PART)
  1432. MSH.MeshType = "Sphere"
  1433. elseif TYPE == "Wedge" then
  1434. local MSH = IT("SpecialMesh",PART)
  1435. MSH.MeshType = "Wedge"
  1436. end
  1437. end
  1438.  
  1439. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1440. if FLOOR ~= nil then
  1441. coroutine.resume(coroutine.create(function()
  1442. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1443. PART.CFrame = CF(POSITION)
  1444. for i = 1, 45 do
  1445. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1446. RingPiece.Material = FLOOR.Material
  1447. RingPiece.Color = FLOOR.Color
  1448. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1449. Debris:AddItem(RingPiece,SWAIT/100)
  1450. end
  1451. PART:remove()
  1452. end))
  1453. end
  1454. end
  1455.  
  1456. function CheckTableForString(Table, String)
  1457. for i, v in pairs(Table) do
  1458. if string.find(string.lower(String), string.lower(v)) then
  1459. return true
  1460. end
  1461. end
  1462. return false
  1463. end
  1464.  
  1465. function CheckIntangible(Hit)
  1466. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1467. if Hit and Hit.Parent then
  1468. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1469. return true
  1470. end
  1471. end
  1472. return false
  1473. end
  1474.  
  1475. Debris = game:GetService("Debris")
  1476.  
  1477. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1478. local Direction = CFrame.new(StartPos, Vec).lookVector
  1479. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1480. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1481. if RayHit and CheckIntangible(RayHit) then
  1482. if DelayIfHit then
  1483. wait()
  1484. end
  1485. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1486. end
  1487. return RayHit, RayPos, RayNormal
  1488. end
  1489.  
  1490. function turnto(position)
  1491. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1492. end
  1493.  
  1494. function CameraEnshaking(Length, Intensity)
  1495. coroutine.resume(coroutine.create(function()
  1496. local intensity = 1 * Intensity
  1497. local rotM = 0.01 * Intensity
  1498. for i = 0, Length, 0.1 do
  1499. Swait()
  1500. intensity = intensity - 0.05 * Intensity / Length
  1501. rotM = rotM - 5.0E-4 * Intensity / Length
  1502. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1503. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1504. end
  1505. hum.CameraOffset = Vector3.new(0, 0, 0)
  1506. end))
  1507. end
  1508. local EXE = Instance.new("Shirt")
  1509. EXE.ShirtTemplate = "rbxassetid://338740550"
  1510. EXE.Parent = Character
  1511. EXE.Name = "Cloth"
  1512. local LOL = Instance.new("Pants")
  1513. LOL.PantsTemplate = "rbxassetid://338750779"
  1514. LOL.Parent = Character
  1515. LOL.Name = "Cloth"
  1516.  
  1517. for i = 1, 35 do
  1518. local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1519. FACE.Color = C3(0,0,0)
  1520. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1521. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1522. end
  1523.  
  1524. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  1525. MakeForm(Eye,"Ball")
  1526. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1527. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  1528. MakeForm(Eye,"Ball")
  1529. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1530. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  1531. MakeForm(Eye,"Ball")
  1532. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1533. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  1534. MakeForm(Eye,"Ball")
  1535. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1536.  
  1537. local LASTPART = Head
  1538. for i = 1, 20 do
  1539. local MATH = (1-(i/25))
  1540. if LASTPART == Head then
  1541. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1542. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1543. LASTPART = Horn
  1544. Horn.Color = C3((i*3-3)/255,0,0)
  1545. else
  1546. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1547. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1548. LASTPART = Horn
  1549. Horn.Color = C3((i*3-3)/255,0,0)
  1550. end
  1551. end
  1552. local LASTPART = Head
  1553. for i = 1, 20 do
  1554. local MATH = (1-(i/25))
  1555. if LASTPART == Head then
  1556. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1557. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1558. LASTPART = Horn
  1559. Horn.Color = C3((i*3-3)/255,0,0)
  1560. else
  1561. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1562. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1563. LASTPART = Horn
  1564. Horn.Color = C3((i*3-3)/255,0,0)
  1565. end
  1566. end
  1567. --//=================================\\
  1568. --\\=================================//
  1569.  
  1570. plr = Player
  1571. char = plr.Character
  1572. hum = char.Humanoid
  1573. local cam = game.Workspace.CurrentCamera
  1574. Camera = cam
  1575. local CamInterrupt = false
  1576. local TwoD = false
  1577. local TargetInfo = {nil, nil}
  1578. cam.CameraType = "Custom"
  1579. t = char.Torso
  1580. h = char.Head
  1581. ra = char["Right Arm"]
  1582. la = char["Left Arm"]
  1583. rl = char["Right Leg"]
  1584. ll = char["Left Leg"]
  1585. tors = char.Torso
  1586. lleg = char["Left Leg"]
  1587. root = char.HumanoidRootPart
  1588. hed = char.Head
  1589. rleg = char["Right Leg"]
  1590. rarm = char["Right Arm"]
  1591. larm = char["Left Arm"]
  1592. radian = math.rad
  1593. random = math.random
  1594. Vec3 = Vector3.new
  1595. Inst = Instance.new
  1596. cFrame = CFrame.new
  1597. Euler = CFrame.fromEulerAnglesXYZ
  1598. vt = Vector3.new
  1599. bc = BrickColor.new
  1600. br = BrickColor.random
  1601. it = Instance.new
  1602. cf = CFrame.new
  1603. local Booleans = {CamFollow = true, GyroUse = true}
  1604. function lerp(object, newCFrame, alpha)
  1605. return object:lerp(newCFrame, alpha)
  1606. end
  1607.  
  1608. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1609. ff.Visible = false
  1610.  
  1611.  
  1612. local Directer = Inst("BodyGyro", root)
  1613. Directer.MaxTorque = Vec3(0, 0, 0)
  1614. Directer.P = 600000
  1615. local CPart = Inst("Part")
  1616. CPart.Anchored = true
  1617. CPart.CanCollide = false
  1618. CPart.Locked = true
  1619. CPart.Transparency = 1
  1620. local rainbowmode = false
  1621. local chaosmode = false
  1622. kan = Instance.new("Sound", char)
  1623. kan.Volume = 5
  1624. kan.TimePosition = 0
  1625. kan.PlaybackSpeed = 1
  1626. kan.Pitch = 1
  1627. kan.SoundId = "rbxassetid://798163149"
  1628. kan.Name = "wrecked"
  1629. kan.Looped = true
  1630. kan.Playing = true
  1631. kan.PlayOnRemove = true
  1632. kan:Play()
  1633. function newTheme(ID, timepos, pitch, vol)
  1634. local kanz = kan
  1635. kanz.PlaybackSpeed = pitch
  1636. kanz.Pitch = pitch
  1637. kanz.SoundId = ID
  1638. kanz.Name = "wrecked"
  1639. kanz.Looped = true
  1640. end
  1641. function CameraShake(Times, Power, PlayerTarget)
  1642. coroutine.resume(coroutine.create(function()
  1643. FV = Instance.new("BoolValue", PlayerTarget)
  1644. FV.Name = "CameraShake"
  1645. for ShakeNum = 1, Times do
  1646. swait()
  1647. local ef = Power
  1648. if ef >= 1 then
  1649. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  1650. else
  1651. ef = Power * 10
  1652. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  1653. end
  1654. end
  1655. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1656. FV:Destroy()
  1657. end))
  1658. end
  1659. function CameraEnshaking(Length, Intensity)
  1660. coroutine.resume(coroutine.create(function()
  1661. local intensity = 1 * Intensity
  1662. local rotM = 0.01 * Intensity
  1663. for i = 0, Length, 0.1 do
  1664. swait()
  1665. intensity = intensity - 0.05 * Intensity / Length
  1666. rotM = rotM - 5.0E-4 * Intensity / Length
  1667. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1668. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1669. end
  1670. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1671. end))
  1672. end
  1673. function CamShake(Part, Distan, Power, Times)
  1674. local de = Part.Position
  1675. for i, v in pairs(workspace:children()) do
  1676. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1677. for _, c in pairs(v:children()) do
  1678. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  1679. do
  1680. local Noob = v.Humanoid
  1681. if Noob ~= nil then
  1682. coroutine.resume(coroutine.create(function()
  1683. FV = Instance.new("BoolValue", Noob)
  1684. FV.Name = "CameraShake"
  1685. for ShakeNum = 1, Times do
  1686. swait()
  1687. local ef = Power
  1688. if ef >= 1 then
  1689. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  1690. else
  1691. ef = Power * 10
  1692. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  1693. end
  1694. end
  1695. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1696. FV:Destroy()
  1697. end))
  1698. CameraShake(Times, Power, Noob)
  1699. end
  1700. end
  1701. end
  1702. end
  1703. end
  1704. end
  1705. end
  1706. function chatfunc(text, color)
  1707. local chat = coroutine.wrap(function()
  1708. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  1709. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1710. end
  1711. local naeeym2 = Instance.new("BillboardGui", Character)
  1712. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1713. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  1714. naeeym2.Adornee = Character.Head
  1715. naeeym2.Name = "TalkingBillBoard"
  1716. local tecks2 = Instance.new("TextLabel", naeeym2)
  1717. tecks2.BackgroundTransparency = 1
  1718. tecks2.BorderSizePixel = 0
  1719. tecks2.Text = ""
  1720. tecks2.Font = "SciFi"
  1721. tecks2.TextSize = 30
  1722. tecks2.TextStrokeTransparency = 0
  1723. tecks2.TextColor3 = color
  1724. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1725. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1726. local tecks3 = Instance.new("TextLabel", naeeym2)
  1727. tecks3.BackgroundTransparency = 1
  1728. tecks3.BorderSizePixel = 0
  1729. tecks3.Text = ""
  1730. tecks3.Font = "SciFi"
  1731. tecks3.TextSize = 30
  1732. tecks3.TextStrokeTransparency = 0
  1733. tecks3.TextColor3 = Color3.new(0, 0, 0)
  1734. tecks3.TextStrokeColor3 = color
  1735. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  1736. coroutine.resume(coroutine.create(function()
  1737. while true do
  1738. swait(1)
  1739. if chaosmode == true then
  1740. tecks2.TextColor3 = BrickColor.random().Color
  1741. tecks3.TextStrokeColor3 = BrickColor.random().Color
  1742. end
  1743. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1744. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1745. tecks2.Rotation = math.random(-5, 5)
  1746. tecks3.Rotation = math.random(-5, 5)
  1747. end
  1748. end))
  1749. for i = 1, string.len(text) do
  1750. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  1751. tecks2.Text = string.sub(text, 1, i)
  1752. tecks3.Text = string.sub(text, 1, i)
  1753. swait(1)
  1754. end
  1755. wait(1)
  1756. local randomrot = math.random(1, 2)
  1757. if randomrot == 1 then
  1758. for i = 1, 50 do
  1759. swait()
  1760. tecks2.Rotation = tecks2.Rotation - 0.75
  1761. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1762. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1763. tecks3.Rotation = tecks2.Rotation + 0.75
  1764. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1765. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1766. end
  1767. elseif randomrot == 2 then
  1768. for i = 1, 50 do
  1769. swait()
  1770. tecks2.Rotation = tecks2.Rotation + 0.75
  1771. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1772. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1773. tecks3.Rotation = tecks2.Rotation - 0.75
  1774. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1775. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1776. end
  1777. end
  1778. naeeym2:Destroy()
  1779. end)
  1780. chat()
  1781. end
  1782. local Create = LoadLibrary("RbxUtility").Create
  1783. CFuncs = {
  1784. Part = {
  1785. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1786. local Part = Create("Part")({
  1787. Parent = Parent,
  1788. Reflectance = Reflectance,
  1789. Transparency = Transparency,
  1790. CanCollide = false,
  1791. Locked = true,
  1792. BrickColor = BrickColor.new(tostring(BColor)),
  1793. Name = Name,
  1794. Size = Size,
  1795. Material = Material
  1796. })
  1797. RemoveOutlines(Part)
  1798. return Part
  1799. end
  1800. },
  1801. Mesh = {
  1802. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1803. local Msh = Create(Mesh)({
  1804. Parent = Part,
  1805. Offset = OffSet,
  1806. Scale = Scale
  1807. })
  1808. if Mesh == "SpecialMesh" then
  1809. Msh.MeshType = MeshType
  1810. Msh.MeshId = MeshId
  1811. end
  1812. return Msh
  1813. end
  1814. },
  1815. Mesh = {
  1816. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1817. local Msh = Create(Mesh)({
  1818. Parent = Part,
  1819. Offset = OffSet,
  1820. Scale = Scale
  1821. })
  1822. if Mesh == "SpecialMesh" then
  1823. Msh.MeshType = MeshType
  1824. Msh.MeshId = MeshId
  1825. end
  1826. return Msh
  1827. end
  1828. },
  1829. Weld = {
  1830. Create = function(Parent, Part0, Part1, C0, C1)
  1831. local Weld = Create("Weld")({
  1832. Parent = Parent,
  1833. Part0 = Part0,
  1834. Part1 = Part1,
  1835. C0 = C0,
  1836. C1 = C1
  1837. })
  1838. return Weld
  1839. end
  1840. },
  1841. Sound = {
  1842. Create = function(id, par, vol, pit)
  1843. coroutine.resume(coroutine.create(function()
  1844. local S = Create("Sound")({
  1845. Volume = vol,
  1846. Pitch = pit or 1,
  1847. SoundId = id,
  1848. Parent = par or workspace
  1849. })
  1850. wait()
  1851. S:play()
  1852. game:GetService("Debris"):AddItem(S, 10)
  1853. end))
  1854. end
  1855. },
  1856. LongSound = {
  1857. Create = function(id, par, vol, pit)
  1858. coroutine.resume(coroutine.create(function()
  1859. local S = Create("Sound")({
  1860. Volume = vol,
  1861. Pitch = pit or 1,
  1862. SoundId = id,
  1863. Parent = par or workspace
  1864. })
  1865. wait()
  1866. S:play()
  1867. game:GetService("Debris"):AddItem(S, 30)
  1868. end))
  1869. end
  1870. },
  1871. ParticleEmitter = {
  1872. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1873. local fp = Create("ParticleEmitter")({
  1874. Parent = Parent,
  1875. Color = ColorSequence.new(Color1, Color2),
  1876. LightEmission = LightEmission,
  1877. Size = Size,
  1878. Texture = Texture,
  1879. Transparency = Transparency,
  1880. ZOffset = ZOffset,
  1881. Acceleration = Accel,
  1882. Drag = Drag,
  1883. LockedToPart = LockedToPart,
  1884. VelocityInheritance = VelocityInheritance,
  1885. EmissionDirection = EmissionDirection,
  1886. Enabled = Enabled,
  1887. Lifetime = LifeTime,
  1888. Rate = Rate,
  1889. Rotation = Rotation,
  1890. RotSpeed = RotSpeed,
  1891. Speed = Speed,
  1892. VelocitySpread = VelocitySpread
  1893. })
  1894. return fp
  1895. end
  1896. },
  1897. CreateTemplate = {}
  1898. }
  1899. function New(Object, Parent, Name, Data)
  1900. local Object = Instance.new(Object)
  1901. for Index, Value in pairs(Data or {}) do
  1902. Object[Index] = Value
  1903. end
  1904. Object.Parent = Parent
  1905. Object.Name = Name
  1906. return Object
  1907. end
  1908. local halocolor = BrickColor.new("Pastel light blue")
  1909. local halocolor2 = BrickColor.new("Really black")
  1910. local starcolor = BrickColor.new("Really black")
  1911. local lunacolor = BrickColor.new("Navy blue")
  1912. local lunacolor2 = BrickColor.new("Bright blue")
  1913. local wepcolor = BrickColor.new("Really black")
  1914. local maincolor = BrickColor.new("Really black")
  1915. local m = Instance.new("Model", char)
  1916. local m2 = Instance.new("Model", char)
  1917. local m3 = Instance.new("Model", char)
  1918. local mw1 = Instance.new("Model", char)
  1919. local mw2 = Instance.new("Model", char)
  1920. local extrawingmod1 = Instance.new("Model", char)
  1921. local extrawingmod2 = Instance.new("Model", char)
  1922. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  1923. local p = Instance.new("Part")
  1924. p.TopSurface = 0
  1925. p.BottomSurface = 0
  1926. p.Parent = parent
  1927. p.Size = Vector3.new(0.1, 0.1, 0.1)
  1928. p.Transparency = transparency
  1929. p.Reflectance = reflectance
  1930. p.CanCollide = false
  1931. p.Locked = true
  1932. p.BrickColor = brickcolor
  1933. p.Material = material
  1934. return p
  1935. end
  1936. function CreateMesh(parent, meshtype, x1, y1, z1)
  1937. local mesh = Instance.new("SpecialMesh", parent)
  1938. mesh.MeshType = meshtype
  1939. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  1940. return mesh
  1941. end
  1942. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  1943. local mesh = Instance.new("SpecialMesh", parent)
  1944. mesh.MeshType = "FileMesh"
  1945. mesh.MeshId = meshid
  1946. mesh.Scale = Vector3.new(x1, y1, z1)
  1947. return mesh
  1948. end
  1949. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  1950. local mesh = Instance.new("SpecialMesh", parent)
  1951. mesh.MeshType = "FileMesh"
  1952. mesh.MeshId = meshid
  1953. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1954. mesh.Scale = Vector3.new(x1, y1, z1)
  1955. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1956. return mesh
  1957. end
  1958. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  1959. local weld = Instance.new("Weld")
  1960. weld.Parent = parent
  1961. weld.Part0 = part0
  1962. weld.Part1 = part1
  1963. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  1964. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  1965. return weld
  1966. end
  1967. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  1968. CreateMesh(handle, "Brick", 0, 0, 0)
  1969. local handlexweld = CreateWeld(handlex, tors, handlex, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1970. local valuaring = 10
  1971. for i = 0, 49 do
  1972. valuaring = valuaring + 10
  1973. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  1974. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  1975. CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1976. end
  1977. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  1978. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  1979. local handleweld = CreateWeld(handle, tors, handle, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1980. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  1981. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  1982. local lwing1weld = CreateWeld(lwing1, handle, lwing1, 3, 0, 0, math.rad(5), math.rad(0), math.rad(12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1983. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  1984. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  1985. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1986. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  1987. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  1988. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1989. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  1990. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  1991. CreateWeld(wed, lwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1992. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  1993. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  1994. CreateWeld(wed, lwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1995. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  1996. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  1997. local lwing2weld = CreateWeld(lwing2, handle, lwing2, 4, 1, 0, math.rad(10), math.rad(0), math.rad(25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1998. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  1999. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2000. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2001. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2002. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2003. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2004. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2005. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2006. CreateWeld(wed, lwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2007. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2008. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2009. CreateWeld(wed, lwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2010. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  2011. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2012. local lwing3weld = CreateWeld(lwing3, handle, lwing3, 4.75, 2, 0, math.rad(15), math.rad(0), math.rad(37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2013. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2014. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2015. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2016. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2017. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2018. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2019. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2020. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2021. CreateWeld(wed, lwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2022. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2023. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2024. CreateWeld(wed, lwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2025. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  2026. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2027. local lwing4weld = CreateWeld(lwing4, handle, lwing4, 5.75, 3, 0, math.rad(20), math.rad(0), math.rad(50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2028. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2029. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2030. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2031. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2032. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2033. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2034. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2035. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2036. CreateWeld(wed, lwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2037. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2038. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2039. CreateWeld(wed, lwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2040. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  2041. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2042. local lwing5weld = CreateWeld(lwing5, handle, lwing5, 6.75, 4, 0, math.rad(25), math.rad(0), math.rad(62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2043. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2044. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2045. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2046. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2047. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2048. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2049. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2050. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2051. CreateWeld(wed, lwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2052. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2053. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2054. CreateWeld(wed, lwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2055. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  2056. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2057. local lwing6weld = CreateWeld(lwing6, handle, lwing6, 7.75, 5, 0, math.rad(30), math.rad(0), math.rad(75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2058. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2059. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2060. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2061. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2062. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2063. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2064. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2065. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2066. CreateWeld(wed, lwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2067. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2068. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2069. CreateWeld(wed, lwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2070. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  2071. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2072. local rwing1weld = CreateWeld(rwing1, handle, rwing1, -3, 0, 0, math.rad(5), math.rad(0), math.rad(-12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2073. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2074. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2075. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2076. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2077. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2078. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2079. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2080. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2081. CreateWeld(wed, rwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2082. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2083. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2084. CreateWeld(wed, rwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2085. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  2086. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2087. local rwing2weld = CreateWeld(rwing2, handle, rwing2, -4, 1, 0, math.rad(10), math.rad(0), math.rad(-25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2088. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2089. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2090. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2091. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2092. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2093. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2094. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2095. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2096. CreateWeld(wed, rwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2097. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2098. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2099. CreateWeld(wed, rwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2100. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  2101. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2102. local rwing3weld = CreateWeld(rwing3, handle, rwing3, -4.75, 2, 0, math.rad(15), math.rad(0), math.rad(-37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2103. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2104. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2105. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2106. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2107. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2108. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2109. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2110. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2111. CreateWeld(wed, rwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2112. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2113. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2114. CreateWeld(wed, rwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2115. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  2116. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2117. local rwing4weld = CreateWeld(rwing4, handle, rwing4, -5.75, 3, 0, math.rad(20), math.rad(0), math.rad(-50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2118. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2119. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2120. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2121. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2122. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2123. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2124. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2125. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2126. CreateWeld(wed, rwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2127. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2128. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2129. CreateWeld(wed, rwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2130. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  2131. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2132. local rwing5weld = CreateWeld(rwing5, handle, rwing5, -6.75, 4, 0, math.rad(25), math.rad(0), math.rad(-62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2133. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2134. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2135. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2136. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2137. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2138. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2139. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2140. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2141. CreateWeld(wed, rwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2142. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2143. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2144. CreateWeld(wed, rwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2145. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  2146. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2147. local rwing6weld = CreateWeld(rwing6, handle, rwing6, -7.75, 3, 0, math.rad(30), math.rad(0), math.rad(-75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2148. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2149. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2150. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2151. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2152. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2153. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2154. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2155. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2156. CreateWeld(wed, rwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2157. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2158. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2159. CreateWeld(wed, rwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2160. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  2161. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  2162. CreateWeld(ran, larm, ran, 0, 0.15, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2163. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2164. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  2165. CreateWeld(ran, larm, ran, 0, 0.155, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2166. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2167. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  2168. CreateWeld(ran, larm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2169. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2170. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2171. 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))
  2172. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2173. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2174. 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))
  2175. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2176. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2177. 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))
  2178. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2179. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2180. 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))
  2181. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  2182. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  2183. 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))
  2184. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2185. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  2186. 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))
  2187. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  2188. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  2189. 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))
  2190. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2191. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2192. 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))
  2193. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2194. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2195. 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))
  2196. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2197. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2198. 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))
  2199. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2200. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2201. 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))
  2202. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2203. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2204. 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))
  2205. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2206. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2207. 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))
  2208. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2209. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2210. 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))
  2211. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2212. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2213. 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))
  2214. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2215. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2216. 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))
  2217. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2218. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2219. 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))
  2220. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2221. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2222. 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))
  2223. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2224. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2225. 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))
  2226. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2227. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2228. 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))
  2229. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2230. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2231. 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))
  2232. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2233. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2234. 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))
  2235. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2236. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2237. 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))
  2238. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2239. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2240. 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))
  2241. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2242. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2243. 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))
  2244. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2245. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2246. 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))
  2247. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2248. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2249. 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))
  2250. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2251. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2252. 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))
  2253. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2254. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2255. 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))
  2256. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2257. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2258. 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))
  2259. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2260. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2261. 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))
  2262. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2263. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2264. 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))
  2265. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2266. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2267. 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))
  2268. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2269. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2270. 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))
  2271. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2272. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2273. 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))
  2274. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2275. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2276. 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))
  2277. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2278. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2279. 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))
  2280. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  2281. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  2282. CreateWeld(ran, rarm, ran, 0, 0.15, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2283. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2284. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  2285. CreateWeld(ran, rarm, ran, 0, 0.155, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2286. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2287. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  2288. CreateWeld(ran, rarm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2289. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2290. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2291. 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))
  2292. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2293. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2294. 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))
  2295. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2296. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2297. 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))
  2298. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2299. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2300. 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))
  2301. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  2302. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  2303. 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))
  2304. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2305. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  2306. 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))
  2307. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  2308. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  2309. 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))
  2310. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2311. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2312. 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))
  2313. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2314. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2315. 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))
  2316. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2317. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2318. 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))
  2319. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2320. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2321. 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))
  2322. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2323. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2324. 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))
  2325. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2326. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2327. 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))
  2328. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2329. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2330. 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))
  2331. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2332. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2333. 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))
  2334. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2335. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2336. 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))
  2337. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2338. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2339. 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))
  2340. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2341. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2342. 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))
  2343. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2344. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2345. 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))
  2346. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2347. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2348. 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))
  2349. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2350. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2351. 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))
  2352. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2353. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2354. 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))
  2355. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2356. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2357. 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))
  2358. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2359. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2360. 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))
  2361. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2362. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2363. 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))
  2364. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2365. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2366. 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))
  2367. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2368. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2369. 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))
  2370. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2371. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2372. 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))
  2373. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2374. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2375. 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))
  2376. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2377. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2378. 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))
  2379. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2380. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2381. 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))
  2382. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2383. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2384. 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))
  2385. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2386. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2387. 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))
  2388. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2389. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2390. 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))
  2391. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2392. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2393. 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))
  2394. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2395. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2396. 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))
  2397. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2398. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2399. 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))
  2400. for i, v in pairs(m:GetChildren()) do
  2401. if v:IsA("Part") then
  2402. v.BrickColor = BrickColor.new("Really black")
  2403. v.Material = "Neon"
  2404. v.Transparency = 1
  2405. end
  2406. end
  2407. for i, v in pairs(m2:GetChildren()) do
  2408. if v:IsA("Part") then
  2409. v.BrickColor = BrickColor.new("Really black")
  2410. v.Material = "Neon"
  2411. v.Transparency = 1
  2412. end
  2413. end
  2414. for i, v in pairs(m3:GetChildren()) do
  2415. if v:IsA("Part") then
  2416. v.BrickColor = BrickColor.new("Really black")
  2417. v.Material = "Neon"
  2418. v.Transparency = 1
  2419. end
  2420. end
  2421. for i, v in pairs(mw2:GetChildren()) do
  2422. if v:IsA("Part") then
  2423. v.BrickColor = BrickColor.new("Really black")
  2424. v.Material = "Neon"
  2425. end
  2426. end
  2427. for i, v in pairs(mw1:GetChildren()) do
  2428. if v:IsA("Part") then
  2429. v.BrickColor = BrickColor.new("Really black")
  2430. v.Material = "Neon"
  2431. end
  2432. end
  2433. for i, v in pairs(extrawingmod1:GetChildren()) do
  2434. if v:IsA("Part") then
  2435. v.BrickColor = BrickColor.new("Really black")
  2436. v.Material = "Neon"
  2437. end
  2438. end
  2439. for i, v in pairs(extrawingmod2:GetChildren()) do
  2440. if v:IsA("Part") then
  2441. v.Transparency = 0
  2442. v.BrickColor = BrickColor.new("Really black")
  2443. v.Material = "Neon"
  2444. end
  2445. end
  2446.  
  2447.  
  2448. local MAINRUINCOLOR = BrickColor.new("Really black")
  2449. function RemoveOutlines(part)
  2450. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2451. end
  2452. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2453. local Part = Create("Part")({
  2454. Parent = Parent,
  2455. Reflectance = Reflectance,
  2456. Transparency = Transparency,
  2457. CanCollide = false,
  2458. Locked = true,
  2459. BrickColor = BrickColor.new(tostring(BColor)),
  2460. Name = Name,
  2461. Size = Size,
  2462. Material = Material
  2463. })
  2464. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2465. RemoveOutlines(Part)
  2466. return Part
  2467. end
  2468. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2469. local Msh = Create(Mesh)({
  2470. Parent = Part,
  2471. Offset = OffSet,
  2472. Scale = Scale
  2473. })
  2474. if Mesh == "SpecialMesh" then
  2475. Msh.MeshType = MeshType
  2476. Msh.MeshId = MeshId
  2477. end
  2478. return Msh
  2479. end
  2480. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2481. local Weld = Create("Weld")({
  2482. Parent = Parent,
  2483. Part0 = Part0,
  2484. Part1 = Part1,
  2485. C0 = C0,
  2486. C1 = C1
  2487. })
  2488. return Weld
  2489. end
  2490.  
  2491. Player = Player
  2492. Character = Player.Character
  2493. PlayerGui = Player.PlayerGui
  2494. Backpack = Player.Backpack
  2495. Torso = Character.Torso
  2496. Head = Character.Head
  2497. Humanoid = Character.Humanoid
  2498. m = Instance.new("Model", Character)
  2499. LeftArm = Character["Left Arm"]
  2500. LeftLeg = Character["Left Leg"]
  2501. RightArm = Character["Right Arm"]
  2502. RightLeg = Character["Right Leg"]
  2503. LS = Torso["Left Shoulder"]
  2504. LH = Torso["Left Hip"]
  2505. RS = Torso["Right Shoulder"]
  2506. RH = Torso["Right Hip"]
  2507. Face = Head.face
  2508. Neck = Torso.Neck
  2509. it = Instance.new
  2510. attacktype = 1
  2511. vt = Vector3.new
  2512. cf = CFrame.new
  2513. euler = CFrame.fromEulerAnglesXYZ
  2514. angles = CFrame.Angles
  2515. cloaked = false
  2516. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2517. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2518. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2519. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2520. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2521. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2522. RootPart = Character.HumanoidRootPart
  2523. RootJoint = RootPart.RootJoint
  2524. RootCF = euler(-1.57, 0, 3.14)
  2525. attack = false
  2526. attackdebounce = false
  2527. deb = false
  2528. equipped = true
  2529. hand = false
  2530. MMouse = nil
  2531. combo = 0
  2532. mana = 0
  2533. trispeed = 0.2
  2534. attackmode = "none"
  2535. local idle = 0
  2536. local Anim = "Idle"
  2537. local Effects = {}
  2538. local gun = false
  2539. local shoot = false
  2540. local sine = 0
  2541. local change = 1
  2542. player = nil
  2543. local toggleTag = true
  2544. local txt = Instance.new("BillboardGui", Head)
  2545. txt.Adornee = nil
  2546. txt.Name = "NameDetect"
  2547. txt.Size = UDim2.new(4, 0, 1.2, 0)
  2548. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  2549. local text = Instance.new("TextLabel", txt)
  2550. text.Size = UDim2.new(5, 0, 3.5, 0)
  2551. text.FontSize = "Size8"
  2552. text.TextScaled = true
  2553. text.TextTransparency = 0
  2554. text.BackgroundTransparency = 1
  2555. text.TextTransparency = 0
  2556. text.TextStrokeTransparency = 0
  2557. text.Font = "Antique"
  2558. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  2559. text.TextColor3 = Color3.new(0, 0, 0)
  2560. text.Text = "Skidisher"
  2561. function RecolorTextAndRename(name, col1, col2)
  2562. text.TextStrokeColor3 = col2
  2563. text.TextColor3 = col1
  2564. text.Text = name
  2565. end
  2566. mouse = Player:GetMouse()
  2567. RSH, LSH = nil, nil
  2568. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  2569. RW.Name = "Right Shoulder"
  2570. LW.Name = "Left Shoulder"
  2571. LH = Torso["Left Hip"]
  2572. RH = Torso["Right Hip"]
  2573. TorsoColor = Torso.BrickColor
  2574. function NoOutline(Part)
  2575. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  2576. end
  2577. player = Player
  2578. ch = Character
  2579. RSH = ch.Torso["Right Shoulder"]
  2580. LSH = ch.Torso["Left Shoulder"]
  2581. RSH.Parent = nil
  2582. LSH.Parent = nil
  2583. RW.Name = "Right Shoulder"
  2584. RW.Part0 = ch.Torso
  2585. RW.C0 = cf(1.5, 0.5, 0)
  2586. RW.C1 = cf(0, 0.5, 0)
  2587. RW.Part1 = ch["Right Arm"]
  2588. RW.Parent = ch.Torso
  2589. LW.Name = "Left Shoulder"
  2590. LW.Part0 = ch.Torso
  2591. LW.C0 = cf(-1.5, 0.5, 0)
  2592. LW.C1 = cf(0, 0.5, 0)
  2593. LW.Part1 = ch["Left Arm"]
  2594. LW.Parent = ch.Torso
  2595. local Stats = Instance.new("BoolValue")
  2596. Stats.Name = "Stats"
  2597. Stats.Parent = Character
  2598. local Atk = Instance.new("NumberValue")
  2599. Atk.Name = "Damage"
  2600. Atk.Parent = Stats
  2601. Atk.Value = 1
  2602. local Def = Instance.new("NumberValue")
  2603. Def.Name = "Defense"
  2604. Def.Parent = Stats
  2605. Def.Value = 1
  2606. local Speed = Instance.new("NumberValue")
  2607. Speed.Name = "Speed"
  2608. Speed.Parent = Stats
  2609. Speed.Value = 1
  2610. local Mvmt = Instance.new("NumberValue")
  2611. Mvmt.Name = "Movement"
  2612. Mvmt.Parent = Stats
  2613. Mvmt.Value = 1
  2614. local donum = 0
  2615.  
  2616. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  2617. local fp = it("Part")
  2618. fp.formFactor = formfactor
  2619. fp.Parent = parent
  2620. fp.Reflectance = reflectance
  2621. fp.Transparency = transparency
  2622. fp.CanCollide = false
  2623. fp.Locked = true
  2624. fp.BrickColor = brickcolor
  2625. fp.Name = name
  2626. fp.Size = size
  2627. fp.Position = Torso.Position
  2628. NoOutline(fp)
  2629. fp.Material = "SmoothPlastic"
  2630. fp:BreakJoints()
  2631. return fp
  2632. end
  2633. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  2634. local mesh = it(Mesh)
  2635. mesh.Parent = part
  2636. if Mesh == "SpecialMesh" then
  2637. mesh.MeshType = meshtype
  2638. if meshid ~= "nil" then
  2639. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  2640. end
  2641. end
  2642. mesh.Offset = offset
  2643. mesh.Scale = scale
  2644. return mesh
  2645. end
  2646. function weld(parent, part0, part1, c0)
  2647. local weld = it("Weld")
  2648. weld.Parent = parent
  2649. weld.Part0 = part0
  2650. weld.Part1 = part1
  2651. weld.C0 = c0
  2652. return weld
  2653. end
  2654. local Color1 = Torso.BrickColor
  2655. local bodvel = Instance.new("BodyVelocity")
  2656. local bg = Instance.new("BodyGyro")
  2657. function swait(num)
  2658. if num == 0 or num == nil then
  2659. game:service("RunService").Stepped:wait(0)
  2660. else
  2661. for i = 0, num do
  2662. game:service("RunService").Stepped:wait(0)
  2663. end
  2664. end
  2665. end
  2666. local r = 255
  2667. local g = 0
  2668. local b = 0
  2669. coroutine.resume(coroutine.create(function()
  2670. while wait() do
  2671. for i = 0, 50.8 do
  2672. swait()
  2673. g = g + 5
  2674. end
  2675. for i = 0, 50.8 do
  2676. swait()
  2677. r = r - 5
  2678. end
  2679. for i = 0, 50.8 do
  2680. swait()
  2681. b = b + 5
  2682. end
  2683. for i = 0, 50.8 do
  2684. swait()
  2685. g = g - 5
  2686. end
  2687. for i = 0, 50.8 do
  2688. swait()
  2689. r = r + 5
  2690. end
  2691. for i = 0, 50.8 do
  2692. swait()
  2693. b = b - 5
  2694. end
  2695. end
  2696. end))
  2697. function so(id, par, vol, pit)
  2698. coroutine.resume(coroutine.create(function()
  2699. local sou = Instance.new("Sound", par or workspace)
  2700. sou.Volume = vol
  2701. sou.Pitch = pit or 1
  2702. sou.SoundId = id
  2703. swait()
  2704. sou:play()
  2705. game:GetService("Debris"):AddItem(sou, 6)
  2706. end))
  2707. end
  2708. function clerp(a, b, t)
  2709. local qa = {
  2710. QuaternionFromCFrame(a)
  2711. }
  2712. local qb = {
  2713. QuaternionFromCFrame(b)
  2714. }
  2715. local ax, ay, az = a.x, a.y, a.z
  2716. local bx, by, bz = b.x, b.y, b.z
  2717. local _t = 1 - t
  2718. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2719. end
  2720. function QuaternionFromCFrame(cf)
  2721. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2722. local trace = m00 + m11 + m22
  2723. if trace > 0 then
  2724. local s = math.sqrt(1 + trace)
  2725. local recip = 0.5 / s
  2726. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2727. else
  2728. local i = 0
  2729. if m00 < m11 then
  2730. i = 1
  2731. end
  2732. if m22 > (i == 0 and m00 or m11) then
  2733. i = 2
  2734. end
  2735. if i == 0 then
  2736. local s = math.sqrt(m00 - m11 - m22 + 1)
  2737. local recip = 0.5 / s
  2738. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2739. elseif i == 1 then
  2740. local s = math.sqrt(m11 - m22 - m00 + 1)
  2741. local recip = 0.5 / s
  2742. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2743. elseif i == 2 then
  2744. local s = math.sqrt(m22 - m00 - m11 + 1)
  2745. local recip = 0.5 / s
  2746. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2747. end
  2748. end
  2749. end
  2750. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2751. local xs, ys, zs = x + x, y + y, z + z
  2752. local wx, wy, wz = w * xs, w * ys, w * zs
  2753. local xx = x * xs
  2754. local xy = x * ys
  2755. local xz = x * zs
  2756. local yy = y * ys
  2757. local yz = y * zs
  2758. local zz = z * zs
  2759. 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))
  2760. end
  2761. function QuaternionSlerp(a, b, t)
  2762. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2763. local startInterp, finishInterp
  2764. if cosTheta >= 1.0E-4 then
  2765. if 1 - cosTheta > 1.0E-4 then
  2766. local theta = math.acos(cosTheta)
  2767. local invSinTheta = 1 / math.sin(theta)
  2768. startInterp = math.sin((1 - t) * theta) * invSinTheta
  2769. finishInterp = math.sin(t * theta) * invSinTheta
  2770. else
  2771. startInterp = 1 - t
  2772. finishInterp = t
  2773. end
  2774. elseif 1 + cosTheta > 1.0E-4 then
  2775. local theta = math.acos(-cosTheta)
  2776. local invSinTheta = 1 / math.sin(theta)
  2777. startInterp = math.sin((t - 1) * theta) * invSinTheta
  2778. finishInterp = math.sin(t * theta) * invSinTheta
  2779. else
  2780. startInterp = t - 1
  2781. finishInterp = t
  2782. end
  2783. 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
  2784. end
  2785. local CFrameFromTopBack = function(at, top, back)
  2786. local right = top:Cross(back)
  2787. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2788. end
  2789. function Triangle(a, b, c)
  2790. local edg1 = (c - a):Dot((b - a).unit)
  2791. local edg2 = (a - b):Dot((c - b).unit)
  2792. local edg3 = (b - c):Dot((a - c).unit)
  2793. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  2794. a, b = a, b
  2795. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  2796. a, b, c = b, c, a
  2797. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  2798. a, b, c = c, a, b
  2799. else
  2800. assert(false, "unreachable")
  2801. end
  2802. local len1 = (c - a):Dot((b - a).unit)
  2803. local len2 = (b - a).magnitude - len1
  2804. local width = (a + (b - a).unit * len1 - c).magnitude
  2805. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  2806. local list = {}
  2807. if len1 > 0.01 then
  2808. local w1 = Instance.new("WedgePart", m)
  2809. game:GetService("Debris"):AddItem(w1, 5)
  2810. w1.Material = "SmoothPlastic"
  2811. w1.FormFactor = "Custom"
  2812. w1.BrickColor = BrickColor.new("Really red")
  2813. w1.Transparency = 0
  2814. w1.Reflectance = 0
  2815. w1.Material = "SmoothPlastic"
  2816. w1.CanCollide = false
  2817. local l1 = Instance.new("PointLight", w1)
  2818. l1.Color = Color3.new(170, 0, 0)
  2819. NoOutline(w1)
  2820. local sz = Vector3.new(0.2, width, len1)
  2821. w1.Size = sz
  2822. local sp = Instance.new("SpecialMesh", w1)
  2823. sp.MeshType = "Wedge"
  2824. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2825. w1:BreakJoints()
  2826. w1.Anchored = true
  2827. w1.Parent = workspace
  2828. w1.Transparency = 0.7
  2829. table.insert(Effects, {
  2830. w1,
  2831. "Disappear",
  2832. 0.01
  2833. })
  2834. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2835. table.insert(list, w1)
  2836. end
  2837. if len2 > 0.01 then
  2838. local w2 = Instance.new("WedgePart", m)
  2839. game:GetService("Debris"):AddItem(w2, 5)
  2840. w2.Material = "SmoothPlastic"
  2841. w2.FormFactor = "Custom"
  2842. w2.BrickColor = BrickColor.new("Really red")
  2843. w2.Transparency = 0
  2844. w2.Reflectance = 0
  2845. w2.Material = "SmoothPlastic"
  2846. w2.CanCollide = false
  2847. local l2 = Instance.new("PointLight", w2)
  2848. l2.Color = Color3.new(170, 0, 0)
  2849. NoOutline(w2)
  2850. local sz = Vector3.new(0.2, width, len2)
  2851. w2.Size = sz
  2852. local sp = Instance.new("SpecialMesh", w2)
  2853. sp.MeshType = "Wedge"
  2854. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2855. w2:BreakJoints()
  2856. w2.Anchored = true
  2857. w2.Parent = workspace
  2858. w2.Transparency = 0.7
  2859. table.insert(Effects, {
  2860. w2,
  2861. "Disappear",
  2862. 0.01
  2863. })
  2864. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2865. table.insert(list, w2)
  2866. end
  2867. return unpack(list)
  2868. end
  2869. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2870. if hit.Parent == nil then
  2871. return
  2872. end
  2873. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2874. for _, v in pairs(hit.Parent:children()) do
  2875. if v:IsA("Humanoid") then
  2876. h = v
  2877. end
  2878. end
  2879. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  2880. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2881. return
  2882. end
  2883. local c = Create("ObjectValue")({
  2884. Name = "creator",
  2885. Value = RealGame:service("Players")[owner.Name],
  2886. Parent = h
  2887. })
  2888. game:GetService("Debris"):AddItem(c, 0.5)
  2889. if HitSound ~= nil and HitPitch ~= nil then
  2890. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2891. end
  2892. local Damage = math.random(minim, maxim)
  2893. local blocked = false
  2894. local block = hit.Parent:findFirstChild("Block")
  2895. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2896. blocked = true
  2897. block.Value = block.Value - 1
  2898. print(block.Value)
  2899. end
  2900. if blocked == false then
  2901. HitHealth = h.Health
  2902. h.Health = h.Health - Damage
  2903. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2904. print("gained kill")
  2905. end
  2906. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2907. else
  2908. h.Health = h.Health - Damage / 2
  2909. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2910. end
  2911. if Type == "Knockdown" then
  2912. local hum = hit.Parent.Humanoid
  2913. hum.PlatformStand = true
  2914. coroutine.resume(coroutine.create(function(HHumanoid)
  2915. swait(1)
  2916. HHumanoid.PlatformStand = false
  2917. end), hum)
  2918. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2919. local bodvol = Create("BodyVelocity")({
  2920. velocity = angle * knockback,
  2921. P = 5000,
  2922. maxForce = Vector3.new(8000, 8000, 8000),
  2923. Parent = hit
  2924. })
  2925. local rl = Create("BodyAngularVelocity")({
  2926. P = 3000,
  2927. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2928. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2929. Parent = hit
  2930. })
  2931. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2932. game:GetService("Debris"):AddItem(rl, 0.5)
  2933. elseif Type == "Normal" then
  2934. local vp = Create("BodyVelocity")({
  2935. P = 500,
  2936. maxForce = Vector3.new(math.huge, 0, math.huge),
  2937. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2938. })
  2939. if knockback > 0 then
  2940. vp.Parent = hit.Parent.Head
  2941. end
  2942. game:GetService("Debris"):AddItem(vp, 0.5)
  2943. elseif Type == "Up" then
  2944. local bodyVelocity = Create("BodyVelocity")({
  2945. velocity = Vector3.new(0, 20, 0),
  2946. P = 5000,
  2947. maxForce = Vector3.new(8000, 8000, 8000),
  2948. Parent = hit
  2949. })
  2950. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2951. local bodyVelocity = Create("BodyVelocity")({
  2952. velocity = Vector3.new(0, 20, 0),
  2953. P = 5000,
  2954. maxForce = Vector3.new(8000, 8000, 8000),
  2955. Parent = hit
  2956. })
  2957. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2958. elseif Type == "Leech" then
  2959. local hum = hit.Parent.Humanoid
  2960. if hum ~= nil then
  2961. for i = 0, 2 do
  2962. 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)
  2963. end
  2964. Humanoid.Health = Humanoid.Health + 10
  2965. end
  2966. elseif Type == "UpKnock" then
  2967. local hum = hit.Parent.Humanoid
  2968. hum.PlatformStand = true
  2969. if hum ~= nil then
  2970. hitr = true
  2971. end
  2972. coroutine.resume(coroutine.create(function(HHumanoid)
  2973. swait(5)
  2974. HHumanoid.PlatformStand = false
  2975. hitr = false
  2976. end), hum)
  2977. local bodyVelocity = Create("BodyVelocity")({
  2978. velocity = Vector3.new(0, 20, 0),
  2979. P = 5000,
  2980. maxForce = Vector3.new(8000, 8000, 8000),
  2981. Parent = hit
  2982. })
  2983. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2984. local bodyVelocity = Create("BodyVelocity")({
  2985. velocity = Vector3.new(0, 20, 0),
  2986. P = 5000,
  2987. maxForce = Vector3.new(8000, 8000, 8000),
  2988. Parent = hit
  2989. })
  2990. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2991. elseif Type == "Snare" then
  2992. local bp = Create("BodyPosition")({
  2993. P = 2000,
  2994. D = 100,
  2995. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2996. position = hit.Parent.Torso.Position,
  2997. Parent = hit.Parent.Torso
  2998. })
  2999. game:GetService("Debris"):AddItem(bp, 1)
  3000. elseif Type == "Slashnare" then
  3001. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  3002. for i = 1, math.random(4, 5) do
  3003. 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)
  3004. end
  3005. local bp = Create("BodyPosition")({
  3006. P = 2000,
  3007. D = 100,
  3008. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3009. position = hit.Parent.Torso.Position,
  3010. Parent = hit.Parent.Torso
  3011. })
  3012. game:GetService("Debris"):AddItem(bp, 1)
  3013. elseif Type == "Spike" then
  3014. CreateBigIceSword(hit.Parent.Torso.CFrame)
  3015. local bp = Create("BodyPosition")({
  3016. P = 2000,
  3017. D = 100,
  3018. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3019. position = hit.Parent.Torso.Position,
  3020. Parent = hit.Parent.Torso
  3021. })
  3022. game:GetService("Debris"):AddItem(bp, 1)
  3023. elseif Type == "Freeze" then
  3024. local BodPos = Create("BodyPosition")({
  3025. P = 50000,
  3026. D = 1000,
  3027. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3028. position = hit.Parent.Torso.Position,
  3029. Parent = hit.Parent.Torso
  3030. })
  3031. local BodGy = Create("BodyGyro")({
  3032. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  3033. P = 20000,
  3034. Parent = hit.Parent.Torso,
  3035. cframe = hit.Parent.Torso.CFrame
  3036. })
  3037. hit.Parent.Torso.Anchored = true
  3038. coroutine.resume(coroutine.create(function(Part)
  3039. swait(1.5)
  3040. Part.Anchored = false
  3041. end), hit.Parent.Torso)
  3042. game:GetService("Debris"):AddItem(BodPos, 3)
  3043. game:GetService("Debris"):AddItem(BodGy, 3)
  3044. end
  3045. local debounce = Create("BoolValue")({
  3046. Name = "DebounceHit",
  3047. Parent = hit.Parent,
  3048. Value = true
  3049. })
  3050. game:GetService("Debris"):AddItem(debounce, Delay)
  3051. c = Instance.new("ObjectValue")
  3052. c.Name = "creator"
  3053. c.Value = RealGame:service("Players")[owner.Name];
  3054. c.Parent = h
  3055. game:GetService("Debris"):AddItem(c, 0.5)
  3056. end
  3057. end
  3058. function ShowDamage(Pos, Text, Time, Color)
  3059. local Rate = 0.03333333333333333
  3060. local Pos = Pos or Vector3.new(0, 0, 0)
  3061. local Text = Text or ""
  3062. local Time = Time or 2
  3063. local Color = Color or Color3.new(1, 0, 1)
  3064. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  3065. EffectPart.Anchored = true
  3066. local BillboardGui = Create("BillboardGui")({
  3067. Size = UDim2.new(3, 0, 3, 0),
  3068. Adornee = EffectPart,
  3069. Parent = EffectPart
  3070. })
  3071. local TextLabel = Create("TextLabel")({
  3072. BackgroundTransparency = 1,
  3073. Size = UDim2.new(1, 0, 1, 0),
  3074. Text = Text,
  3075. TextColor3 = Color,
  3076. TextScaled = true,
  3077. Font = Enum.Font.ArialBold,
  3078. Parent = BillboardGui
  3079. })
  3080. game.Debris:AddItem(EffectPart, Time + 0.1)
  3081. EffectPart.Parent = game:GetService("Workspace")
  3082. delay(0, function()
  3083. local Frames = Time / Rate
  3084. for Frame = 1, Frames do
  3085. wait(Rate)
  3086. local Percent = Frame / Frames
  3087. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  3088. TextLabel.TextTransparency = Percent
  3089. end
  3090. if EffectPart and EffectPart.Parent then
  3091. EffectPart:Destroy()
  3092. end
  3093. end)
  3094. end
  3095. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  3096. for _, c in pairs(workspace:children()) do
  3097. local hum = c:findFirstChildOfClass("Humanoid")
  3098. if hum ~= nil then
  3099. local head = c:findFirstChild("Head")
  3100. if head ~= nil then
  3101. local targ = head.Position - Part.Position
  3102. local mag = targ.magnitude
  3103. if magni >= mag and c.Name ~= Player.Name then
  3104. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  3105. end
  3106. end
  3107. end
  3108. end
  3109. end
  3110. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  3111. for _, c in pairs(workspace:children()) do
  3112. local hum = c:findFirstChild("Humanoid")
  3113. if hum ~= nil then
  3114. local head = c:findFirstChild("Torso")
  3115. if head ~= nil then
  3116. local targ = head.Position - Part.Position
  3117. local mag = targ.magnitude
  3118. if magni >= mag and c.Name ~= Player.Name then
  3119. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  3120. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  3121. end
  3122. end
  3123. end
  3124. end
  3125. end
  3126. function rayCast(Pos, Dir, Max, Ignore)
  3127. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3128. end
  3129. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  3130. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3131. prt.Anchored = true
  3132. prt.CFrame = cframe
  3133. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  3134. game:GetService("Debris"):AddItem(prt, 2)
  3135. CF = prt.CFrame
  3136. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  3137. for i = 0, 1, 0.2 do
  3138. wait()
  3139. Part.CFrame = CF * cf(0, 0, -0.4)
  3140. end
  3141. for i = 0, 1, delay do
  3142. wait()
  3143. Mesh.Scale = Mesh.Scale
  3144. end
  3145. for i = 0, 1, 0.1 do
  3146. wait()
  3147. Part.Transparency = i
  3148. end
  3149. Part.Parent = nil
  3150. end), prt, msh, CF)
  3151. end
  3152. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3153. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3154. prt.Anchored = true
  3155. prt.Material = "Neon"
  3156. prt.CFrame = cframe
  3157. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3158. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3159. game:GetService("Debris"):AddItem(prt, 5)
  3160. coroutine.resume(coroutine.create(function(Part, Mesh)
  3161. for i = 0, 1, delay do
  3162. swait()
  3163. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3164. Part.Transparency = i
  3165. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3166. end
  3167. Part.Parent = nil
  3168. end), prt, msh)
  3169. end
  3170. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3171. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3172. prt.Anchored = true
  3173. prt.Material = "Neon"
  3174. prt.CFrame = cframe
  3175. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3176. game:GetService("Debris"):AddItem(prt, 5)
  3177. coroutine.resume(coroutine.create(function(Part, Mesh)
  3178. local rtype = rottype
  3179. for i = 0, 1, delay do
  3180. swait()
  3181. if rtype == 1 then
  3182. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3183. elseif rtype == 2 then
  3184. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3185. end
  3186. Part.Transparency = i
  3187. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3188. end
  3189. Part.Parent = nil
  3190. end), prt, msh)
  3191. end
  3192. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3193. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3194. prt.Anchored = true
  3195. prt.CFrame = cframe
  3196. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3197. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3198. game:GetService("Debris"):AddItem(prt, 5)
  3199. coroutine.resume(coroutine.create(function(Part, Mesh)
  3200. for i = 0, 1, delay do
  3201. wait()
  3202. Part.Transparency = i
  3203. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3204. end
  3205. Part.Parent = nil
  3206. end), prt, msh)
  3207. end
  3208. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3209. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3210. prt.Anchored = true
  3211. prt.Material = "Neon"
  3212. prt.CFrame = cframe
  3213. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3214. game:GetService("Debris"):AddItem(prt, 5)
  3215. coroutine.resume(coroutine.create(function(Part, Mesh)
  3216. local rtype = rottype
  3217. for i = 0, 1, delay do
  3218. swait()
  3219. if rtype == 1 then
  3220. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3221. elseif rtype == 2 then
  3222. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3223. end
  3224. Part.Transparency = i
  3225. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3226. end
  3227. Part.Parent = nil
  3228. end), prt, msh)
  3229. end
  3230. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  3231. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3232. prt.Anchored = true
  3233. prt.Material = "Neon"
  3234. prt.CFrame = cframe
  3235. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  3236. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  3237. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  3238. game:GetService("Debris"):AddItem(prt, 5)
  3239. coroutine.resume(coroutine.create(function(Part, Mesh)
  3240. local rtype = rottype
  3241. for i = 0, 1, delay do
  3242. swait()
  3243. if rtype == 1 then
  3244. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3245. elseif rtype == 2 then
  3246. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3247. end
  3248. dec.Transparency = i
  3249. dec2.Transparency = i
  3250. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3251. end
  3252. Part.Parent = nil
  3253. end), prt, msh)
  3254. end
  3255. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  3256. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3257. prt.Anchored = true
  3258. prt.Material = "Neon"
  3259. prt.CFrame = cframe
  3260. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  3261. game:GetService("Debris"):AddItem(prt, 5)
  3262. coroutine.resume(coroutine.create(function(Part, Mesh)
  3263. local rtype = rottype
  3264. for i = 0, 1, delay do
  3265. swait()
  3266. if rtype == 1 then
  3267. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3268. elseif rtype == 2 then
  3269. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3270. end
  3271. prt.Transparency = i
  3272. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3273. end
  3274. Part.Parent = nil
  3275. end), prt, msh)
  3276. end
  3277. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  3278. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3279. prt.Anchored = true
  3280. prt.Material = "Neon"
  3281. prt.CFrame = cframe
  3282. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  3283. game:GetService("Debris"):AddItem(prt, 5)
  3284. coroutine.resume(coroutine.create(function(Part, Mesh)
  3285. local rtype = rottype
  3286. for i = 0, 1, delay do
  3287. swait()
  3288. if rtype == 1 then
  3289. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  3290. elseif rtype == 2 then
  3291. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  3292. end
  3293. prt.Transparency = i
  3294. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  3295. end
  3296. Part.Parent = nil
  3297. end), prt, msh)
  3298. end
  3299. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  3300. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3301. prt.Anchored = true
  3302. prt.Material = "Neon"
  3303. prt.CFrame = cframe
  3304. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3305. game:GetService("Debris"):AddItem(prt, 5)
  3306. coroutine.resume(coroutine.create(function(Part, Mesh)
  3307. local rtype = rottype
  3308. for i = 0, 1, delay do
  3309. swait()
  3310. if rtype == 1 then
  3311. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3312. elseif rtype == 2 then
  3313. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3314. end
  3315. prt.Transparency = i
  3316. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3317. end
  3318. Part.Parent = nil
  3319. end), prt, msh)
  3320. end
  3321. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3322. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3323. prt.Anchored = true
  3324. prt.Material = "Neon"
  3325. prt.CFrame = cframe
  3326. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3327. game:GetService("Debris"):AddItem(prt, 5)
  3328. coroutine.resume(coroutine.create(function(Part, Mesh)
  3329. local rtype = rottype
  3330. for i = 0, 1, delay do
  3331. swait()
  3332. if rtype == 1 then
  3333. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3334. elseif rtype == 2 then
  3335. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3336. end
  3337. prt.Transparency = i
  3338. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3339. end
  3340. Part.Parent = nil
  3341. end), prt, msh)
  3342. end
  3343. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  3344. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3345. prt.Anchored = false
  3346. prt.CFrame = cframe
  3347. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3348. local wld = weld(prt, prt, Parent, cframe)
  3349. game:GetService("Debris"):AddItem(prt, 5)
  3350. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  3351. for i = 0, 1, delay do
  3352. wait()
  3353. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  3354. Part.Transparency = i
  3355. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3356. end
  3357. Part.Parent = nil
  3358. end), prt, msh, wld)
  3359. end
  3360. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  3361. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3362. prt.Anchored = false
  3363. prt.CFrame = cframe
  3364. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3365. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  3366. game:GetService("Debris"):AddItem(prt, 5)
  3367. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  3368. for i = 0, 1, delay do
  3369. wait()
  3370. Weld.C0 = euler(i * 20, 0, 0)
  3371. Part.Transparency = i
  3372. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3373. end
  3374. Part.Parent = nil
  3375. end), prt, msh, wld)
  3376. end
  3377. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3378. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3379. prt.Anchored = true
  3380. prt.CFrame = cframe
  3381. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3382. game:GetService("Debris"):AddItem(prt, 2)
  3383. coroutine.resume(coroutine.create(function(Part, Mesh)
  3384. for i = 0, 1, delay do
  3385. wait()
  3386. Part.CFrame = Part.CFrame
  3387. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3388. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3389. prt2.Anchored = true
  3390. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3391. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  3392. game:GetService("Debris"):AddItem(prt2, 2)
  3393. coroutine.resume(coroutine.create(function(Part, Mesh)
  3394. for i = 0, 1, 0.1 do
  3395. wait()
  3396. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  3397. end
  3398. Part.Parent = nil
  3399. end), prt2, msh2)
  3400. end
  3401. for i = 0, 1, delay * 2 do
  3402. wait()
  3403. Part.CFrame = Part.CFrame
  3404. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  3405. end
  3406. Part.Parent = nil
  3407. end), prt, msh)
  3408. end
  3409. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3410. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3411. prt.Anchored = true
  3412. prt.CFrame = cframe
  3413. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3414. game:GetService("Debris"):AddItem(prt, 2)
  3415. coroutine.resume(coroutine.create(function(Part, Mesh)
  3416. for i = 0, 1, delay do
  3417. wait()
  3418. Part.CFrame = Part.CFrame
  3419. Part.Transparency = i
  3420. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3421. end
  3422. Part.Parent = nil
  3423. end), prt, msh)
  3424. end
  3425. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  3426. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3427. prt.Anchored = true
  3428. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3429. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3430. game:GetService("Debris"):AddItem(prt, 2)
  3431. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  3432. CF = Part.CFrame
  3433. Numbb = 0
  3434. randnumb = math.random() / 10
  3435. rand1 = math.random() / 10
  3436. for i = 0, 1, rand1 do
  3437. wait()
  3438. CF = CF * cf(0, math.random() / 2, 0)
  3439. Part.CFrame = CF * euler(Numbb, 0, 0)
  3440. Part.Transparency = i
  3441. Numbb = Numbb + randnumb
  3442. end
  3443. Part.Parent = nil
  3444. end), prt, CF, Numbb, randnumb)
  3445. end
  3446. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3447. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3448. prt.Anchored = true
  3449. prt.CFrame = cframe
  3450. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  3451. game:GetService("Debris"):AddItem(prt, 5)
  3452. coroutine.resume(coroutine.create(function(Part, Mesh)
  3453. for i = 0, 1, delay do
  3454. wait()
  3455. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  3456. Part.Transparency = i
  3457. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3458. end
  3459. Part.Parent = nil
  3460. end), prt, msh)
  3461. end
  3462. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3463. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3464. prt.Anchored = true
  3465. prt.CFrame = cframe
  3466. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3467. game:GetService("Debris"):AddItem(prt, 2)
  3468. coroutine.resume(coroutine.create(function(Part, Mesh)
  3469. for i = 0, 1, delay do
  3470. wait()
  3471. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  3472. Part.Transparency = i
  3473. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3474. end
  3475. Part.Parent = nil
  3476. end), prt, msh)
  3477. end
  3478. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  3479. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3480. prt.Anchored = true
  3481. prt.CFrame = cframe * cf(x, y, z)
  3482. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  3483. game:GetService("Debris"):AddItem(prt, 5)
  3484. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  3485. local num = math.random()
  3486. local num2 = math.random(-3, 2) + math.random()
  3487. local numm = 0
  3488. for i = 0, 1, delay * 2 do
  3489. swait()
  3490. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  3491. Part.Transparency = i
  3492. numm = numm + 0.01
  3493. end
  3494. Part.Parent = nil
  3495. Mesh.Parent = nil
  3496. end), prt, msh, x, y, z)
  3497. end
  3498. function dmgstart(dmg, what)
  3499. hitcon = what.Touched:connect(function(hit)
  3500. local hum = hit.Parent:FindFirstChild("Humanoid")
  3501. if hum and not hum:IsDescendantOf(Character) then
  3502. hum:TakeDamage(dmg)
  3503. end
  3504. end)
  3505. end
  3506. function dmgstop()
  3507. hitcon:disconnect()
  3508. end
  3509.  
  3510. function Cloak()
  3511. Face.Parent = nil
  3512. cloaked = true
  3513. for _, v in pairs(Torso.Parent:children()) do
  3514. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3515. coroutine.resume(coroutine.create(function()
  3516. for i = 0, 1, 0.2 do
  3517. wait()
  3518. v.Transparency = i
  3519. end
  3520. v.Transparency = 0
  3521. end))
  3522. end
  3523. if v.className == "Hat" then
  3524. hatp = v.Handle
  3525. coroutine.resume(coroutine.create(function(derp)
  3526. for i = 0, 1, 0.2 do
  3527. wait()
  3528. derp.Transparency = i
  3529. end
  3530. derp.Transparency = 1
  3531. end), hatp)
  3532. end
  3533. end
  3534. for _, v in pairs(m:children()) do
  3535. if v.className == "Part" then
  3536. coroutine.resume(coroutine.create(function()
  3537. for i = 0, 1, 0.2 do
  3538. wait()
  3539. v.Transparency = i
  3540. end
  3541. v.Transparency = 0
  3542. end))
  3543. end
  3544. end
  3545. end
  3546. function UnCloak()
  3547. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  3548. Face.Parent = Head
  3549. cloaked = false
  3550. for _, v in pairs(Torso.Parent:children()) do
  3551. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3552. coroutine.resume(coroutine.create(function()
  3553. for i = 0, 1, 0.1 do
  3554. wait()
  3555. v.Transparency = v.Transparency - 0.1
  3556. end
  3557. v.Transparency = 0
  3558. end))
  3559. end
  3560. if v.className == "Hat" then
  3561. hatp = v.Handle
  3562. coroutine.resume(coroutine.create(function(derp)
  3563. for i = 0, 1, 0.1 do
  3564. wait()
  3565. derp.Transparency = derp.Transparency - 0.1
  3566. end
  3567. derp.Transparency = 0
  3568. end), hatp)
  3569. end
  3570. end
  3571. for _, v in pairs(m:children()) do
  3572. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  3573. coroutine.resume(coroutine.create(function()
  3574. for i = 0, 1, 0.1 do
  3575. wait()
  3576. v.Transparency = v.Transparency - 0.1
  3577. end
  3578. v.Transparency = 0
  3579. end))
  3580. v.Transparency = 0
  3581. end
  3582. end
  3583. end
  3584. local origcolor = BrickColor.new("Pastel light blue")
  3585. function Explode(rad, par, pitch, vol, mindam, maxdam)
  3586. local expart = Instance.new("Part", char)
  3587. local expart2 = Instance.new("Part", char)
  3588. local rin = Instance.new("Part", char)
  3589. local rin2 = Instance.new("Part", char)
  3590. local partMesh = Instance.new("SpecialMesh", expart)
  3591. partMesh.MeshType = "Sphere"
  3592. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3593. partMesh2.MeshType = "Sphere"
  3594. local partMesh3 = Instance.new("SpecialMesh", rin)
  3595. partMesh3.MeshType = "Brick"
  3596. local partMesh4 = Instance.new("SpecialMesh", rin2)
  3597. partMesh4.MeshType = "Brick"
  3598. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  3599. partMesh.Scale = vt(rad, rad, rad)
  3600. expart.Size = vt(1, 1, 1)
  3601. expart.Transparency = 0
  3602. expart.Anchored = true
  3603. expart.Material = "Neon"
  3604. expart.BrickColor = bc("White")
  3605. expart.CFrame = par.CFrame
  3606. partMesh2.Scale = vt(rad, rad, rad)
  3607. expart2.Size = vt(1.15, 1.15, 1.15)
  3608. expart2.Transparency = 0.5
  3609. expart2.Anchored = true
  3610. expart2.Material = "Neon"
  3611. expart2.BrickColor = par.BrickColor
  3612. expart2.CFrame = par.CFrame
  3613. rin.Size = vt(1.15, 1.15, 1.15)
  3614. rin.Transparency = 1
  3615. rin.Anchored = true
  3616. rin.Material = "Neon"
  3617. rin.BrickColor = par.BrickColor
  3618. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3619. rin2.Size = vt(1.15, 1.15, 1.15)
  3620. rin2.Transparency = 1
  3621. rin2.Anchored = true
  3622. rin2.Material = "Neon"
  3623. rin2.BrickColor = par.BrickColor
  3624. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3625. partMesh3.Scale = vt(0, 1, 0)
  3626. partMesh4.Scale = vt(0, 1, 0)
  3627. local dec2 = Instance.new("Decal", rin)
  3628. dec2.Face = "Top"
  3629. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  3630. dec2.Parent = rin
  3631. local dec2b = dec2:Clone()
  3632. dec2b.Face = "Bottom"
  3633. dec2b.Parent = rin
  3634. local dec2a = Instance.new("Decal", rin2)
  3635. dec2a.Face = "Top"
  3636. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  3637. dec2a.Parent = rin2
  3638. local dec2ab = dec2a:Clone()
  3639. dec2ab.Face = "Bottom"
  3640. dec2ab.Parent = rin2
  3641. expart.CanCollide = false
  3642. expart2.CanCollide = false
  3643. rin.CanCollide = false
  3644. rin2.CanCollide = false
  3645. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  3646. local value = 1 * rad / 6.5
  3647. for i = 0, 199 do
  3648. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3649. expart.CFrame = expart.CFrame
  3650. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3651. expart2.CFrame = expart.CFrame
  3652. value = value - 0.035 * rad / 30
  3653. if value < 7.5 then
  3654. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  3655. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  3656. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  3657. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  3658. end
  3659. if value < 0 then
  3660. dec2.Transparency = dec2.Transparency + 0.025
  3661. dec2a.Transparency = dec2a.Transparency + 0.025
  3662. dec2b.Transparency = dec2b.Transparency + 0.025
  3663. dec2ab.Transparency = dec2ab.Transparency + 0.025
  3664. expart.Transparency = expart.Transparency + 0.025
  3665. expart2.Transparency = expart2.Transparency + 0.025
  3666. rin.Transparency = rin.Transparency + 0.025
  3667. rin2.Transparency = rin2.Transparency + 0.025
  3668. end
  3669. swait()
  3670. end
  3671. game:GetService("Debris"):AddItem(expart, 1)
  3672. game:GetService("Debris"):AddItem(expart2, 1)
  3673. game:GetService("Debris"):AddItem(rin, 1)
  3674. game:GetService("Debris"):AddItem(rin2, 1)
  3675. end
  3676. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  3677. local expart = Instance.new("Part", char)
  3678. local expart2 = Instance.new("Part", char)
  3679. local partMesh = Instance.new("SpecialMesh", expart)
  3680. partMesh.MeshType = "Sphere"
  3681. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3682. partMesh2.MeshType = "Sphere"
  3683. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  3684. partMesh.Scale = vt(rad, rad, rad)
  3685. expart.Size = vt(1, 1, 1)
  3686. expart.Transparency = 0
  3687. expart.Anchored = true
  3688. expart.Material = "Neon"
  3689. expart.BrickColor = bc("White")
  3690. expart.CFrame = par.CFrame
  3691. partMesh2.Scale = vt(rad, rad, rad)
  3692. expart2.Size = vt(1.15, 1.15, 1.15)
  3693. expart2.Transparency = 0.5
  3694. expart2.Anchored = true
  3695. expart2.Material = "Neon"
  3696. expart2.BrickColor = par.BrickColor
  3697. expart2.CFrame = par.CFrame
  3698. expart.CanCollide = false
  3699. expart2.CanCollide = false
  3700. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  3701. local value = 1 * rad / 6.5
  3702. for i = 0, 75 do
  3703. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3704. expart.CFrame = expart.CFrame
  3705. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3706. expart2.CFrame = expart.CFrame
  3707. value = value - 0.035 * rad / 5
  3708. if value < 0 then
  3709. value = 0
  3710. expart.Transparency = expart.Transparency + 0.05
  3711. expart2.Transparency = expart2.Transparency + 0.05
  3712. end
  3713. swait()
  3714. end
  3715. game:GetService("Debris"):AddItem(expart, 1)
  3716. game:GetService("Debris"):AddItem(expart2, 1)
  3717. end
  3718. function AreaDanger(rad, par, mindam, maxdam)
  3719. local expart = Instance.new("Part", char)
  3720. local partMesh = Instance.new("SpecialMesh", expart)
  3721. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3722. partMesh.MeshType = "Sphere"
  3723. partMesh.Scale = vt(rad, rad, rad)
  3724. expart.Size = vt(1, 1, 1)
  3725. expart.Transparency = 0.5
  3726. expart.Anchored = true
  3727. expart.Material = "Neon"
  3728. expart.CanCollide = false
  3729. expart.BrickColor = par.BrickColor
  3730. expart.CFrame = par.CFrame
  3731. local value = 1 * rad / 5
  3732. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  3733. for i = 0, 14 do
  3734. wait()
  3735. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3736. expart.CFrame = expart.CFrame
  3737. value = value - 0.035 * rad
  3738. if value < 0 then
  3739. value = 0
  3740. end
  3741. end
  3742. wait(0.25)
  3743. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  3744. wait(0.5)
  3745. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  3746. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  3747. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  3748. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  3749. for i = 0, 14 do
  3750. wait()
  3751. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3752. expart.CFrame = expart.CFrame
  3753. value = value - 0.035 * rad / 2
  3754. end
  3755. expart.Transparency = 1
  3756. game:GetService("Debris"):AddItem(expart, 5)
  3757. end
  3758. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  3759. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  3760. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  3761. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  3762. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  3763. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  3764. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  3765. for i = 0, 24 do
  3766. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  3767. end
  3768. for i = 0, 24 do
  3769. local expart = Instance.new("Part", char)
  3770. expart.Transparency = 1
  3771. expart.Anchored = true
  3772. expart.CanCollide = false
  3773. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  3774. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  3775. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3776. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  3777. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  3778. for i = 0, 9 do
  3779. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  3780. end
  3781. game:GetService("Debris"):AddItem(expart, 2)
  3782. wait(0.1)
  3783. end
  3784. end
  3785. function EXterPlosion(par)
  3786. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  3787. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  3788. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  3789. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  3790. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  3791. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  3792. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  3793. for i = 0, 24 do
  3794. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  3795. end
  3796. for i = 0, 24 do
  3797. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  3798. end
  3799. end
  3800. function ring(type, pos, scale, value)
  3801. local type = type
  3802. local rng = Instance.new("Part", char)
  3803. rng.Anchored = true
  3804. rng.BrickColor = origcolor
  3805. rng.CanCollide = false
  3806. rng.FormFactor = 3
  3807. rng.Name = "Ring"
  3808. rng.Size = Vector3.new(1, 1, 1)
  3809. rng.Transparency = 0
  3810. rng.TopSurface = 0
  3811. rng.BottomSurface = 0
  3812. rng.CFrame = pos
  3813. local rngm = Instance.new("SpecialMesh", rng)
  3814. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3815. rngm.Scale = scale
  3816. local scaler2 = 1
  3817. if type == "Add" then
  3818. scaler2 = 1 * value
  3819. elseif type == "Divide" then
  3820. scaler2 = 1 / value
  3821. end
  3822. coroutine.resume(coroutine.create(function()
  3823. for i = 0, 10, 0.1 do
  3824. swait()
  3825. if type == "Add" then
  3826. scaler2 = scaler2 - 0.01 * value
  3827. elseif type == "Divide" then
  3828. scaler2 = scaler2 - 0.01 / value
  3829. end
  3830. rng.Transparency = rng.Transparency + 0.01
  3831. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3832. end
  3833. rng:Destroy()
  3834. end))
  3835. end
  3836. function wave(type, pos, scale, value)
  3837. local type = type
  3838. local rng = Instance.new("Part", char)
  3839. rng.Anchored = true
  3840. rng.BrickColor = origcolor
  3841. rng.CanCollide = false
  3842. rng.FormFactor = 3
  3843. rng.Name = "Ring"
  3844. rng.Size = Vector3.new(1, 1, 1)
  3845. rng.Transparency = 0
  3846. rng.TopSurface = 0
  3847. rng.BottomSurface = 0
  3848. rng.CFrame = pos
  3849. local rngm = Instance.new("SpecialMesh", rng)
  3850. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3851. rngm.Scale = scale
  3852. local scaler2 = 1
  3853. if type == "Add" then
  3854. scaler2 = 1 * value
  3855. elseif type == "Divide" then
  3856. scaler2 = 1 / value
  3857. end
  3858. coroutine.resume(coroutine.create(function()
  3859. for i = 0, 10, 0.1 do
  3860. swait()
  3861. if type == "Add" then
  3862. scaler2 = scaler2 - 0.01 * value
  3863. elseif type == "Divide" then
  3864. scaler2 = scaler2 - 0.01 / value
  3865. end
  3866. rng.Transparency = rng.Transparency + 0.01
  3867. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3868. end
  3869. rng:Destroy()
  3870. end))
  3871. end
  3872. function wind(type, pos, scale, value, speed)
  3873. local type = type
  3874. local rng = Instance.new("Part", char)
  3875. rng.Anchored = true
  3876. rng.BrickColor = origcolor
  3877. rng.CanCollide = false
  3878. rng.FormFactor = 3
  3879. rng.Name = "Ring"
  3880. rng.Size = Vector3.new(1, 1, 1)
  3881. rng.Transparency = 0
  3882. rng.TopSurface = 0
  3883. rng.BottomSurface = 0
  3884. rng.CFrame = pos
  3885. local rngm = Instance.new("SpecialMesh", rng)
  3886. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3887. rngm.Scale = scale
  3888. local scaler2 = 1
  3889. if type == "Add" then
  3890. scaler2 = 1 * value
  3891. elseif type == "Divide" then
  3892. scaler2 = 1 / value
  3893. end
  3894. coroutine.resume(coroutine.create(function()
  3895. for i = 0, 10, 0.1 do
  3896. swait()
  3897. if type == "Add" then
  3898. scaler2 = scaler2 - 0.01 * value
  3899. elseif type == "Divide" then
  3900. scaler2 = scaler2 - 0.01 / value
  3901. end
  3902. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  3903. rng.Transparency = rng.Transparency + 0.01
  3904. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3905. end
  3906. rng:Destroy()
  3907. end))
  3908. end
  3909. function groundwind(type, pos, scale, value, speed)
  3910. local type = type
  3911. local rng = Instance.new("Part", char)
  3912. rng.Anchored = true
  3913. rng.BrickColor = origcolor
  3914. rng.CanCollide = false
  3915. rng.FormFactor = 3
  3916. rng.Name = "Ring"
  3917. rng.Size = Vector3.new(1, 1, 1)
  3918. rng.Transparency = 0
  3919. rng.TopSurface = 0
  3920. rng.BottomSurface = 0
  3921. rng.CFrame = pos
  3922. local rngm = Instance.new("SpecialMesh", rng)
  3923. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3924. rngm.Scale = scale
  3925. local scaler2 = 1
  3926. if type == "Add" then
  3927. scaler2 = 1 * value
  3928. elseif type == "Divide" then
  3929. scaler2 = 1 / value
  3930. end
  3931. coroutine.resume(coroutine.create(function()
  3932. for i = 0, 10, 0.1 do
  3933. swait()
  3934. if type == "Add" then
  3935. scaler2 = scaler2 - 0.01 * value
  3936. elseif type == "Divide" then
  3937. scaler2 = scaler2 - 0.01 / value
  3938. end
  3939. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  3940. rng.Transparency = rng.Transparency + 0.01
  3941. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  3942. end
  3943. rng:Destroy()
  3944. end))
  3945. end
  3946. function CameraManager()
  3947. if TwoD and not CamInterrupt then
  3948. if Humanoid.Health > 0 then
  3949. Camera.CameraSubject = Humanoid
  3950. Camera.CameraType = "Scriptable"
  3951. Humanoid.AutoRotate = false
  3952. if Booleans.GyroUse then
  3953. Directer.MaxTorque = Vec3(0, huge, 0)
  3954. else
  3955. Directer.MaxTorque = Vec3(0, 0, 0)
  3956. end
  3957. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  3958. if Booleans.CamFollow then
  3959. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  3960. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  3961. else
  3962. CPart.Position = RootPart.Position
  3963. end
  3964. else
  3965. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  3966. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  3967. end
  3968. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  3969. else
  3970. Camera.CameraSubject = Humanoid
  3971. Camera.CameraType = "Custom"
  3972. end
  3973. end
  3974. end
  3975. function sphere(bonuspeed, type, pos, scale, value, color)
  3976. local type = type
  3977. local rng = Instance.new("Part", char)
  3978. rng.Anchored = true
  3979. rng.BrickColor = color
  3980. rng.CanCollide = false
  3981. rng.FormFactor = 3
  3982. rng.Name = "Ring"
  3983. rng.Material = "Neon"
  3984. rng.Size = Vector3.new(1, 1, 1)
  3985. rng.Transparency = 0
  3986. rng.TopSurface = 0
  3987. rng.BottomSurface = 0
  3988. rng.CFrame = pos
  3989. local rngm = Instance.new("SpecialMesh", rng)
  3990. rngm.MeshType = "Sphere"
  3991. rngm.Scale = scale
  3992. if rainbowmode == true then
  3993. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3994. end
  3995. local scaler2 = 1
  3996. if type == "Add" then
  3997. scaler2 = 1 * value
  3998. elseif type == "Divide" then
  3999. scaler2 = 1 / value
  4000. end
  4001. coroutine.resume(coroutine.create(function()
  4002. for i = 0, 10 / bonuspeed, 0.1 do
  4003. swait()
  4004. if rainbowmode == true then
  4005. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4006. end
  4007. if type == "Add" then
  4008. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4009. elseif type == "Divide" then
  4010. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4011. end
  4012. if chaosmode == true then
  4013. rng.BrickColor = BrickColor.random()
  4014. end
  4015. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  4016. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  4017. end
  4018. rng:Destroy()
  4019. end))
  4020. end
  4021. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  4022. local type = type
  4023. local rng = Instance.new("Part", char)
  4024. rng.Anchored = true
  4025. rng.BrickColor = color
  4026. rng.CanCollide = false
  4027. rng.FormFactor = 3
  4028. rng.Name = "Ring"
  4029. rng.Material = "Neon"
  4030. rng.Size = Vector3.new(1, 1, 1)
  4031. rng.Transparency = 0
  4032. rng.TopSurface = 0
  4033. rng.BottomSurface = 0
  4034. rng.CFrame = pos
  4035. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  4036. local rngm = Instance.new("SpecialMesh", rng)
  4037. rngm.MeshType = "Sphere"
  4038. rngm.Scale = vt(x1, y1, z1)
  4039. if rainbowmode == true then
  4040. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4041. end
  4042. local scaler2 = 1
  4043. local speeder = FastSpeed
  4044. if type == "Add" then
  4045. scaler2 = 1 * value
  4046. elseif type == "Divide" then
  4047. scaler2 = 1 / value
  4048. end
  4049. coroutine.resume(coroutine.create(function()
  4050. for i = 0, 10 / bonuspeed, 0.1 do
  4051. swait()
  4052. if rainbowmode == true then
  4053. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4054. end
  4055. if type == "Add" then
  4056. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4057. elseif type == "Divide" then
  4058. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4059. end
  4060. if chaosmode == true then
  4061. rng.BrickColor = BrickColor.random()
  4062. end
  4063. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  4064. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  4065. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  4066. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  4067. end
  4068. rng:Destroy()
  4069. end))
  4070. end
  4071. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  4072. local type = type
  4073. local rng = Instance.new("Part", char)
  4074. rng.Anchored = true
  4075. rng.BrickColor = color
  4076. rng.CanCollide = false
  4077. rng.FormFactor = 3
  4078. rng.Name = "Ring"
  4079. rng.Material = "Neon"
  4080. rng.Size = Vector3.new(1, 1, 1)
  4081. rng.Transparency = 1
  4082. rng.TopSurface = 0
  4083. rng.BottomSurface = 0
  4084. rng.CFrame = pos
  4085. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  4086. local rngm = Instance.new("SpecialMesh", rng)
  4087. rngm.MeshType = "Sphere"
  4088. rngm.Scale = vt(x1, y1, z1)
  4089. if rainbowmode == true then
  4090. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4091. end
  4092. local scaler2 = 1
  4093. local speeder = FastSpeed
  4094. if type == "Add" then
  4095. scaler2 = 1 * value
  4096. elseif type == "Divide" then
  4097. scaler2 = 1 / value
  4098. end
  4099. coroutine.resume(coroutine.create(function()
  4100. for i = 0, 10 / bonuspeed, 0.1 do
  4101. swait()
  4102. if rainbowmode == true then
  4103. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4104. end
  4105. if type == "Add" then
  4106. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4107. elseif type == "Divide" then
  4108. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4109. end
  4110. if chaosmode == true then
  4111. rng.BrickColor = BrickColor.random()
  4112. end
  4113. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  4114. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  4115. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  4116. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  4117. end
  4118. rng:Destroy()
  4119. end))
  4120. end
  4121. function dmg(dude)
  4122. if dude.Name ~= Character then
  4123. local bgf = Instance.new("BodyGyro", dude.Head)
  4124. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  4125. local val = Instance.new("BoolValue", dude)
  4126. val.Name = "IsHit"
  4127. local ds = coroutine.wrap(function()
  4128. dude:WaitForChild("Head"):BreakJoints()
  4129. wait(0.5)
  4130. targetted = nil
  4131. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  4132. coroutine.resume(coroutine.create(function()
  4133. for i, v in pairs(dude:GetChildren()) do
  4134. if v:IsA("Accessory") then
  4135. v:Destroy()
  4136. end
  4137. if v:IsA("Humanoid") then
  4138. v:Destroy()
  4139. end
  4140. if v:IsA("CharacterMesh") then
  4141. v:Destroy()
  4142. end
  4143. if v:IsA("Model") then
  4144. v:Destroy()
  4145. end
  4146. if v:IsA("Part") or v:IsA("MeshPart") then
  4147. for x, o in pairs(v:GetChildren()) do
  4148. if o:IsA("Decal") then
  4149. o:Destroy()
  4150. end
  4151. end
  4152. coroutine.resume(coroutine.create(function()
  4153. v.Material = "Neon"
  4154. v.CanCollide = false
  4155. local bld = Instance.new("ParticleEmitter", v)
  4156. bld.LightEmission = 1
  4157. bld.Texture = "rbxassetid://284205403"
  4158. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  4159. bld.Rate = 50
  4160. bld.Lifetime = NumberRange.new(1)
  4161. bld.Size = NumberSequence.new({
  4162. NumberSequenceKeypoint.new(0, 0.75, 0),
  4163. NumberSequenceKeypoint.new(1, 0, 0)
  4164. })
  4165. bld.Transparency = NumberSequence.new({
  4166. NumberSequenceKeypoint.new(0, 0, 0),
  4167. NumberSequenceKeypoint.new(1, 1, 0)
  4168. })
  4169. bld.Speed = NumberRange.new(0, 0)
  4170. bld.VelocitySpread = 50000
  4171. bld.Rotation = NumberRange.new(-500, 500)
  4172. bld.RotSpeed = NumberRange.new(-500, 500)
  4173. local sbs = Instance.new("BodyPosition", v)
  4174. sbs.P = 3000
  4175. sbs.D = 1000
  4176. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  4177. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  4178. v.Color = Color3.new(1, 1, 1)
  4179. coroutine.resume(coroutine.create(function()
  4180. for i = 0, 49 do
  4181. swait(1)
  4182. v.Transparency = v.Transparency + 0.02
  4183. end
  4184. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  4185. bld.Speed = NumberRange.new(1, 5)
  4186. bld.Acceleration = vt(0, 10, 0)
  4187. wait(0.5)
  4188. bld.Enabled = false
  4189. wait(3)
  4190. v:Destroy()
  4191. dude:Destroy()
  4192. end))
  4193. end))
  4194. end
  4195. end
  4196. end))
  4197. end)
  4198. ds()
  4199. end
  4200. end
  4201. function FindNearestHead(Position, Distance, SinglePlayer)
  4202. if SinglePlayer then
  4203. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  4204. end
  4205. local List = {}
  4206. for i, v in pairs(workspace:GetChildren()) do
  4207. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  4208. table.insert(List, v)
  4209. end
  4210. end
  4211. return List
  4212. end
  4213. function FaceMouse()
  4214. Cam = workspace.CurrentCamera
  4215. return {
  4216. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  4217. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4218. }
  4219. end
  4220. function FaceMouse2()
  4221. Cam = workspace.CurrentCamera
  4222. return {
  4223. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  4224. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4225. }
  4226. end
  4227. local ModeOfGlitch = 1
  4228. local storehumanoidWS = 16
  4229. function ExtinctiveHeartbreak()
  4230. local targetted
  4231. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4232. targetted = mouse.Target.Parent
  4233. end
  4234. if targetted ~= nil then
  4235. attack = true
  4236. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4237. for i = 0, 9 do
  4238. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4239. end
  4240. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4241. local originalpos = root.CFrame
  4242. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  4243. for i = 0, 9 do
  4244. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4245. end
  4246. hum.WalkSpeed = 0
  4247. targetted.Head.Anchored = true
  4248. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4249. for i = 0, 1 do
  4250. swait()
  4251. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  4252. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  4253. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4)
  4254. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  4255. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4)
  4256. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4)
  4257. end
  4258. coroutine.resume(coroutine.create(function()
  4259. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  4260. bld.LightEmission = 0.1
  4261. bld.Texture = "rbxassetid://284205403"
  4262. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  4263. bld.Rate = 500
  4264. bld.Lifetime = NumberRange.new(1)
  4265. bld.Size = NumberSequence.new({
  4266. NumberSequenceKeypoint.new(0, 2, 0),
  4267. NumberSequenceKeypoint.new(1, 0, 0)
  4268. })
  4269. bld.Acceleration = vt(0, -25, 0)
  4270. bld.Transparency = NumberSequence.new({
  4271. NumberSequenceKeypoint.new(0, 0, 0),
  4272. NumberSequenceKeypoint.new(1, 0, 0)
  4273. })
  4274. bld.Speed = NumberRange.new(10, 50)
  4275. bld.EmissionDirection = "Front"
  4276. bld.VelocitySpread = 25
  4277. bld.Rotation = NumberRange.new(-500, 500)
  4278. bld.RotSpeed = NumberRange.new(-500, 500)
  4279. end))
  4280. coroutine.resume(coroutine.create(function()
  4281. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  4282. bld.LightEmission = 0.1
  4283. bld.Texture = "rbxassetid://284205403"
  4284. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  4285. bld.Rate = 500
  4286. bld.Lifetime = NumberRange.new(1)
  4287. bld.Size = NumberSequence.new({
  4288. NumberSequenceKeypoint.new(0, 2, 0),
  4289. NumberSequenceKeypoint.new(1, 0, 0)
  4290. })
  4291. bld.Acceleration = vt(0, -25, 0)
  4292. bld.Transparency = NumberSequence.new({
  4293. NumberSequenceKeypoint.new(0, 0, 0),
  4294. NumberSequenceKeypoint.new(1, 0, 0)
  4295. })
  4296. bld.Speed = NumberRange.new(10, 50)
  4297. bld.EmissionDirection = "Front"
  4298. bld.VelocitySpread = 25
  4299. bld.Rotation = NumberRange.new(-500, 500)
  4300. bld.RotSpeed = NumberRange.new(-500, 500)
  4301. end))
  4302. CameraEnshaking(5, 5)
  4303. game:GetService("Debris"):AddItem(bld, 3)
  4304. dmg(targetted)
  4305. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  4306. for i = 0, 1, 1 do
  4307. swait()
  4308. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  4309. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  4310. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8)
  4311. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  4312. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  4313. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8)
  4314. end
  4315. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4316. for i = 0, 9 do
  4317. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4318. end
  4319. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4320. root.CFrame = originalpos
  4321. for i = 0, 9 do
  4322. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4323. end
  4324. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4325. bld.Enabled = false
  4326. attack = false
  4327. hum.WalkSpeed = storehumanoidWS
  4328. end
  4329. end
  4330. function PureBomb()
  4331. attack = true
  4332. local orb = Instance.new("Part", char)
  4333. orb.Anchored = true
  4334. orb.BrickColor = BrickColor.new("Toothpaste")
  4335. orb.CanCollide = false
  4336. orb.FormFactor = 3
  4337. orb.Name = "Ring"
  4338. orb.Material = "Neon"
  4339. orb.Size = Vector3.new(1, 1, 1)
  4340. orb.Transparency = 0
  4341. orb.TopSurface = 0
  4342. orb.BottomSurface = 0
  4343. local orbm = Instance.new("SpecialMesh", orb)
  4344. orbm.MeshType = "Sphere"
  4345. orbm.Name = "SizeMesh"
  4346. orbm.Scale = vt(0, 0, 0)
  4347. local scaled = 0.1
  4348. local posid = 0
  4349. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  4350. for i = 0, 5, 0.1 do
  4351. swait()
  4352. scaled = scaled - 0.001
  4353. posid = posid - scaled
  4354. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4355. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  4356. sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10)
  4357. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1)
  4358. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1)
  4359. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4360. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4361. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  4362. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1)
  4363. end
  4364. for i = 0, 2, 0.1 do
  4365. swait()
  4366. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4367. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  4368. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  4369. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4)
  4370. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  4371. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  4372. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  4373. end
  4374. coroutine.resume(coroutine.create(function()
  4375. orb.Anchored = false
  4376. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  4377. local a = Instance.new("Part", workspace)
  4378. a.Name = "Direction"
  4379. a.Anchored = true
  4380. a.BrickColor = bc("Bright red")
  4381. a.Material = "Neon"
  4382. a.Transparency = 1
  4383. a.CanCollide = false
  4384. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  4385. local ignore = orb
  4386. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4387. a.BottomSurface = 10
  4388. a.TopSurface = 10
  4389. local distance = (orb.CFrame.p - position).magnitude
  4390. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4391. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4392. orb.CFrame = a.CFrame
  4393. a:Destroy()
  4394. local bv = Instance.new("BodyVelocity")
  4395. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4396. bv.velocity = orb.CFrame.lookVector * 125
  4397. bv.Parent = orb
  4398. local hitted = false
  4399. game:GetService("Debris"):AddItem(orb, 15)
  4400. wait()
  4401. local hit = orb.Touched:connect(function(hit)
  4402. if hitted == false then
  4403. hitted = true
  4404. CameraEnshaking(10, 2.5)
  4405. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  4406. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  4407. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  4408. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  4409. for i = 0, 9 do
  4410. sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  4411. sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  4412. end
  4413. orb.Anchored = true
  4414. orb.Transparency = 1
  4415. wait(8)
  4416. orb:Destroy()
  4417. end
  4418. end)
  4419. end))
  4420. for i = 0, 1, 0.1 do
  4421. swait()
  4422. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  4423. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  4424. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4)
  4425. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  4426. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  4427. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  4428. end
  4429. attack = false
  4430. end
  4431. function ChaosGroundStrike()
  4432. attack = true
  4433. for i = 0, 2, 0.1 do
  4434. swait()
  4435. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4436. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4438. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4439. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4440. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4441. end
  4442. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  4443. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  4444. CameraEnshaking(4, 12)
  4445. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  4446. if v:FindFirstChild("Head") then
  4447. dmg(v)
  4448. end
  4449. end
  4450. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  4451. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  4452. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  4453. for i = 0, 2, 0.1 do
  4454. swait()
  4455. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4456. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4457. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4458. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4459. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4460. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4461. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4462. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4463. end
  4464. attack = false
  4465. end
  4466. function ChaosBegone()
  4467. attack = true
  4468. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  4469. for i = 0, 10, 0.1 do
  4470. swait()
  4471. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4472. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4473. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4474. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4475. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4476. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4477. end
  4478. chatfunc("DIE!!", BrickColor.random().Color)
  4479. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  4480. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  4481. CameraEnshaking(5, 25)
  4482. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4483. if v:FindFirstChild("Head") then
  4484. dmg(v)
  4485. end
  4486. end
  4487. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  4488. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  4489. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  4490. for i = 0, 3, 0.1 do
  4491. swait()
  4492. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4493. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4494. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4495. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4496. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4497. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4498. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4499. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4500. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4501. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4502. end
  4503. attack = false
  4504. end
  4505. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  4506. local orb = Instance.new("Part", char)
  4507. orb.Anchored = true
  4508. orb.BrickColor = color
  4509. orb.CanCollide = false
  4510. orb.FormFactor = 3
  4511. orb.Name = "Ring"
  4512. orb.Material = "Neon"
  4513. orb.Size = Vector3.new(1, 1, 1)
  4514. orb.Transparency = 0
  4515. orb.TopSurface = 0
  4516. orb.BottomSurface = 0
  4517. local orbm = Instance.new("SpecialMesh", orb)
  4518. orbm.MeshType = "Sphere"
  4519. orb.CFrame = positted
  4520. orbm.Name = "SizeMesh"
  4521. orbm.Scale = vt(1, 1, 1)
  4522. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  4523. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  4524. coroutine.resume(coroutine.create(function()
  4525. wait(timer)
  4526. CameraEnshaking(3, ShakePower)
  4527. orb.Transparency = 1
  4528. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  4529. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  4530. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  4531. wait(3)
  4532. orb:Destroy()
  4533. end))
  4534. end
  4535. function orb_spawn(positted, timer)
  4536. local randomcol = math.random(1, 2)
  4537. local orb = Instance.new("Part", char)
  4538. orb.Anchored = true
  4539. if randomcol == 1 then
  4540. orb.BrickColor = BrickColor.new("White")
  4541. elseif randomcol == 2 then
  4542. orb.BrickColor = BrickColor.new("Really black")
  4543. end
  4544. orb.CanCollide = false
  4545. orb.FormFactor = 3
  4546. orb.Name = "Ring"
  4547. orb.Material = "Neon"
  4548. orb.Size = Vector3.new(1, 1, 1)
  4549. orb.Transparency = 0
  4550. orb.TopSurface = 0
  4551. orb.BottomSurface = 0
  4552. local orbm = Instance.new("SpecialMesh", orb)
  4553. orbm.MeshType = "Sphere"
  4554. orb.CFrame = positted
  4555. orbm.Name = "SizeMesh"
  4556. orbm.Scale = vt(1, 1, 1)
  4557. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  4558. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  4559. for i = 0, 2 do
  4560. sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0)
  4561. end
  4562. coroutine.resume(coroutine.create(function()
  4563. wait(timer)
  4564. CameraEnshaking(3, 2)
  4565. orb.Transparency = 1
  4566. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  4567. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  4568. for i = 0, 4 do
  4569. sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0)
  4570. end
  4571. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  4572. wait(3)
  4573. orb:Destroy()
  4574. end))
  4575. end
  4576. function scattercorrupt()
  4577. attack = true
  4578. local rot = 0
  4579. local randomrotations = math.random(1, 2)
  4580. local lookv = 2.5
  4581. local power = 5
  4582. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  4583. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  4584. for i = 0, 9 do
  4585. sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
  4586. end
  4587. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  4588. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  4589. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  4590. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  4591. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  4592. local hite = Instance.new("Part", char)
  4593. hite.Anchored = true
  4594. hite.CanCollide = false
  4595. hite.FormFactor = 3
  4596. hite.Name = "Ring"
  4597. hite.Material = "Neon"
  4598. hite.Size = Vector3.new(1, 1, 1)
  4599. hite.Transparency = 1
  4600. hite.TopSurface = 0
  4601. hite.BottomSurface = 0
  4602. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  4603. local rem = Instance.new("Part", char)
  4604. rem.Anchored = true
  4605. rem.CanCollide = false
  4606. rem.FormFactor = 3
  4607. rem.Name = "Ring"
  4608. rem.Material = "Neon"
  4609. rem.Size = Vector3.new(1, 1, 1)
  4610. rem.Transparency = 1
  4611. rem.TopSurface = 0
  4612. rem.BottomSurface = 0
  4613. rem.CFrame = hite.CFrame
  4614. local rem2 = rem:Clone()
  4615. rem2.Parent = char
  4616. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4617. local rem3 = rem:Clone()
  4618. rem3.Parent = char
  4619. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4620. local rem4 = rem:Clone()
  4621. rem4.Parent = char
  4622. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4623. hite:Destroy()
  4624. coroutine.resume(coroutine.create(function()
  4625. for i = 0, 24 do
  4626. swait(1)
  4627. if randomrotations == 1 then
  4628. rot = rot + 1
  4629. elseif randomrotations == 2 then
  4630. rot = rot - 1
  4631. end
  4632. power = power + 0.5
  4633. lookv = lookv + 7.5
  4634. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  4635. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4636. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4637. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4638. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4639. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4640. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4641. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4642. end
  4643. end))
  4644. attack = false
  4645. end
  4646. function yinyangi()
  4647. attack = true
  4648. for i = 0, 2, 0.1 do
  4649. swait()
  4650. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2)
  4651. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2)
  4652. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2)
  4653. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4654. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  4655. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  4656. end
  4657. local bv = Instance.new("BodyVelocity")
  4658. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4659. bv.velocity = root.CFrame.lookVector * 175
  4660. bv.Parent = root
  4661. for Rotations = 0, 9 do
  4662. for i = 0, 1, 0.5 do
  4663. swait()
  4664. bv.velocity = root.CFrame.lookVector * 175
  4665. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4666. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4667. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  4668. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4669. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4670. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4671. end
  4672. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4673. for i = 0, 1, 0.5 do
  4674. swait()
  4675. bv.velocity = root.CFrame.lookVector * 175
  4676. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4677. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4678. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5)
  4679. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4680. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4681. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4682. end
  4683. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4684. for i = 0, 1, 0.5 do
  4685. swait()
  4686. bv.velocity = root.CFrame.lookVector * 175
  4687. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4688. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4689. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5)
  4690. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4691. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4692. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4693. end
  4694. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4695. for i = 0, 1, 0.5 do
  4696. swait()
  4697. bv.velocity = root.CFrame.lookVector * 175
  4698. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4699. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4700. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5)
  4701. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4702. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4703. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4704. end
  4705. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4706. end
  4707. bv:Destroy()
  4708. attack = false
  4709. end
  4710. function Wip()
  4711. attack = true
  4712. local rngb = Instance.new("Part", char)
  4713. rngb.Anchored = true
  4714. rngb.BrickColor = origcolor
  4715. rngb.CanCollide = false
  4716. rngb.FormFactor = 3
  4717. rngb.Name = "Ring"
  4718. rngb.Material = "Neon"
  4719. rngb.Size = Vector3.new(1, 0.05, 1)
  4720. rngb.Transparency = 1
  4721. rngb.TopSurface = 0
  4722. rngb.BottomSurface = 0
  4723. local rngmb = Instance.new("SpecialMesh", rngb)
  4724. rngmb.MeshType = "Brick"
  4725. rngmb.Name = "SizeMesh"
  4726. rngmb.Scale = vt(0, 1, 0)
  4727. local orb = rngb:Clone()
  4728. orb.Parent = char
  4729. orb.Transparency = 0
  4730. orb.BrickColor = BrickColor.new("Really black")
  4731. orb.Size = vt(1, 1, 1)
  4732. local orbmish = orb.SizeMesh
  4733. orbmish.Scale = vt(0, 0, 0)
  4734. orbmish.MeshType = "Sphere"
  4735. local orbe = rngb:Clone()
  4736. orbe.Parent = char
  4737. orbe.Transparency = 0.5
  4738. orbe.BrickColor = BrickColor.new("Really black")
  4739. orbe.Size = vt(1, 1, 1)
  4740. local orbmish2 = orbe.SizeMesh
  4741. orbmish2.Scale = vt(0, 0, 0)
  4742. orbmish2.MeshType = "Sphere"
  4743. orbe.Color = Color3.new("Really black")
  4744. rngb:Destroy()
  4745. for i = 0, 5, 0.1 do
  4746. swait()
  4747. if rainbowmode == true then
  4748. orbe.Color = Color3.new("Really black")
  4749. end
  4750. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4751. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4752. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  4753. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  4754. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4755. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4756. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  4757. 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(10), math.rad(0)), 0.3)
  4758. RootPart.CFrame = FaceMouse()[1]
  4759. end
  4760. orbe.Transparency = 1
  4761. orb.Transparency = 1
  4762. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  4763. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  4764. local a = Instance.new("Part", Character)
  4765. a.Name = "Direction"
  4766. a.Anchored = true
  4767. a.BrickColor = bc("Really black")
  4768. a.Material = "Neon"
  4769. a.Transparency = 0
  4770. a.Shape = "Cylinder"
  4771. a.CanCollide = false
  4772. local a2 = Instance.new("Part", Character)
  4773. a2.Name = "Direction"
  4774. a2.Anchored = true
  4775. a2.BrickColor = bc("Really black")
  4776. a2.Color = Color3.new("Really black")
  4777. a2.Material = "Neon"
  4778. a2.Transparency = 0.5
  4779. a2.Shape = "Cylinder"
  4780. a2.CanCollide = false
  4781. local ba = Instance.new("Part", Character)
  4782. ba.Name = "HitDirect"
  4783. ba.Anchored = true
  4784. ba.BrickColor = bc("Really black")
  4785. ba.Material = "Neon"
  4786. ba.Transparency = 1
  4787. ba.CanCollide = false
  4788. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4789. local ignore = Character
  4790. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4791. a.BottomSurface = 10
  4792. a.TopSurface = 10
  4793. a2.BottomSurface = 10
  4794. a2.TopSurface = 10
  4795. local distance = (orb.CFrame.p - position).magnitude
  4796. a.Size = Vector3.new(distance, 1, 1)
  4797. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4798. a2.Size = Vector3.new(distance, 1, 1)
  4799. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4800. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4801. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4802. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4803. game:GetService("Debris"):AddItem(a, 20)
  4804. game:GetService("Debris"):AddItem(a2, 20)
  4805. game:GetService("Debris"):AddItem(ba, 20)
  4806. local msh = Instance.new("SpecialMesh", a)
  4807. msh.MeshType = "Cylinder"
  4808. msh.Scale = vt(1, 25, 25)
  4809. local msh2 = Instance.new("SpecialMesh", a2)
  4810. msh2.MeshType = "Cylinder"
  4811. msh2.Scale = vt(1, 30, 30)
  4812. for i = 0, 10, 0.1 do
  4813. swait()
  4814. CameraEnshaking(1, 5)
  4815. a2.Color = Color3.new("Really black")
  4816. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4817. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4818. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4819. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4820. distance = (orb.CFrame.p - position).magnitude
  4821. if typrot == 1 then
  4822. rotation = rotation + 2.5
  4823. elseif typrot == 2 then
  4824. rotation = rotation - 2.5
  4825. end
  4826. RootPart.CFrame = FaceMouse()[1]
  4827. a.Size = Vector3.new(distance, 1, 1)
  4828. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4829. a2.Size = Vector3.new(distance, 1, 1)
  4830. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4831. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4832. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4833. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4834. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  4835. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  4836. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  4837. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  4838. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  4839. end
  4840. a:Destroy()
  4841. a2:Destroy()
  4842. ba:Destroy()
  4843. orb:Destroy()
  4844. orbe:Destroy()
  4845. attack = false
  4846. end
  4847. function UniversalSpark()
  4848. attack = true
  4849. local rngb = Instance.new("Part", char)
  4850. rngb.Anchored = true
  4851. rngb.BrickColor = origcolor
  4852. rngb.CanCollide = false
  4853. rngb.FormFactor = 3
  4854. rngb.Name = "Ring"
  4855. rngb.Material = "Neon"
  4856. rngb.Size = Vector3.new(1, 0.05, 1)
  4857. rngb.Transparency = 1
  4858. rngb.TopSurface = 0
  4859. rngb.BottomSurface = 0
  4860. local rngmb = Instance.new("SpecialMesh", rngb)
  4861. rngmb.MeshType = "Brick"
  4862. rngmb.Name = "SizeMesh"
  4863. rngmb.Scale = vt(0, 1, 0)
  4864. local orb = rngb:Clone()
  4865. orb.Parent = char
  4866. orb.Transparency = 0
  4867. orb.BrickColor = BrickColor.new("White")
  4868. orb.Size = vt(1, 1, 1)
  4869. local orbmish = orb.SizeMesh
  4870. orbmish.Scale = vt(0, 0, 0)
  4871. orbmish.MeshType = "Sphere"
  4872. local orbe = rngb:Clone()
  4873. orbe.Parent = char
  4874. orbe.Transparency = 0.5
  4875. orbe.BrickColor = BrickColor.new("New Yeller")
  4876. orbe.Size = vt(1, 1, 1)
  4877. local orbmish2 = orbe.SizeMesh
  4878. orbmish2.Scale = vt(0, 0, 0)
  4879. orbmish2.MeshType = "Sphere"
  4880. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4881. rngb:Destroy()
  4882. for i = 0, 5, 0.1 do
  4883. swait()
  4884. if rainbowmode == true then
  4885. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4886. end
  4887. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4888. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4889. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  4890. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  4891. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4892. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4893. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  4894. 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(10), math.rad(0)), 0.3)
  4895. RootPart.CFrame = FaceMouse()[1]
  4896. end
  4897. orbe.Transparency = 1
  4898. orb.Transparency = 1
  4899. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  4900. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  4901. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  4902. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  4903. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  4904. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  4905. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  4906. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  4907. local xd = Instance.new("Sound", char)
  4908. xd.SoundId = "rbxassetid://445796828"
  4909. xd.Pitch = 0.75
  4910. xd.Looped = true
  4911. xd.Volume = 1.25
  4912. xd:Play()
  4913. local a = Instance.new("Part", Character)
  4914. a.Name = "Direction"
  4915. a.Anchored = true
  4916. a.BrickColor = bc("Alder")
  4917. a.Color = MAINRUINCOLOR.Color
  4918. a.Material = "Neon"
  4919. a.Transparency = 0.5
  4920. a.Shape = "Cylinder"
  4921. a.CanCollide = false
  4922. local a2 = Instance.new("Part", Character)
  4923. a2.Name = "Direction"
  4924. a2.Anchored = true
  4925. a2.BrickColor = bc("New Yeller")
  4926. a2.Color = MAINRUINCOLOR.Color
  4927. a2.Material = "Neon"
  4928. a2.Transparency = 0.5
  4929. a2.Shape = "Cylinder"
  4930. a2.CanCollide = false
  4931. local ba = Instance.new("Part", Character)
  4932. ba.Name = "HitDirect"
  4933. ba.Anchored = true
  4934. ba.BrickColor = bc("Really black")
  4935. ba.Material = "Neon"
  4936. ba.Transparency = 1
  4937. ba.CanCollide = false
  4938. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4939. local ignore = Character
  4940. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4941. a.BottomSurface = 10
  4942. a.TopSurface = 10
  4943. a2.BottomSurface = 10
  4944. a2.TopSurface = 10
  4945. local distance = (orb.CFrame.p - position).magnitude
  4946. a.Size = Vector3.new(distance, 1, 1)
  4947. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4948. a2.Size = Vector3.new(distance, 1, 1)
  4949. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4950. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4951. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4952. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4953. game:GetService("Debris"):AddItem(a, 60)
  4954. game:GetService("Debris"):AddItem(a2, 60)
  4955. game:GetService("Debris"):AddItem(ba, 60)
  4956. local outerscale = 0
  4957. local msh = Instance.new("SpecialMesh", a)
  4958. msh.MeshType = "Cylinder"
  4959. msh.Scale = vt(1, 0, 0)
  4960. local msh2 = Instance.new("SpecialMesh", a2)
  4961. msh2.MeshType = "Cylinder"
  4962. msh2.Scale = vt(1, 0, 0)
  4963. for i = 0, 2, 0.1 do
  4964. swait()
  4965. CameraEnshaking(1, 1)
  4966. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  4967. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  4968. outerscale = outerscale - 0.015
  4969. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4970. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4971. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4972. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4973. distance = (orb.CFrame.p - position).magnitude
  4974. if typrot == 1 then
  4975. rotation = rotation + 2.5
  4976. elseif typrot == 2 then
  4977. rotation = rotation - 2.5
  4978. end
  4979. RootPart.CFrame = FaceMouse()[1]
  4980. a.Size = Vector3.new(distance, 1, 1)
  4981. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4982. a2.Size = Vector3.new(distance, 1, 1)
  4983. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4984. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4985. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4986. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4987. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  4988. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  4989. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  4990. end
  4991. for z = 0, 2 do
  4992. for i = 0, 4, 0.1 do
  4993. swait()
  4994. CameraEnshaking(1, 1)
  4995. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  4996. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  4997. outerscale = outerscale + 0.015
  4998. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4999. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5000. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5001. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5002. distance = (orb.CFrame.p - position).magnitude
  5003. if typrot == 1 then
  5004. rotation = rotation + 2.5
  5005. elseif typrot == 2 then
  5006. rotation = rotation - 2.5
  5007. end
  5008. RootPart.CFrame = FaceMouse()[1]
  5009. a.Size = Vector3.new(distance, 1, 1)
  5010. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5011. a2.Size = Vector3.new(distance, 1, 1)
  5012. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5013. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5014. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5015. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5016. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5017. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5018. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5019. end
  5020. for i = 0, 4, 0.1 do
  5021. swait()
  5022. CameraEnshaking(1, 1)
  5023. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5024. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5025. outerscale = outerscale - 0.015
  5026. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5027. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5028. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5029. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5030. distance = (orb.CFrame.p - position).magnitude
  5031. if typrot == 1 then
  5032. rotation = rotation + 2.5
  5033. elseif typrot == 2 then
  5034. rotation = rotation - 2.5
  5035. end
  5036. RootPart.CFrame = FaceMouse()[1]
  5037. a.Size = Vector3.new(distance, 1, 1)
  5038. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5039. a2.Size = Vector3.new(distance, 1, 1)
  5040. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5041. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5042. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5043. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5044. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5045. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5046. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5047. end
  5048. end
  5049. for i = 0, 4, 0.1 do
  5050. swait()
  5051. CameraEnshaking(1, 1)
  5052. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5053. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5054. xd.Volume = xd.Volume - 0.025
  5055. a.Transparency = a.Transparency + 0.025
  5056. a2.Transparency = a2.Transparency + 0.025
  5057. outerscale = outerscale - 0.015
  5058. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5059. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5060. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5061. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5062. distance = (orb.CFrame.p - position).magnitude
  5063. if typrot == 1 then
  5064. rotation = rotation + 2.5
  5065. elseif typrot == 2 then
  5066. rotation = rotation - 2.5
  5067. end
  5068. RootPart.CFrame = FaceMouse()[1]
  5069. a.Size = Vector3.new(distance, 1, 1)
  5070. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5071. a2.Size = Vector3.new(distance, 1, 1)
  5072. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5073. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5074. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5075. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5076. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5077. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5078. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5079. end
  5080. xd:Destroy()
  5081. a:Destroy()
  5082. a2:Destroy()
  5083. ba:Destroy()
  5084. orb:Destroy()
  5085. orbe:Destroy()
  5086. attack = false
  5087. end
  5088. function resetmode()
  5089. rainbowmode = false
  5090. chaosmode = false
  5091. RecolorTextAndRename("Black", Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  5092. ModeOfGlitch = 1
  5093. storehumanoidWS = 100
  5094. MAINRUINCOLOR = BrickColor.new("Really black")
  5095. hum.WalkSpeed = 100
  5096. newTheme("rbxassetid://798163149", 0, 1, 10)
  5097. for i, v in pairs(m:GetChildren()) do
  5098. if v:IsA("Part") then
  5099. v.BrickColor = BrickColor.new("Really black")
  5100. v.Material = "Neon"
  5101. v.Transparency = 1
  5102. end
  5103. end
  5104. for i, v in pairs(m2:GetChildren()) do
  5105. if v:IsA("Part") then
  5106. v.BrickColor = BrickColor.new("Really black")
  5107. v.Material = "Neon"
  5108. v.Transparency = 1
  5109. end
  5110. end
  5111. for i, v in pairs(m3:GetChildren()) do
  5112. if v:IsA("Part") then
  5113. v.BrickColor = BrickColor.new("Really black")
  5114. v.Material = "Neon"
  5115. v.Transparency = 1
  5116. end
  5117. end
  5118. for i, v in pairs(mw2:GetChildren()) do
  5119. if v:IsA("Part") then
  5120. v.Transparency = 0
  5121. v.BrickColor = BrickColor.new("Really black")
  5122. v.Material = "Neon"
  5123. end
  5124. end
  5125. for i, v in pairs(mw1:GetChildren()) do
  5126. if v:IsA("Part") then
  5127. v.Transparency = 0
  5128. v.BrickColor = BrickColor.new("Really black")
  5129. v.Material = "Neon"
  5130. end
  5131. end
  5132. for i, v in pairs(extrawingmod1:GetChildren()) do
  5133. if v:IsA("Part") then
  5134. v.Transparency = 0
  5135. v.BrickColor = BrickColor.new("Really black")
  5136. v.Material = "Neon"
  5137. end
  5138. end
  5139. for i, v in pairs(extrawingmod2:GetChildren()) do
  5140. if v:IsA("Part") then
  5141. v.Transparency = 0
  5142. v.BrickColor = BrickColor.new("Really black")
  5143. v.Material = "Neon"
  5144. end
  5145. end
  5146. end
  5147. function attackone()
  5148. attack = true
  5149. for i = 0, 1, 0.1 do
  5150. swait()
  5151. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  5152. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  5153. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5154. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5155. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  5156. 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(10)), 0.2)
  5157. end
  5158. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  5159. local hitb = Instance.new("Part", char)
  5160. hitb.Anchored = true
  5161. hitb.CanCollide = false
  5162. hitb.FormFactor = 3
  5163. hitb.Name = "Ring"
  5164. hitb.Material = "Neon"
  5165. hitb.Size = Vector3.new(1, 1, 1)
  5166. hitb.Transparency = 1
  5167. hitb.TopSurface = 0
  5168. hitb.BottomSurface = 0
  5169. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5170. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5171. hitb:Destroy()
  5172. for i = 0, 1, 0.1 do
  5173. swait()
  5174. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  5175. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  5176. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5177. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5178. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4)
  5179. 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(-10)), 0.4)
  5180. end
  5181. attack = false
  5182. end
  5183. function attacktwo()
  5184. attack = true
  5185. for i = 0, 1, 0.1 do
  5186. swait()
  5187. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  5188. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  5189. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5190. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5191. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  5192. 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(10)), 0.2)
  5193. end
  5194. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  5195. local hitb = Instance.new("Part", char)
  5196. hitb.Anchored = true
  5197. hitb.CanCollide = false
  5198. hitb.FormFactor = 3
  5199. hitb.Name = "Ring"
  5200. hitb.Material = "Neon"
  5201. hitb.Size = Vector3.new(1, 1, 1)
  5202. hitb.Transparency = 1
  5203. hitb.TopSurface = 0
  5204. hitb.BottomSurface = 0
  5205. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5206. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5207. hitb:Destroy()
  5208. for i = 0, 1, 0.1 do
  5209. swait()
  5210. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  5211. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  5212. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5213. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5214. 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(-40)), 0.4)
  5215. 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(-10)), 0.4)
  5216. end
  5217. attack = false
  5218. end
  5219. function attackthree()
  5220. attack = true
  5221. for i = 0, 1, 0.1 do
  5222. swait()
  5223. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  5224. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  5225. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5226. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5227. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  5228. 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(10), math.rad(0)), 0.3)
  5229. end
  5230. local distlook = 5
  5231. for i = 0, 4 do
  5232. swait(2)
  5233. CameraEnshaking(2, 3)
  5234. local hite = Instance.new("Part", char)
  5235. hite.Anchored = true
  5236. hite.CanCollide = false
  5237. hite.FormFactor = 3
  5238. hite.Name = "Ring"
  5239. hite.Material = "Neon"
  5240. hite.Size = Vector3.new(1, 1, 1)
  5241. hite.Transparency = 1
  5242. hite.TopSurface = 0
  5243. hite.BottomSurface = 0
  5244. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  5245. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  5246. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  5247. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  5248. for i = 0, 2 do
  5249. sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5250. sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5251. sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5252. end
  5253. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  5254. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5255. game:GetService("Debris"):AddItem(hite, 5)
  5256. distlook = distlook + 10
  5257. end
  5258. attack = false
  5259. end
  5260.  
  5261. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  5262. local type = type
  5263. local rng = Instance.new("Part", char)
  5264. rng.Anchored = true
  5265. rng.BrickColor = color
  5266. rng.Color = color3
  5267. rng.CanCollide = false
  5268. rng.FormFactor = 3
  5269. rng.Name = "Ring"
  5270. rng.Material = "Neon"
  5271. rng.Size = Vector3.new(1, 1, 1)
  5272. rng.Transparency = 0
  5273. rng.TopSurface = 0
  5274. rng.BottomSurface = 0
  5275. rng.CFrame = pos
  5276. local rngm = Instance.new("SpecialMesh", rng)
  5277. rngm.MeshType = "Sphere"
  5278. rngm.Scale = scale
  5279. local scaler2 = 1
  5280. local scaler2b = 1
  5281. local scaler2c = 1
  5282. if type == "Add" then
  5283. scaler2 = 1*value
  5284. scaler2b = 1*value2
  5285. scaler2c = 1*value3
  5286. elseif type == "Divide" then
  5287. scaler2 = 1/value
  5288. scaler2b = 1/value2
  5289. scaler2c = 1/value3
  5290. end
  5291. coroutine.resume(coroutine.create(function()
  5292. for i = 0,10/bonuspeed,0.1 do
  5293. swait()
  5294. if type == "Add" then
  5295. scaler2 = scaler2 - 0.01*value/bonuspeed
  5296. scaler2b = scaler2b - 0.01*value/bonuspeed
  5297. scaler2c = scaler2c - 0.01*value/bonuspeed
  5298. elseif type == "Divide" then
  5299. scaler2 = scaler2 - 0.01/value*bonuspeed
  5300. scaler2b = scaler2b - 0.01/value*bonuspeed
  5301. scaler2c = scaler2c - 0.01/value*bonuspeed
  5302. end
  5303. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5304. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  5305. end
  5306. rng:Destroy()
  5307. end))
  5308. end
  5309.  
  5310. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  5311. local type = type
  5312. local rotenable = rotatingop
  5313. local rng = Instance.new("Part", char)
  5314. rng.Anchored = true
  5315. rng.BrickColor = color
  5316. rng.CanCollide = false
  5317. rng.FormFactor = 3
  5318. rng.Name = "Ring"
  5319. rng.Material = "Neon"
  5320. rng.Size = Vector3.new(1, 1, 1)
  5321. rng.Transparency = 0
  5322. if typeoftrans == "In" then
  5323. rng.Transparency = 1
  5324. end
  5325. rng.TopSurface = 0
  5326. rng.BottomSurface = 0
  5327. rng.CFrame = pos
  5328. local rngm = Instance.new("SpecialMesh", rng)
  5329. rngm.MeshType = "FileMesh"
  5330. if typeofshape == "Normal" then
  5331. rngm.MeshId = "rbxassetid://662586858"
  5332. elseif typeofshape == "Round" then
  5333. rngm.MeshId = "rbxassetid://662585058"
  5334. end
  5335. rngm.Scale = scale
  5336. local scaler2 = 1/10
  5337. if type == "Add" then
  5338. scaler2 = 1*value/10
  5339. elseif type == "Divide" then
  5340. scaler2 = 1/value/10
  5341. end
  5342. local randomrot = math.random(1,2)
  5343. coroutine.resume(coroutine.create(function()
  5344. for i = 0,10/bonuspeed,0.1 do
  5345. swait()
  5346. if type == "Add" then
  5347. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  5348. elseif type == "Divide" then
  5349. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  5350. end
  5351. if rotenable == true then
  5352. if randomrot == 1 then
  5353. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  5354. elseif randomrot == 2 then
  5355. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  5356. end
  5357. end
  5358. if typeoftrans == "Out" then
  5359. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5360. elseif typeoftrans == "In" then
  5361. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  5362. end
  5363. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  5364. end
  5365. rng:Destroy()
  5366. end))
  5367. end
  5368.  
  5369. function superjump()
  5370. attack = true
  5371. hum.WalkSpeed = 0
  5372. hum.JumpPower = 0
  5373. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  5374. for i = 0, 2, 0.1 do
  5375. swait()
  5376. slash(math.random(10,50)/10,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  5377. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5378. root.Velocity = vt(0,0,0)
  5379. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  5380. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4)
  5381. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  5382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  5383. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  5384. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  5385. end
  5386.  
  5387. hum.JumpPower = 50
  5388. hum.Jump = true
  5389. swait()
  5390. hum.JumpPower = 0
  5391. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  5392. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  5393. for i = 0, 3, 0.1 do
  5394. swait()
  5395. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  5396. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4)
  5397. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  5398. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  5399. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  5400. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  5401. end
  5402. attack = false
  5403. if equipped == false then
  5404. hum.WalkSpeed = 16
  5405. else
  5406. hum.WalkSpeed = 24
  5407. end
  5408. hum.JumpPower = 50
  5409. end
  5410.  
  5411. local attacktype = 1
  5412. mouse.Button1Down:connect(function()
  5413. if attack == false and attacktype == 1 then
  5414. attacktype = 2
  5415. attackone()
  5416. elseif attack == false and attacktype == 2 then
  5417. attacktype = 3
  5418. attacktwo()
  5419. elseif attack == false and attacktype == 3 then
  5420. attacktype = 1
  5421. attackthree()
  5422. elseif attack == false and attacktype == 4 then
  5423. attacktype = 1
  5424. end
  5425. end)
  5426. mouse.KeyDown:connect(function(k)
  5427. if k == "q" and attack == false and ModeOfGlitch == 1 then
  5428. ExtinctiveHeartbreak()
  5429. elseif k == "e" and attack == false and ModeOfGlitch == 1 then
  5430. ChaosGroundStrike()
  5431. elseif k == "f" and attack == false and ModeOfGlitch == 1 then
  5432. superjump()
  5433. elseif k == "r" and attack == false and ModeOfGlitch == 1 then
  5434. Wip()
  5435. end
  5436. if k == "g" and attack == false and ModeOfGlitch == 1 then
  5437. ChaosBegone()
  5438. end
  5439. end)
  5440. coroutine.resume(coroutine.create(function()
  5441. while true do
  5442. swait(2)
  5443. if rainbowmode == true or ModeOfGlitch == 6 then
  5444. sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0)
  5445. end
  5446. end
  5447. end))
  5448. coroutine.resume(coroutine.create(function()
  5449. while true do
  5450. swait(0.5)
  5451. if ModeOfGlitch == 6 then
  5452. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0)
  5453. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-26, 26), -10, math.random(-26, 26)) * CFrame.Angles(math.rad(90 + math.random(-16, 16)), math.rad(math.random(-16, 16)), 0), 1, 1, 16, -0.01, MAINRUINCOLOR, 0)
  5454. end
  5455. end
  5456. end))
  5457. coroutine.resume(coroutine.create(function()
  5458. while true do
  5459. swait(2)
  5460. if chaosmode == true then
  5461. RecolorTextAndRename("Fetty Edit", Color3.new(0, 0, 0), BrickColor.random().Color)
  5462. for i, v in pairs(mw1:GetChildren()) do
  5463. if v:IsA("Part") then
  5464. v.Transparency = 0.75
  5465. v.BrickColor = BrickColor.random()
  5466. v.Material = "Neon"
  5467. end
  5468. end
  5469. for i, v in pairs(m2:GetChildren()) do
  5470. if v:IsA("Part") then
  5471. v.BrickColor = BrickColor.random()
  5472. v.Material = "Neon"
  5473. end
  5474. end
  5475. end
  5476. end
  5477. end))
  5478. Humanoid.Name = "STARGLITCHER"
  5479. Humanoid.MaxHealth = math.huge
  5480. Humanoid.Health = math.huge
  5481. Instance.new("ForceField", char).Visible = false
  5482. Humanoid.Animator.Parent = nil
  5483. idleanim = 0.4
  5484. while true do
  5485. if rainbowmode == true then
  5486. RecolorTextAndRename("Fetty Edit", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  5487. MAINRUINCOLOR = BrickColor.new("White")
  5488. for i, v in pairs(m:GetChildren()) do
  5489. if v:IsA("Part") then
  5490. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5491. end
  5492. end
  5493. for i, v in pairs(m2:GetChildren()) do
  5494. if v:IsA("Part") then
  5495. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5496. end
  5497. end
  5498. for i, v in pairs(m3:GetChildren()) do
  5499. if v:IsA("Part") then
  5500. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5501. end
  5502. end
  5503. for i, v in pairs(mw1:GetChildren()) do
  5504. if v:IsA("Part") then
  5505. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5506. v.Material = "Neon"
  5507. end
  5508. end
  5509. for i, v in pairs(mw2:GetChildren()) do
  5510. if v:IsA("Part") then
  5511. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5512. v.Material = "Neon"
  5513. end
  5514. end
  5515. end
  5516. CameraManager()
  5517. swait()
  5518. handleweld.C0=clerp(handleweld.C0,cf(0,-1.5,-1.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  5519. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 + 3600 * math.cos(sine / 360))),.3)
  5520. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 + 3600 * math.cos(sine / 360))),.3)
  5521. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 + 3600 * math.cos(sine / 360))),.3)
  5522. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 - 3600 * math.cos(sine / 720))),.3)
  5523. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 - 3600 * math.cos(sine / 720))),.3)
  5524. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 - 3600 * math.cos(sine / 720))),.3)
  5525. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 360))),.3)
  5526. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 360))),.3)
  5527. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 360))),.3)
  5528. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 360))),.3)
  5529. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 360))),.3)
  5530. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 360))),.3)
  5531. sine = sine + change
  5532. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  5533. local velderp = RootPart.Velocity.y
  5534. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  5535. storehumanoidWS = 100
  5536. hum.WalkSpeed = 100
  5537. if equipped == true or equipped == false then
  5538. if attack == false then
  5539. idle = idle + 1
  5540. else
  5541. idle = 0
  5542. end
  5543. if not (idle >= 500) or attack == false then
  5544. end
  5545. if RootPart.Velocity.y > 1 and hitfloor == nil then
  5546. Anim = "Jump"
  5547. if attack == false then
  5548. 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)), 0.1)
  5549. 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)), 0.1)
  5550. 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)), 0.1)
  5551. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  5552. 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)), 0.1)
  5553. 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)), 0.1)
  5554. end
  5555. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  5556. Anim = "Fall"
  5557. if attack == false then
  5558. 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)), 0.1)
  5559. 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)), 0.1)
  5560. 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)), 0.1)
  5561. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  5562. 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)), 0.1)
  5563. 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)), 0.1)
  5564. end
  5565. elseif torvel < 1 and hitfloor ~= nil then
  5566. Anim = "Idle"
  5567. if attack == false then
  5568. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  5569. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  5570. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),5 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  5571. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  5572. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  5573. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(90 - 4 * math.cos(sine / 45))),.1)
  5574. end
  5575. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  5576. Anim = "Walk"
  5577. if attack == false then
  5578. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  5579. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  5580. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  5581. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  5582. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  5583. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  5584. end
  5585. elseif torvel >= 22 and hitfloor ~= nil then
  5586. Anim = "Run"
  5587. if attack == false then
  5588. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  5589. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  5590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  5591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  5592. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  5593. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  5594. end
  5595. end
  5596. if Head:FindFirstChild("face") then
  5597. Head.face.Texture = "rbxassetid://403870689"
  5598. end
  5599. for _, c in pairs(Character:GetChildren()) do
  5600. if c.ClassName == "Part" and c.Name ~= "Eye" then
  5601. c.Material = "Neon"
  5602. if c:FindFirstChildOfClass("ParticleEmitter") then
  5603. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  5604. end
  5605. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  5606. c:remove()
  5607. end
  5608. end
  5609. end
  5610. end
  5611.  
  5612. -------------------------------------------------
  5613.  
  5614.  
  5615.  
  5616.  
  5617. do
  5618. print("FE Compatibility code by Mokiros, Edited by StarzoZero")
  5619. local rp = RealPlayer
  5620. script.Parent = rp.Character
  5621.  
  5622. --RemoteEvent for communicating
  5623. local Event = Instance.new("RemoteEvent")
  5624. Event.Name = "UserInput_Event"
  5625.  
  5626. --Fake event to make stuff like Mouse.KeyDown work
  5627. local function fakeEvent()
  5628. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  5629. t.connect = t.Connect
  5630. return t
  5631. end
  5632.  
  5633. --Creating fake input objects with fake variables
  5634. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  5635. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  5636. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  5637. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  5638. end}
  5639. --Merged 2 functions into one by checking amount of arguments
  5640. CAS.UnbindAction = CAS.BindAction
  5641.  
  5642. --This function will trigger the events that have been :Connect()'ed
  5643. local function te(self,ev,...)
  5644. local t = m[ev]
  5645. if t and t._fakeEvent then
  5646. for _,f in pairs(t.Functions) do
  5647. f(...)
  5648. end
  5649. end
  5650. end
  5651. m.TrigEvent = te
  5652. UIS.TrigEvent = te
  5653.  
  5654. Event.OnServerEvent:Connect(function(plr,io)
  5655. if plr~=rp then return end
  5656. m.Target = io.Target
  5657. m.Hit = io.Hit
  5658. if not io.isMouse then
  5659. local b = io.UserInputState == Enum.UserInputState.Begin
  5660. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  5661. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  5662. end
  5663. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  5664. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  5665. end
  5666. for _,t in pairs(CAS.Actions) do
  5667. for _,k in pairs(t.Keys) do
  5668. if k==io.KeyCode then
  5669. t.Function(t.Name,io.UserInputState,io)
  5670. end
  5671. end
  5672. end
  5673. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  5674. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  5675. end
  5676. end)
  5677. Event.Parent = NLS([==[
  5678. local Player = game:GetService("Players").LocalPlayer
  5679. local Event = script:WaitForChild("UserInput_Event")
  5680. local Mouse = Player:GetMouse()
  5681. local UIS = game:GetService("UserInputService")
  5682. local input = function(io,a)
  5683. if a then return end
  5684. --Since InputObject is a client-side instance, we create and pass table instead
  5685. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  5686. end
  5687. UIS.InputBegan:Connect(input)
  5688. UIS.InputEnded:Connect(input)
  5689. local h,t
  5690. --Give the server mouse data 30 times every second, but only if the values changed
  5691. --If player is not moving their mouse, client won't fire events
  5692. while wait(1/30) do
  5693. if h~=Mouse.Hit or t~=Mouse.Target then
  5694. h,t=Mouse.Hit,Mouse.Target
  5695. Event:FireServer({isMouse=true,Target=t,Hit=h})
  5696. end
  5697. end]==],Player.Character)
  5698.  
  5699. ----Sandboxed game object that allows the usage of client-side methods and services
  5700. --Real game object
  5701. local _rg = game
  5702.  
  5703. --Metatable for fake service
  5704. local fsmt = {
  5705. __index = function(self,k)
  5706. local s = rawget(self,"_RealService")
  5707. if s then
  5708. return typeof(s[k])=="function"
  5709. and function(_,...)return s[k](s,...)end or s[k]
  5710. end
  5711. end,
  5712. __newindex = function(self,k,v)
  5713. local s = rawget(self,"_RealService")
  5714. if s then s[k]=v end
  5715. end
  5716. }
  5717. local function FakeService(t,RealService)
  5718. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  5719. return setmetatable(t,fsmt)
  5720. end
  5721.  
  5722. --Fake game object
  5723. local g = {
  5724. GetService = function(self,s)
  5725. return rawget(self,s) or _rg:GetService(s)
  5726. end,
  5727. Players = FakeService({
  5728. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  5729. },"Players"),
  5730. UserInputService = FakeService(UIS,"UserInputService"),
  5731. ContextActionService = FakeService(CAS,"ContextActionService"),
  5732. RunService = FakeService({
  5733. _btrs = {},
  5734. RenderStepped = _rg:GetService("RunService").Heartbeat,
  5735. BindToRenderStep = function(self,name,_,fun)
  5736. self._btrs[name] = self.Heartbeat:Connect(fun)
  5737. end,
  5738. UnbindFromRenderStep = function(self,name)
  5739. self._btrs[name]:Disconnect()
  5740. end,
  5741. },"RunService")
  5742. }
  5743. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  5744. g.service = g.GetService
  5745. FakeService(g,game)
  5746. --Changing owner to fake player object to support owner:GetMouse()
  5747. game,owner = g,g.Players.LocalPlayer
  5748. end
  5749.  
  5750. Player = game:GetService("Players").LocalPlayer
  5751. PlayerGui = Player.PlayerGui
  5752. Cam = workspace.CurrentCamera
  5753. Backpack = Player.Backpack
  5754. Character = Player.Character
  5755. Humanoid = Character.Humanoid
  5756. Mouse = Player:GetMouse()
  5757. RootPart = Character["HumanoidRootPart"]
  5758. Torso = Character["Torso"]
  5759. Head = Character["Head"]
  5760. RightArm = Character["Right Arm"]
  5761. LeftArm = Character["Left Arm"]
  5762. RightLeg = Character["Right Leg"]
  5763. LeftLeg = Character["Left Leg"]
  5764. RootJoint = RootPart["RootJoint"]
  5765. Neck = Torso["Neck"]
  5766. RightShoulder = Torso["Right Shoulder"]
  5767. LeftShoulder = Torso["Left Shoulder"]
  5768. RightHip = Torso["Right Hip"]
  5769. LeftHip = Torso["Left Hip"]
  5770.  
  5771. IT = Instance.new
  5772. CF = CFrame.new
  5773. VT = Vector3.new
  5774. RAD = math.rad
  5775. C3 = Color3.new
  5776. UD2 = UDim2.new
  5777. BRICKC = BrickColor.new
  5778. ANGLES = CFrame.Angles
  5779. EULER = CFrame.fromEulerAnglesXYZ
  5780. COS = math.cos
  5781. ACOS = math.acos
  5782. SIN = math.sin
  5783. ASIN = math.asin
  5784. ABS = math.abs
  5785. MRANDOM = math.random
  5786. FLOOR = math.floor
  5787.  
  5788. --//=================================\\
  5789. --|| USEFUL VALUES
  5790. --\\=================================//
  5791.  
  5792. Animation_Speed = 3
  5793. local FORCERESET = false
  5794. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  5795. local SIZE = 1
  5796. local Speed = 16
  5797. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  5798. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  5799. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  5800. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  5801. local DAMAGEMULTIPLIER = 1
  5802. local ANIM = "Idle"
  5803. local ATTACK = false
  5804. local EQUIPPED = false
  5805. local HOLD = false
  5806. local COMBO = 1
  5807. local Rooted = false
  5808. local SINE = 0
  5809. local KEYHOLD = false
  5810. local CHANGE = 2 / Animation_Speed
  5811. local WALKINGANIM = false
  5812. local VALUE1 = false
  5813. local VALUE2 = false
  5814. local ROBLOXIDLEANIMATION = IT("Animation")
  5815. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  5816. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  5817. --ROBLOXIDLEANIMATION.Parent = Humanoid
  5818. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  5819. WEAPONGUI.Name = "BanishV3Gui"
  5820. local Weapon = IT("Folder", Character)
  5821. Weapon.Name = "Weapon"
  5822. local Weapon2 = IT("Folder", Character)
  5823. Weapon2.Name = "Weapon2"
  5824. local DeadEye = IT("Folder", Character)
  5825. DeadEye.Name = "DeadEye"
  5826. local HM = IT("Folder", Character)
  5827. HM.Name = "HM"
  5828. local Pan = IT("Folder", Character)
  5829. Pan.Name = "Pan"
  5830. local Pan2 = IT("Folder", Character)
  5831. Pan2.Name = "Pan2"
  5832. local FaceGradient = IT("Folder", Character)
  5833. FaceGradient.Name = "FaceGradient"
  5834. local black = IT("Folder", Character)
  5835. black.Name = "black"
  5836. local Heads = IT("Folder", Character)
  5837. Heads.Name = "Heads"
  5838. local Effects = IT("Folder", Character)
  5839. Effects.Name = "Effects"
  5840. local ANIMATOR = Humanoid.Animator
  5841. local ANIMATE = Character:FindFirstChild("Animate")
  5842. local UNANCHOR = true
  5843. local CLOCKLOOP = 0
  5844. local CLOCKTARGET = nil
  5845. local CLOCKSPEED = 1
  5846. script.Parent = WEAPONGUI
  5847. local HITFLOOR = nil
  5848. local INTRO = false
  5849. local INSTANT = false
  5850. local LEFTWINGS = {}
  5851. local RIGHTWINGS = {}
  5852. local BODY = {}
  5853. local TOBANISH = {}
  5854. script.Parent = PlayerGui
  5855.  
  5856. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  5857. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  5858. end
  5859.  
  5860. function PositiveAngle(NUMBER)
  5861. if NUMBER >= 0 then
  5862. NUMBER = 0
  5863. end
  5864. return NUMBER
  5865. end
  5866.  
  5867. function NegativeAngle(NUMBER)
  5868. if NUMBER <= 0 then
  5869. NUMBER = 0
  5870. end
  5871. return NUMBER
  5872. end
  5873.  
  5874. function Swait(NUMBER)
  5875. if NUMBER == 0 or NUMBER == nil then
  5876. ArtificialHB.Event:wait()
  5877. else
  5878. for i = 1, NUMBER do
  5879. ArtificialHB.Event:wait()
  5880. end
  5881. end
  5882. end
  5883.  
  5884. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  5885. local NEWMESH = IT(MESH)
  5886. if MESH == "SpecialMesh" then
  5887. NEWMESH.MeshType = MESHTYPE
  5888. if MESHID ~= "nil" and MESHID ~= "" then
  5889. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  5890. end
  5891. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  5892. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  5893. end
  5894. end
  5895. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  5896. NEWMESH.Scale = SCALE
  5897. NEWMESH.Parent = PARENT
  5898. return NEWMESH
  5899. end
  5900.  
  5901. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  5902. local NEWPART = IT("Part")
  5903. NEWPART.formFactor = FORMFACTOR
  5904. NEWPART.Reflectance = REFLECTANCE
  5905. NEWPART.Transparency = TRANSPARENCY
  5906. NEWPART.CanCollide = false
  5907. NEWPART.Locked = true
  5908. NEWPART.Anchored = true
  5909. if ANCHOR == false then
  5910. NEWPART.Anchored = false
  5911. end
  5912. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  5913. NEWPART.Name = NAME
  5914. NEWPART.Size = SIZE
  5915. NEWPART.Position = Torso.Position
  5916. NEWPART.Material = MATERIAL
  5917. NEWPART:BreakJoints()
  5918. NEWPART.Parent = PARENT
  5919. return NEWPART
  5920. end
  5921.  
  5922. local function weldBetween(a, b)
  5923. local weldd = Instance.new("ManualWeld")
  5924. weldd.Part0 = a
  5925. weldd.Part1 = b
  5926. weldd.C0 = CFrame.new()
  5927. weldd.C1 = b.CFrame:inverse() * a.CFrame
  5928. weldd.Parent = a
  5929. return weldd
  5930. end
  5931.  
  5932.  
  5933. function QuaternionFromCFrame(cf)
  5934. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  5935. local trace = m00 + m11 + m22
  5936. if trace > 0 then
  5937. local s = math.sqrt(1 + trace)
  5938. local recip = 0.5 / s
  5939. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  5940. else
  5941. local i = 0
  5942. if m11 > m00 then
  5943. i = 1
  5944. end
  5945. if m22 > (i == 0 and m00 or m11) then
  5946. i = 2
  5947. end
  5948. if i == 0 then
  5949. local s = math.sqrt(m00 - m11 - m22 + 1)
  5950. local recip = 0.5 / s
  5951. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  5952. elseif i == 1 then
  5953. local s = math.sqrt(m11 - m22 - m00 + 1)
  5954. local recip = 0.5 / s
  5955. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  5956. elseif i == 2 then
  5957. local s = math.sqrt(m22 - m00 - m11 + 1)
  5958. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  5959. end
  5960. end
  5961. end
  5962.  
  5963. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  5964. local xs, ys, zs = x + x, y + y, z + z
  5965. local wx, wy, wz = w * xs, w * ys, w * zs
  5966. local xx = x * xs
  5967. local xy = x * ys
  5968. local xz = x * zs
  5969. local yy = y * ys
  5970. local yz = y * zs
  5971. local zz = z * zs
  5972. 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))
  5973. end
  5974.  
  5975. function QuaternionSlerp(a, b, t)
  5976. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  5977. local startInterp, finishInterp;
  5978. if cosTheta >= 0.0001 then
  5979. if (1 - cosTheta) > 0.0001 then
  5980. local theta = ACOS(cosTheta)
  5981. local invSinTheta = 1 / SIN(theta)
  5982. startInterp = SIN((1 - t) * theta) * invSinTheta
  5983. finishInterp = SIN(t * theta) * invSinTheta
  5984. else
  5985. startInterp = 1 - t
  5986. finishInterp = t
  5987. end
  5988. else
  5989. if (1 + cosTheta) > 0.0001 then
  5990. local theta = ACOS(-cosTheta)
  5991. local invSinTheta = 1 / SIN(theta)
  5992. startInterp = SIN((t - 1) * theta) * invSinTheta
  5993. finishInterp = SIN(t * theta) * invSinTheta
  5994. else
  5995. startInterp = t - 1
  5996. finishInterp = t
  5997. end
  5998. end
  5999. 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
  6000. end
  6001.  
  6002. function Clerp(a, b, t)
  6003. local qa = {QuaternionFromCFrame(a)}
  6004. local qb = {QuaternionFromCFrame(b)}
  6005. local ax, ay, az = a.x, a.y, a.z
  6006. local bx, by, bz = b.x, b.y, b.z
  6007. local _t = 1 - t
  6008. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  6009. end
  6010.  
  6011. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  6012. local frame = IT("Frame")
  6013. frame.BackgroundTransparency = TRANSPARENCY
  6014. frame.BorderSizePixel = BORDERSIZEPIXEL
  6015. frame.Position = POSITION
  6016. frame.Size = SIZE
  6017. frame.BackgroundColor3 = COLOR
  6018. frame.BorderColor3 = BORDERCOLOR
  6019. frame.Name = NAME
  6020. frame.Parent = PARENT
  6021. return frame
  6022. end
  6023.  
  6024. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  6025. local label = IT("TextLabel")
  6026. label.BackgroundTransparency = 1
  6027. label.Size = UD2(1, 0, 1, 0)
  6028. label.Position = UD2(0, 0, 0, 0)
  6029. label.TextColor3 = TEXTCOLOR
  6030. label.TextStrokeTransparency = STROKETRANSPARENCY
  6031. label.TextTransparency = TRANSPARENCY
  6032. label.FontSize = TEXTFONTSIZE
  6033. label.Font = TEXTFONT
  6034. label.BorderSizePixel = BORDERSIZEPIXEL
  6035. label.TextScaled = false
  6036. label.Text = TEXT
  6037. label.Name = NAME
  6038. label.Parent = PARENT
  6039. return label
  6040. end
  6041.  
  6042. function NoOutlines(PART)
  6043. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  6044. end
  6045.  
  6046. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  6047. local NEWWELD = IT(TYPE)
  6048. NEWWELD.Part0 = PART0
  6049. NEWWELD.Part1 = PART1
  6050. NEWWELD.C0 = C0
  6051. NEWWELD.C1 = C1
  6052. NEWWELD.Parent = PARENT
  6053. return NEWWELD
  6054. end
  6055.  
  6056. local S = IT("Sound")
  6057. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  6058. local NEWSOUND = nil
  6059. coroutine.resume(coroutine.create(function()
  6060. NEWSOUND = S:Clone()
  6061. NEWSOUND.Parent = PARENT
  6062. NEWSOUND.Volume = VOLUME
  6063. NEWSOUND.Pitch = PITCH
  6064. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  6065. NEWSOUND:play()
  6066. if DOESLOOP == true then
  6067. NEWSOUND.Looped = true
  6068. else
  6069. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  6070. NEWSOUND:remove()
  6071. end
  6072. end))
  6073. return NEWSOUND
  6074. end
  6075.  
  6076. function CFrameFromTopBack(at, top, back)
  6077. local right = top:Cross(back)
  6078. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  6079. end
  6080.  
  6081. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  6082. function WACKYEFFECT(Table)
  6083. local TYPE = (Table.EffectType or "Sphere")
  6084. local SIZE = (Table.Size or VT(1,1,1))
  6085. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  6086. local TRANSPARENCY = (Table.Transparency or 0)
  6087. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  6088. local CFRAME = (Table.CFrame or Torso.CFrame)
  6089. local MOVEDIRECTION = (Table.MoveToPos or nil)
  6090. local ROTATION1 = (Table.RotationX or 0)
  6091. local ROTATION2 = (Table.RotationY or 0)
  6092. local ROTATION3 = (Table.RotationZ or 0)
  6093. local MATERIAL = (Table.Material or "Neon")
  6094. local COLOR = (Table.Color or C3(1,1,1))
  6095. local TIME = (Table.Time or 45)
  6096. local SOUNDID = (Table.SoundID or nil)
  6097. local SOUNDPITCH = (Table.SoundPitch or nil)
  6098. local SOUNDVOLUME = (Table.SoundVolume or nil)
  6099. coroutine.resume(coroutine.create(function()
  6100. local PLAYSSOUND = false
  6101. local SOUND = nil
  6102. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  6103. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  6104. PLAYSSOUND = true
  6105. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  6106. end
  6107. EFFECT.Color = COLOR
  6108. local MSH = nil
  6109. if TYPE == "Sphere" then
  6110. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  6111. elseif TYPE == "Block" then
  6112. MSH = IT("BlockMesh",EFFECT)
  6113. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  6114. elseif TYPE == "Wave" then
  6115. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  6116. elseif TYPE == "Ring" then
  6117. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  6118. elseif TYPE == "Slash" then
  6119. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  6120. elseif TYPE == "Round Slash" then
  6121. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  6122. elseif TYPE == "Swirl" then
  6123. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  6124. elseif TYPE == "Skull" then
  6125. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  6126. elseif TYPE == "Crystal" then
  6127. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  6128. end
  6129. if MSH ~= nil then
  6130. local MOVESPEED = nil
  6131. if MOVEDIRECTION ~= nil then
  6132. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  6133. end
  6134. local GROWTH = SIZE - ENDSIZE
  6135. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  6136. if TYPE == "Block" then
  6137. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  6138. else
  6139. EFFECT.CFrame = CFRAME
  6140. end
  6141. for LOOP = 1, TIME+1 do
  6142. Swait()
  6143. MSH.Scale = MSH.Scale - GROWTH/TIME
  6144. if TYPE == "Wave" then
  6145. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  6146. end
  6147. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  6148. if TYPE == "Block" then
  6149. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  6150. else
  6151. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  6152. end
  6153. if MOVEDIRECTION ~= nil then
  6154. local ORI = EFFECT.Orientation
  6155. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  6156. EFFECT.Orientation = ORI
  6157. end
  6158. end
  6159. if PLAYSSOUND == false then
  6160. EFFECT:remove()
  6161. else
  6162. SOUND.Stopped:Connect(function()
  6163. EFFECT:remove()
  6164. end)
  6165. end
  6166. else
  6167. if PLAYSSOUND == false then
  6168. EFFECT:remove()
  6169. else
  6170. repeat Swait() until SOUND.Playing == false
  6171. EFFECT:remove()
  6172. end
  6173. end
  6174. end))
  6175. end
  6176. for _, c in pairs(Character:GetChildren()) do
  6177. if c.ClassName == "Part" then
  6178. table.insert(BODY,{c,Character})
  6179. for _, q in pairs(c:GetChildren()) do
  6180. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  6181. table.insert(BODY,{q,c})
  6182. end
  6183. end
  6184. end
  6185. end
  6186.  
  6187. function refit()
  6188. Character.Parent = workspace
  6189. for e = 1, #BODY do
  6190. if BODY[e] ~= nil then
  6191. local STUFF = BODY[e]
  6192. local PART = STUFF[1]
  6193. local PARENT = STUFF[2]
  6194. PART.Parent = PARENT
  6195. end
  6196. end
  6197. end
  6198.  
  6199. function MakeForm(PART,TYPE)
  6200. if TYPE == "Cyl" then
  6201. local MSH = IT("CylinderMesh",PART)
  6202. elseif TYPE == "Ball" then
  6203. local MSH = IT("SpecialMesh",PART)
  6204. MSH.MeshType = "Sphere"
  6205. elseif TYPE == "Wedge" then
  6206. local MSH = IT("SpecialMesh",PART)
  6207. MSH.MeshType = "Wedge"
  6208. end
  6209. end
  6210.  
  6211. function SpawnTrail(FROM,TO,BIG)
  6212. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0))
  6213. MakeForm(TRAIL,"Cyl")
  6214. local DIST = (FROM - TO).Magnitude
  6215. if BIG == true then
  6216. TRAIL.Size = VT(0.5,DIST,0.5)
  6217. else
  6218. TRAIL.Size = VT(0.25,DIST,0.25)
  6219. end
  6220. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  6221. coroutine.resume(coroutine.create(function()
  6222. for i = 1, 5 do
  6223. Swait()
  6224. TRAIL.Transparency = TRAIL.Transparency + 0.1
  6225. end
  6226. TRAIL:remove()
  6227. end))
  6228. end
  6229.  
  6230. Debris = game:GetService("Debris")
  6231.  
  6232. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  6233. local DIRECTION = CF(StartPos,EndPos).lookVector
  6234. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  6235. end
  6236.  
  6237. function turnto(position)
  6238. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  6239. end
  6240. local asd = Instance.new("ParticleEmitter")
  6241. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  6242. asd.LightEmission = .1
  6243. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  6244. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  6245. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  6246. asd.Transparency = bbb
  6247. asd.Size = aaa
  6248. asd.ZOffset = .9
  6249. asd.Acceleration = Vector3.new(0, -15, 0)
  6250. asd.LockedToPart = false
  6251. asd.EmissionDirection = "Back"
  6252. asd.Lifetime = NumberRange.new(1, 2)
  6253. asd.Rotation = NumberRange.new(-100, 100)
  6254. asd.RotSpeed = NumberRange.new(-100, 100)
  6255. asd.Speed = NumberRange.new(10)
  6256. asd.Enabled = false
  6257. asd.VelocitySpread = 999
  6258.  
  6259. function getbloody(victim,amount)
  6260. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  6261. PART.CFrame = victim.CFrame
  6262. local HITPLAYERSOUNDS = {"356551938","264486467"}
  6263. Debris:AddItem(PART,5)
  6264. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  6265. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  6266. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  6267. local prtcl = asd:Clone()
  6268. prtcl.Parent = PART
  6269. prtcl:Emit(amount*10)
  6270. end
  6271.  
  6272. local Particle = IT("ParticleEmitter",nil)
  6273. Particle.Enabled = false
  6274. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  6275. Particle.LightEmission = 0.5
  6276. Particle.Rate = 150
  6277. Particle.ZOffset = 1
  6278. Particle.Rotation = NumberRange.new(-180, 180)
  6279. Particle.RotSpeed = NumberRange.new(-180, 180)
  6280. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  6281. Particle.Color = ColorSequence.new(C3(0,0,0),C3(0.4,0,0))
  6282.  
  6283. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  6284. function ParticleEmitter(Table)
  6285. local PRTCL = Particle:Clone()
  6286. local Speed = Table.Speed or 5
  6287. local Drag = Table.Drag or 0
  6288. local Size1 = Table.Size1 or 1
  6289. local Size2 = Table.Size2 or 5
  6290. local Lifetime1 = Table.Lifetime1 or 1
  6291. local Lifetime2 = Table.Lifetime2 or 1.5
  6292. local Parent = Table.Parent or Torso
  6293. local Emit = Table.Emit or 100
  6294. local Offset = Table.Offset or 360
  6295. local Acel = Table.Acel or VT(0,0,0)
  6296. local Enabled = Table.Enabled or false
  6297. PRTCL.Parent = Parent
  6298. PRTCL.Size = NumberSequence.new(Size1,Size2)
  6299. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  6300. PRTCL.Speed = NumberRange.new(Speed)
  6301. PRTCL.VelocitySpread = Offset
  6302. PRTCL.Drag = Drag
  6303. PRTCL.Acceleration = Acel
  6304. if Enabled == false then
  6305. PRTCL:Emit(Emit)
  6306. Debris:AddItem(PRTCL,Lifetime2)
  6307. else
  6308. PRTCL.Enabled = true
  6309. end
  6310. return PRTCL
  6311. end
  6312.  
  6313. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  6314. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  6315. end
  6316.  
  6317. function PositiveAngle(NUMBER)
  6318. if NUMBER >= 0 then
  6319. NUMBER = 0
  6320. end
  6321. return NUMBER
  6322. end
  6323.  
  6324. function NegativeAngle(NUMBER)
  6325. if NUMBER <= 0 then
  6326. NUMBER = 0
  6327. end
  6328. return NUMBER
  6329. end
  6330.  
  6331. function Swait(NUMBER)
  6332. if NUMBER == 0 or NUMBER == nil then
  6333. ArtificialHB.Event:wait()
  6334. else
  6335. for i = 1, NUMBER do
  6336. ArtificialHB.Event:wait()
  6337. end
  6338. end
  6339. end
  6340.  
  6341. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  6342. local NEWMESH = IT(MESH)
  6343. if MESH == "SpecialMesh" then
  6344. NEWMESH.MeshType = MESHTYPE
  6345. if MESHID ~= "nil" and MESHID ~= "" then
  6346. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  6347. end
  6348. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  6349. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  6350. end
  6351. end
  6352. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  6353. NEWMESH.Scale = SCALE
  6354. NEWMESH.Parent = PARENT
  6355. return NEWMESH
  6356. end
  6357.  
  6358. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  6359. local NEWPART = IT("Part")
  6360. NEWPART.formFactor = FORMFACTOR
  6361. NEWPART.Reflectance = REFLECTANCE
  6362. NEWPART.Transparency = TRANSPARENCY
  6363. NEWPART.CanCollide = false
  6364. NEWPART.Locked = true
  6365. NEWPART.Anchored = true
  6366. if ANCHOR == false then
  6367. NEWPART.Anchored = false
  6368. end
  6369. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  6370. NEWPART.Name = NAME
  6371. NEWPART.Size = SIZE
  6372. NEWPART.Position = Torso.Position
  6373. NEWPART.Material = MATERIAL
  6374. NEWPART:BreakJoints()
  6375. NEWPART.Parent = PARENT
  6376. return NEWPART
  6377. end
  6378.  
  6379. local function weldBetween(a, b)
  6380. local weldd = Instance.new("ManualWeld")
  6381. weldd.Part0 = a
  6382. weldd.Part1 = b
  6383. weldd.C0 = CFrame.new()
  6384. weldd.C1 = b.CFrame:inverse() * a.CFrame
  6385. weldd.Parent = a
  6386. return weldd
  6387. end
  6388.  
  6389.  
  6390. function QuaternionFromCFrame(cf)
  6391. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6392. local trace = m00 + m11 + m22
  6393. if trace > 0 then
  6394. local s = math.sqrt(1 + trace)
  6395. local recip = 0.5 / s
  6396. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  6397. else
  6398. local i = 0
  6399. if m11 > m00 then
  6400. i = 1
  6401. end
  6402. if m22 > (i == 0 and m00 or m11) then
  6403. i = 2
  6404. end
  6405. if i == 0 then
  6406. local s = math.sqrt(m00 - m11 - m22 + 1)
  6407. local recip = 0.5 / s
  6408. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  6409. elseif i == 1 then
  6410. local s = math.sqrt(m11 - m22 - m00 + 1)
  6411. local recip = 0.5 / s
  6412. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  6413. elseif i == 2 then
  6414. local s = math.sqrt(m22 - m00 - m11 + 1)
  6415. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  6416. end
  6417. end
  6418. end
  6419.  
  6420. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  6421. local xs, ys, zs = x + x, y + y, z + z
  6422. local wx, wy, wz = w * xs, w * ys, w * zs
  6423. local xx = x * xs
  6424. local xy = x * ys
  6425. local xz = x * zs
  6426. local yy = y * ys
  6427. local yz = y * zs
  6428. local zz = z * zs
  6429. 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))
  6430. end
  6431.  
  6432. function QuaternionSlerp(a, b, t)
  6433. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  6434. local startInterp, finishInterp;
  6435. if cosTheta >= 0.0001 then
  6436. if (1 - cosTheta) > 0.0001 then
  6437. local theta = ACOS(cosTheta)
  6438. local invSinTheta = 1 / SIN(theta)
  6439. startInterp = SIN((1 - t) * theta) * invSinTheta
  6440. finishInterp = SIN(t * theta) * invSinTheta
  6441. else
  6442. startInterp = 1 - t
  6443. finishInterp = t
  6444. end
  6445. else
  6446. if (1 + cosTheta) > 0.0001 then
  6447. local theta = ACOS(-cosTheta)
  6448. local invSinTheta = 1 / SIN(theta)
  6449. startInterp = SIN((t - 1) * theta) * invSinTheta
  6450. finishInterp = SIN(t * theta) * invSinTheta
  6451. else
  6452. startInterp = t - 1
  6453. finishInterp = t
  6454. end
  6455. end
  6456. 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
  6457. end
  6458.  
  6459. function Clerp(a, b, t)
  6460. local qa = {QuaternionFromCFrame(a)}
  6461. local qb = {QuaternionFromCFrame(b)}
  6462. local ax, ay, az = a.x, a.y, a.z
  6463. local bx, by, bz = b.x, b.y, b.z
  6464. local _t = 1 - t
  6465. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  6466. end
  6467.  
  6468. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  6469. local frame = IT("Frame")
  6470. frame.BackgroundTransparency = TRANSPARENCY
  6471. frame.BorderSizePixel = BORDERSIZEPIXEL
  6472. frame.Position = POSITION
  6473. frame.Size = SIZE
  6474. frame.BackgroundColor3 = COLOR
  6475. frame.BorderColor3 = BORDERCOLOR
  6476. frame.Name = NAME
  6477. frame.Parent = PARENT
  6478. return frame
  6479. end
  6480.  
  6481. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  6482. local label = IT("TextLabel")
  6483. label.BackgroundTransparency = 1
  6484. label.Size = UD2(1, 0, 1, 0)
  6485. label.Position = UD2(0, 0, 0, 0)
  6486. label.TextColor3 = TEXTCOLOR
  6487. label.TextStrokeTransparency = STROKETRANSPARENCY
  6488. label.TextTransparency = TRANSPARENCY
  6489. label.FontSize = TEXTFONTSIZE
  6490. label.Font = TEXTFONT
  6491. label.BorderSizePixel = BORDERSIZEPIXEL
  6492. label.TextScaled = false
  6493. label.Text = TEXT
  6494. label.Name = NAME
  6495. label.Parent = PARENT
  6496. return label
  6497. end
  6498.  
  6499. function NoOutlines(PART)
  6500. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  6501. end
  6502.  
  6503. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  6504. local NEWWELD = IT(TYPE)
  6505. NEWWELD.Part0 = PART0
  6506. NEWWELD.Part1 = PART1
  6507. NEWWELD.C0 = C0
  6508. NEWWELD.C1 = C1
  6509. NEWWELD.Parent = PARENT
  6510. return NEWWELD
  6511. end
  6512.  
  6513. local S = IT("Sound")
  6514. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  6515. local NEWSOUND = nil
  6516. coroutine.resume(coroutine.create(function()
  6517. NEWSOUND = S:Clone()
  6518. NEWSOUND.Parent = PARENT
  6519. NEWSOUND.Volume = VOLUME
  6520. NEWSOUND.Pitch = PITCH
  6521. NEWSOUND.SoundId = "rbxassetid://"..ID
  6522. NEWSOUND:play()
  6523. if DOESLOOP == true then
  6524. NEWSOUND.Looped = true
  6525. else
  6526. repeat wait(1) until NEWSOUND.Playing == false
  6527. NEWSOUND:remove()
  6528. end
  6529. end))
  6530. return NEWSOUND
  6531. end
  6532.  
  6533. function CFrameFromTopBack(at, top, back)
  6534. local right = top:Cross(back)
  6535. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  6536. end
  6537.  
  6538. function R_RANDOM(CFRAME,DIST)
  6539. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  6540. end
  6541.  
  6542. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  6543. function WACKYEFFECT(Table)
  6544. local TYPE = (Table.EffectType or "Sphere")
  6545. local SIZE = (Table.Size or VT(1,1,1))
  6546. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  6547. local TRANSPARENCY = (Table.Transparency or 0)
  6548. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  6549. local CFRAME = (Table.CFrame or Torso.CFrame)
  6550. local MOVEDIRECTION = (Table.MoveToPos or nil)
  6551. local ROTATION1 = (Table.RotationX or 0)
  6552. local ROTATION2 = (Table.RotationY or 0)
  6553. local ROTATION3 = (Table.RotationZ or 0)
  6554. local MATERIAL = (Table.Material or "Neon")
  6555. local COLOR = (Table.Color or C3(1,1,1))
  6556. local TIME = (Table.Time or 45)
  6557. local SOUNDID = (Table.SoundID or nil)
  6558. local SOUNDPITCH = (Table.SoundPitch or nil)
  6559. local SOUNDVOLUME = (Table.SoundVolume or nil)
  6560. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  6561. local BOOMERANG = (Table.Boomerang or 0)
  6562. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  6563. coroutine.resume(coroutine.create(function()
  6564. local PLAYSSOUND = false
  6565. local SOUND = nil
  6566. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  6567. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  6568. PLAYSSOUND = true
  6569. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  6570. end
  6571. EFFECT.Color = COLOR
  6572. local MSH = nil
  6573. if TYPE == "Sphere" then
  6574. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  6575. elseif TYPE == "Block" or TYPE == "Box" then
  6576. MSH = IT("BlockMesh",EFFECT)
  6577. MSH.Scale = SIZE
  6578. elseif TYPE == "Wave" then
  6579. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  6580. elseif TYPE == "Ring" then
  6581. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  6582. elseif TYPE == "Slash" then
  6583. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  6584. elseif TYPE == "Round Slash" then
  6585. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  6586. elseif TYPE == "Swirl" then
  6587. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  6588. elseif TYPE == "Skull" then
  6589. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  6590. elseif TYPE == "Crystal" then
  6591. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  6592. end
  6593. if MSH ~= nil then
  6594. local BOOMR1 = 1+BOOMERANG/50
  6595. local BOOMR2 = 1+SIZEBOOMERANG/50
  6596. local MOVESPEED = nil
  6597. if MOVEDIRECTION ~= nil then
  6598. if USEBOOMERANGMATH == true then
  6599. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  6600. else
  6601. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  6602. end
  6603. end
  6604. local GROWTH = nil
  6605. if USEBOOMERANGMATH == true then
  6606. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  6607. else
  6608. GROWTH = (SIZE - ENDSIZE)
  6609. end
  6610. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  6611. if TYPE == "Block" then
  6612. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  6613. else
  6614. EFFECT.CFrame = CFRAME
  6615. end
  6616. if USEBOOMERANGMATH == true then
  6617. for LOOP = 1, TIME+1 do
  6618. Swait()
  6619. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  6620. if TYPE == "Wave" then
  6621. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  6622. end
  6623. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  6624. if TYPE == "Block" then
  6625. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  6626. else
  6627. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  6628. end
  6629. if MOVEDIRECTION ~= nil then
  6630. local ORI = EFFECT.Orientation
  6631. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  6632. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  6633. end
  6634. end
  6635. else
  6636. for LOOP = 1, TIME+1 do
  6637. Swait()
  6638. MSH.Scale = MSH.Scale - GROWTH/TIME
  6639. if TYPE == "Wave" then
  6640. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  6641. end
  6642. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  6643. if TYPE == "Block" then
  6644. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  6645. else
  6646. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  6647. end
  6648. if MOVEDIRECTION ~= nil then
  6649. local ORI = EFFECT.Orientation
  6650. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  6651. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  6652. end
  6653. end
  6654. end
  6655. EFFECT.Transparency = 1
  6656. if PLAYSSOUND == false then
  6657. EFFECT:remove()
  6658. else
  6659. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  6660. EFFECT:remove()
  6661. end
  6662. else
  6663. if PLAYSSOUND == false then
  6664. EFFECT:remove()
  6665. else
  6666. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  6667. EFFECT:remove()
  6668. end
  6669. end
  6670. end))
  6671. end
  6672.  
  6673. function MakeForm(PART,TYPE)
  6674. if TYPE == "Cyl" then
  6675. local MSH = IT("CylinderMesh",PART)
  6676. elseif TYPE == "Ball" then
  6677. local MSH = IT("SpecialMesh",PART)
  6678. MSH.MeshType = "Sphere"
  6679. elseif TYPE == "Wedge" then
  6680. local MSH = IT("SpecialMesh",PART)
  6681. MSH.MeshType = "Wedge"
  6682. end
  6683. end
  6684.  
  6685. Debris = game:GetService("Debris")
  6686.  
  6687. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  6688. local DIRECTION = CF(StartPos,EndPos).lookVector
  6689. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  6690. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  6691. end
  6692.  
  6693. local DECAL = IT("Decal")
  6694. function MagicRing()
  6695. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),true)
  6696. local MESH = IT("BlockMesh",RING)
  6697. local BOTTOMTEXTURE = DECAL:Clone()
  6698. BOTTOMTEXTURE.Parent = RING
  6699. BOTTOMTEXTURE.Face = "Bottom"
  6700. BOTTOMTEXTURE.Name = "BottomTexture"
  6701. local TOPTEXTURE = DECAL:Clone()
  6702. TOPTEXTURE.Parent = RING
  6703. TOPTEXTURE.Face = "Top"
  6704. TOPTEXTURE.Name = "TopTexture"
  6705. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  6706. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  6707. BOTTOMTEXTURE.Color3 = C3(0,0,0)
  6708. TOPTEXTURE.Color3 = C3(0,0,0)
  6709. return RING,MESH,TOPTEXTURE,BOTTOMTEXTURE
  6710. end
  6711.  
  6712. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  6713. coroutine.resume(coroutine.create(function()
  6714. local FADE = IT("Model",Effects)
  6715. if PARENT ~= nil then
  6716. FADE.Parent = PARENT
  6717. end
  6718. FADE.Name = "FadingEffect"
  6719. for _, c in pairs(Character:GetChildren()) do
  6720. if c.ClassName == "Part" then
  6721. c.CanCollide = false
  6722. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
  6723. FADER.CFrame = c.CFrame
  6724. FADER.Color = COLOR
  6725. if FADER.Name == "Head" then
  6726. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  6727. elseif FADER.Name == "HumanoidRootPart" then
  6728. FADE.PrimaryPart = FADER
  6729. FADER.Transparency = 1
  6730. end
  6731. end
  6732. end
  6733. local TRANS = 0.25/TIMER
  6734. local DIST = nil
  6735. if MOVEDIRECTION ~= nil then
  6736. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  6737. end
  6738. for i = 1, TIMER do
  6739. Swait()
  6740. for _, c in pairs(FADE:GetChildren()) do
  6741. if c.ClassName == "Part" then
  6742. c.Transparency = c.Transparency + TRANS
  6743. end
  6744. end
  6745. if MOVEDIRECTION ~= nil then
  6746. local ORI = FADE.PrimaryPart.Orientation
  6747. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  6748. end
  6749. end
  6750. FADE:remove()
  6751. end))
  6752. end
  6753.  
  6754. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  6755. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  6756. end
  6757.  
  6758. function PositiveAngle(NUMBER)
  6759. if NUMBER >= 0 then
  6760. NUMBER = 0
  6761. end
  6762. return NUMBER
  6763. end
  6764.  
  6765. function NegativeAngle(NUMBER)
  6766. if NUMBER <= 0 then
  6767. NUMBER = 0
  6768. end
  6769. return NUMBER
  6770. end
  6771.  
  6772. function Swait(NUMBER)
  6773. if NUMBER == 0 or NUMBER == nil then
  6774. ArtificialHB.Event:wait()
  6775. else
  6776. for i = 1, NUMBER do
  6777. ArtificialHB.Event:wait()
  6778. end
  6779. end
  6780. end
  6781.  
  6782. function QuaternionFromCFrame(cf)
  6783. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6784. local trace = m00 + m11 + m22
  6785. if trace > 0 then
  6786. local s = math.sqrt(1 + trace)
  6787. local recip = 0.5 / s
  6788. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  6789. else
  6790. local i = 0
  6791. if m11 > m00 then
  6792. i = 1
  6793. end
  6794. if m22 > (i == 0 and m00 or m11) then
  6795. i = 2
  6796. end
  6797. if i == 0 then
  6798. local s = math.sqrt(m00 - m11 - m22 + 1)
  6799. local recip = 0.5 / s
  6800. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  6801. elseif i == 1 then
  6802. local s = math.sqrt(m11 - m22 - m00 + 1)
  6803. local recip = 0.5 / s
  6804. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  6805. elseif i == 2 then
  6806. local s = math.sqrt(m22 - m00 - m11 + 1)
  6807. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  6808. end
  6809. end
  6810. end
  6811.  
  6812. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  6813. local xs, ys, zs = x + x, y + y, z + z
  6814. local wx, wy, wz = w * xs, w * ys, w * zs
  6815. local xx = x * xs
  6816. local xy = x * ys
  6817. local xz = x * zs
  6818. local yy = y * ys
  6819. local yz = y * zs
  6820. local zz = z * zs
  6821. 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))
  6822. end
  6823.  
  6824. function QuaternionSlerp(a, b, t)
  6825. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  6826. local startInterp, finishInterp;
  6827. if cosTheta >= 0.0001 then
  6828. if (1 - cosTheta) > 0.0001 then
  6829. local theta = ACOS(cosTheta)
  6830. local invSinTheta = 1 / SIN(theta)
  6831. startInterp = SIN((1 - t) * theta) * invSinTheta
  6832. finishInterp = SIN(t * theta) * invSinTheta
  6833. else
  6834. startInterp = 1 - t
  6835. finishInterp = t
  6836. end
  6837. else
  6838. if (1 + cosTheta) > 0.0001 then
  6839. local theta = ACOS(-cosTheta)
  6840. local invSinTheta = 1 / SIN(theta)
  6841. startInterp = SIN((t - 1) * theta) * invSinTheta
  6842. finishInterp = SIN(t * theta) * invSinTheta
  6843. else
  6844. startInterp = t - 1
  6845. finishInterp = t
  6846. end
  6847. end
  6848. 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
  6849. end
  6850.  
  6851. function Clerp(a, b, t)
  6852. local qa = {QuaternionFromCFrame(a)}
  6853. local qb = {QuaternionFromCFrame(b)}
  6854. local ax, ay, az = a.x, a.y, a.z
  6855. local bx, by, bz = b.x, b.y, b.z
  6856. local _t = 1 - t
  6857. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  6858. end
  6859.  
  6860. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  6861. local frame = IT("Frame")
  6862. frame.BackgroundTransparency = TRANSPARENCY
  6863. frame.BorderSizePixel = BORDERSIZEPIXEL
  6864. frame.Position = POSITION
  6865. frame.Size = SIZE
  6866. frame.BackgroundColor3 = COLOR
  6867. frame.BorderColor3 = BORDERCOLOR
  6868. frame.Name = NAME
  6869. frame.Parent = PARENT
  6870. return frame
  6871. end
  6872.  
  6873. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  6874. local label = IT("TextLabel")
  6875. label.BackgroundTransparency = 1
  6876. label.Size = UD2(1, 0, 1, 0)
  6877. label.Position = UD2(0, 0, 0, 0)
  6878. label.TextColor3 = TEXTCOLOR
  6879. label.TextStrokeTransparency = STROKETRANSPARENCY
  6880. label.TextTransparency = TRANSPARENCY
  6881. label.FontSize = TEXTFONTSIZE
  6882. label.Font = TEXTFONT
  6883. label.BorderSizePixel = BORDERSIZEPIXEL
  6884. label.TextScaled = false
  6885. label.Text = TEXT
  6886. label.Name = NAME
  6887. label.Parent = PARENT
  6888. return label
  6889. end
  6890.  
  6891. function NoOutlines(PART)
  6892. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  6893. end
  6894.  
  6895.  
  6896. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  6897. local NEWWELD = IT(TYPE)
  6898. NEWWELD.Part0 = PART0
  6899. NEWWELD.Part1 = PART1
  6900. NEWWELD.C0 = C0
  6901. NEWWELD.C1 = C1
  6902. NEWWELD.Parent = PARENT
  6903. return NEWWELD
  6904. end
  6905.  
  6906. function CreateSound(ID, PARENT, VOLUME, PITCH)
  6907. local NEWSOUND = nil
  6908. coroutine.resume(coroutine.create(function()
  6909. NEWSOUND = IT("Sound", PARENT)
  6910. NEWSOUND.Volume = VOLUME
  6911. NEWSOUND.Pitch = PITCH
  6912. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  6913. Swait()
  6914. NEWSOUND:play()
  6915. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  6916. end))
  6917. return NEWSOUND
  6918. end
  6919.  
  6920. function CFrameFromTopBack(at, top, back)
  6921. local right = top:Cross(back)
  6922. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  6923. end
  6924.  
  6925. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  6926. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  6927. local mesh = IT("SpecialMesh",wave)
  6928. mesh.MeshType = "FileMesh"
  6929. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  6930. mesh.Scale = SIZE
  6931. mesh.Offset = VT(0,0,-SIZE.X/8)
  6932. wave.CFrame = CFRAME
  6933. coroutine.resume(coroutine.create(function(PART)
  6934. for i = 1, WAIT do
  6935. Swait()
  6936. mesh.Scale = mesh.Scale + GROW
  6937. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  6938. if DOESROT == true then
  6939. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  6940. end
  6941. wave.Transparency = wave.Transparency + (0.5/WAIT)
  6942. if wave.Transparency > 0.99 then
  6943. wave:remove()
  6944. end
  6945. end
  6946. end))
  6947. end
  6948.  
  6949. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  6950. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  6951. local mesh = IT("SpecialMesh",wave)
  6952. mesh.MeshType = "FileMesh"
  6953. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  6954. mesh.Scale = SIZE
  6955. --mesh.Offset = VT(0,0,-SIZE.X/8)
  6956. wave.CFrame = CFRAME
  6957. coroutine.resume(coroutine.create(function(PART)
  6958. for i = 1, WAIT do
  6959. Swait()
  6960. mesh.Scale = mesh.Scale + GROW
  6961. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  6962. if DOESROT == true then
  6963. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  6964. end
  6965. wave.Transparency = wave.Transparency + (0.5/WAIT)
  6966. if wave.Transparency > 0.99 then
  6967. wave:remove()
  6968. end
  6969. end
  6970. end))
  6971. end
  6972.  
  6973. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  6974. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  6975. local mesh = IT("SpecialMesh",wave)
  6976. mesh.MeshType = "FileMesh"
  6977. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  6978. mesh.Scale = SIZE
  6979. wave.CFrame = CFRAME
  6980. coroutine.resume(coroutine.create(function(PART)
  6981. for i = 1, WAIT do
  6982. Swait()
  6983. mesh.Scale = mesh.Scale + GROW
  6984. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  6985. if DOESROT == true then
  6986. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  6987. end
  6988. wave.Transparency = wave.Transparency + (0.5/WAIT)
  6989. if wave.Transparency > 0.99 then
  6990. wave:remove()
  6991. end
  6992. end
  6993. end))
  6994. end
  6995.  
  6996.  
  6997. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  6998. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  6999. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  7000. wave.CFrame = CFRAME
  7001. coroutine.resume(coroutine.create(function(PART)
  7002. for i = 1, WAIT do
  7003. Swait()
  7004. mesh.Scale = mesh.Scale * GROW
  7005. wave.Transparency = wave.Transparency + (0.5/WAIT)
  7006. if wave.Transparency > 0.99 then
  7007. wave:remove()
  7008. end
  7009. end
  7010. end))
  7011. end
  7012.  
  7013. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  7014. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  7015. local mesh = IT("SpecialMesh",wave)
  7016. mesh.MeshType = "Sphere"
  7017. mesh.Scale = SIZE
  7018. mesh.Offset = VT(0,0,0)
  7019. wave.CFrame = CFRAME
  7020. coroutine.resume(coroutine.create(function(PART)
  7021. for i = 1, WAIT do
  7022. Swait()
  7023. mesh.Scale = mesh.Scale + GROW
  7024. wave.Transparency = wave.Transparency + (1/WAIT)
  7025. if wave.Transparency > 0.99 then
  7026. wave:remove()
  7027. end
  7028. end
  7029. end))
  7030. end
  7031.  
  7032. function MakeForm(PART,TYPE)
  7033. if TYPE == "Cyl" then
  7034. local MSH = IT("CylinderMesh",PART)
  7035. elseif TYPE == "Ball" then
  7036. local MSH = IT("SpecialMesh",PART)
  7037. MSH.MeshType = "Sphere"
  7038. elseif TYPE == "Wedge" then
  7039. local MSH = IT("SpecialMesh",PART)
  7040. MSH.MeshType = "Wedge"
  7041. end
  7042. end
  7043.  
  7044. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  7045. if FLOOR ~= nil then
  7046. coroutine.resume(coroutine.create(function()
  7047. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  7048. PART.CFrame = CF(POSITION)
  7049. for i = 1, 45 do
  7050. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  7051. RingPiece.Material = FLOOR.Material
  7052. RingPiece.Color = FLOOR.Color
  7053. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  7054. Debris:AddItem(RingPiece,SWAIT/100)
  7055. end
  7056. PART:remove()
  7057. end))
  7058. end
  7059. end
  7060.  
  7061. function CheckTableForString(Table, String)
  7062. for i, v in pairs(Table) do
  7063. if string.find(string.lower(String), string.lower(v)) then
  7064. return true
  7065. end
  7066. end
  7067. return false
  7068. end
  7069.  
  7070. function CheckIntangible(Hit)
  7071. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  7072. if Hit and Hit.Parent then
  7073. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  7074. return true
  7075. end
  7076. end
  7077. return false
  7078. end
  7079.  
  7080. Debris = game:GetService("Debris")
  7081.  
  7082. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  7083. local Direction = CFrame.new(StartPos, Vec).lookVector
  7084. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  7085. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  7086. if RayHit and CheckIntangible(RayHit) then
  7087. if DelayIfHit then
  7088. wait()
  7089. end
  7090. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  7091. end
  7092. return RayHit, RayPos, RayNormal
  7093. end
  7094.  
  7095. function turnto(position)
  7096. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  7097. end
  7098.  
  7099. function CameraEnshaking(Length, Intensity)
  7100. coroutine.resume(coroutine.create(function()
  7101. local intensity = 1 * Intensity
  7102. local rotM = 0.01 * Intensity
  7103. for i = 0, Length, 0.1 do
  7104. Swait()
  7105. intensity = intensity - 0.05 * Intensity / Length
  7106. rotM = rotM - 5.0E-4 * Intensity / Length
  7107. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  7108. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  7109. end
  7110. hum.CameraOffset = Vector3.new(0, 0, 0)
  7111. end))
  7112. end
  7113. local EXE = Instance.new("Shirt")
  7114. EXE.ShirtTemplate = "rbxassetid://338740550"
  7115. EXE.Parent = Character
  7116. EXE.Name = "Cloth"
  7117. local LOL = Instance.new("Pants")
  7118. LOL.PantsTemplate = "rbxassetid://338750779"
  7119. LOL.Parent = Character
  7120. LOL.Name = "Cloth"
  7121.  
  7122. for i = 1, 35 do
  7123. local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  7124. FACE.Color = C3(0,0,0)
  7125. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  7126. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  7127. end
  7128.  
  7129. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  7130. MakeForm(Eye,"Ball")
  7131. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  7132. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  7133. MakeForm(Eye,"Ball")
  7134. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  7135. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  7136. MakeForm(Eye,"Ball")
  7137. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  7138. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  7139. MakeForm(Eye,"Ball")
  7140. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  7141.  
  7142. local LASTPART = Head
  7143. for i = 1, 20 do
  7144. local MATH = (1-(i/25))
  7145. if LASTPART == Head then
  7146. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  7147. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  7148. LASTPART = Horn
  7149. Horn.Color = C3((i*3-3)/255,0,0)
  7150. else
  7151. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  7152. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  7153. LASTPART = Horn
  7154. Horn.Color = C3((i*3-3)/255,0,0)
  7155. end
  7156. end
  7157. local LASTPART = Head
  7158. for i = 1, 20 do
  7159. local MATH = (1-(i/25))
  7160. if LASTPART == Head then
  7161. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  7162. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  7163. LASTPART = Horn
  7164. Horn.Color = C3((i*3-3)/255,0,0)
  7165. else
  7166. local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  7167. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  7168. LASTPART = Horn
  7169. Horn.Color = C3((i*3-3)/255,0,0)
  7170. end
  7171. end
  7172. --//=================================\\
  7173. --\\=================================//
  7174.  
  7175. plr = Player
  7176. char = plr.Character
  7177. hum = char.Humanoid
  7178. local cam = game.Workspace.CurrentCamera
  7179. Camera = cam
  7180. local CamInterrupt = false
  7181. local TwoD = false
  7182. local TargetInfo = {nil, nil}
  7183. cam.CameraType = "Custom"
  7184. t = char.Torso
  7185. h = char.Head
  7186. ra = char["Right Arm"]
  7187. la = char["Left Arm"]
  7188. rl = char["Right Leg"]
  7189. ll = char["Left Leg"]
  7190. tors = char.Torso
  7191. lleg = char["Left Leg"]
  7192. root = char.HumanoidRootPart
  7193. hed = char.Head
  7194. rleg = char["Right Leg"]
  7195. rarm = char["Right Arm"]
  7196. larm = char["Left Arm"]
  7197. radian = math.rad
  7198. random = math.random
  7199. Vec3 = Vector3.new
  7200. Inst = Instance.new
  7201. cFrame = CFrame.new
  7202. Euler = CFrame.fromEulerAnglesXYZ
  7203. vt = Vector3.new
  7204. bc = BrickColor.new
  7205. br = BrickColor.random
  7206. it = Instance.new
  7207. cf = CFrame.new
  7208. local Booleans = {CamFollow = true, GyroUse = true}
  7209. function lerp(object, newCFrame, alpha)
  7210. return object:lerp(newCFrame, alpha)
  7211. end
  7212.  
  7213. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  7214. ff.Visible = false
  7215.  
  7216.  
  7217. local Directer = Inst("BodyGyro", root)
  7218. Directer.MaxTorque = Vec3(0, 0, 0)
  7219. Directer.P = 600000
  7220. local CPart = Inst("Part")
  7221. CPart.Anchored = true
  7222. CPart.CanCollide = false
  7223. CPart.Locked = true
  7224. CPart.Transparency = 1
  7225. local rainbowmode = false
  7226. local chaosmode = false
  7227. kan = Instance.new("Sound", char)
  7228. kan.Volume = 5
  7229. kan.TimePosition = 0
  7230. kan.PlaybackSpeed = 1
  7231. kan.Pitch = 1
  7232. kan.SoundId = "rbxassetid://798163149"
  7233. kan.Name = "wrecked"
  7234. kan.Looped = true
  7235. kan.Playing = true
  7236. kan.PlayOnRemove = true
  7237. kan:Play()
  7238. function newTheme(ID, timepos, pitch, vol)
  7239. local kanz = kan
  7240. kanz.PlaybackSpeed = pitch
  7241. kanz.Pitch = pitch
  7242. kanz.SoundId = ID
  7243. kanz.Name = "wrecked"
  7244. kanz.Looped = true
  7245. end
  7246. function CameraShake(Times, Power, PlayerTarget)
  7247. coroutine.resume(coroutine.create(function()
  7248. FV = Instance.new("BoolValue", PlayerTarget)
  7249. FV.Name = "CameraShake"
  7250. for ShakeNum = 1, Times do
  7251. swait()
  7252. local ef = Power
  7253. if ef >= 1 then
  7254. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  7255. else
  7256. ef = Power * 10
  7257. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  7258. end
  7259. end
  7260. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  7261. FV:Destroy()
  7262. end))
  7263. end
  7264. function CameraEnshaking(Length, Intensity)
  7265. coroutine.resume(coroutine.create(function()
  7266. local intensity = 1 * Intensity
  7267. local rotM = 0.01 * Intensity
  7268. for i = 0, Length, 0.1 do
  7269. swait()
  7270. intensity = intensity - 0.05 * Intensity / Length
  7271. rotM = rotM - 5.0E-4 * Intensity / Length
  7272. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  7273. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  7274. end
  7275. Humanoid.CameraOffset = Vec3(0, 0, 0)
  7276. end))
  7277. end
  7278. function CamShake(Part, Distan, Power, Times)
  7279. local de = Part.Position
  7280. for i, v in pairs(workspace:children()) do
  7281. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  7282. for _, c in pairs(v:children()) do
  7283. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  7284. do
  7285. local Noob = v.Humanoid
  7286. if Noob ~= nil then
  7287. coroutine.resume(coroutine.create(function()
  7288. FV = Instance.new("BoolValue", Noob)
  7289. FV.Name = "CameraShake"
  7290. for ShakeNum = 1, Times do
  7291. swait()
  7292. local ef = Power
  7293. if ef >= 1 then
  7294. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  7295. else
  7296. ef = Power * 10
  7297. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  7298. end
  7299. end
  7300. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  7301. FV:Destroy()
  7302. end))
  7303. CameraShake(Times, Power, Noob)
  7304. end
  7305. end
  7306. end
  7307. end
  7308. end
  7309. end
  7310. end
  7311. function chatfunc(text, color)
  7312. local chat = coroutine.wrap(function()
  7313. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  7314. Character:FindFirstChild("TalkingBillBoard"):destroy()
  7315. end
  7316. local naeeym2 = Instance.new("BillboardGui", Character)
  7317. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  7318. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  7319. naeeym2.Adornee = Character.Head
  7320. naeeym2.Name = "TalkingBillBoard"
  7321. local tecks2 = Instance.new("TextLabel", naeeym2)
  7322. tecks2.BackgroundTransparency = 1
  7323. tecks2.BorderSizePixel = 0
  7324. tecks2.Text = ""
  7325. tecks2.Font = "SciFi"
  7326. tecks2.TextSize = 30
  7327. tecks2.TextStrokeTransparency = 0
  7328. tecks2.TextColor3 = color
  7329. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  7330. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  7331. local tecks3 = Instance.new("TextLabel", naeeym2)
  7332. tecks3.BackgroundTransparency = 1
  7333. tecks3.BorderSizePixel = 0
  7334. tecks3.Text = ""
  7335. tecks3.Font = "SciFi"
  7336. tecks3.TextSize = 30
  7337. tecks3.TextStrokeTransparency = 0
  7338. tecks3.TextColor3 = Color3.new(0, 0, 0)
  7339. tecks3.TextStrokeColor3 = color
  7340. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  7341. coroutine.resume(coroutine.create(function()
  7342. while true do
  7343. swait(1)
  7344. if chaosmode == true then
  7345. tecks2.TextColor3 = BrickColor.random().Color
  7346. tecks3.TextStrokeColor3 = BrickColor.random().Color
  7347. end
  7348. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  7349. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  7350. tecks2.Rotation = math.random(-5, 5)
  7351. tecks3.Rotation = math.random(-5, 5)
  7352. end
  7353. end))
  7354. for i = 1, string.len(text) do
  7355. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  7356. tecks2.Text = string.sub(text, 1, i)
  7357. tecks3.Text = string.sub(text, 1, i)
  7358. swait(1)
  7359. end
  7360. wait(1)
  7361. local randomrot = math.random(1, 2)
  7362. if randomrot == 1 then
  7363. for i = 1, 50 do
  7364. swait()
  7365. tecks2.Rotation = tecks2.Rotation - 0.75
  7366. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  7367. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  7368. tecks3.Rotation = tecks2.Rotation + 0.75
  7369. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  7370. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  7371. end
  7372. elseif randomrot == 2 then
  7373. for i = 1, 50 do
  7374. swait()
  7375. tecks2.Rotation = tecks2.Rotation + 0.75
  7376. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  7377. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  7378. tecks3.Rotation = tecks2.Rotation - 0.75
  7379. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  7380. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  7381. end
  7382. end
  7383. naeeym2:Destroy()
  7384. end)
  7385. chat()
  7386. end
  7387. local Create = LoadLibrary("RbxUtility").Create
  7388. CFuncs = {
  7389. Part = {
  7390. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  7391. local Part = Create("Part")({
  7392. Parent = Parent,
  7393. Reflectance = Reflectance,
  7394. Transparency = Transparency,
  7395. CanCollide = false,
  7396. Locked = true,
  7397. BrickColor = BrickColor.new(tostring(BColor)),
  7398. Name = Name,
  7399. Size = Size,
  7400. Material = Material
  7401. })
  7402. RemoveOutlines(Part)
  7403. return Part
  7404. end
  7405. },
  7406. Mesh = {
  7407. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  7408. local Msh = Create(Mesh)({
  7409. Parent = Part,
  7410. Offset = OffSet,
  7411. Scale = Scale
  7412. })
  7413. if Mesh == "SpecialMesh" then
  7414. Msh.MeshType = MeshType
  7415. Msh.MeshId = MeshId
  7416. end
  7417. return Msh
  7418. end
  7419. },
  7420. Mesh = {
  7421. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  7422. local Msh = Create(Mesh)({
  7423. Parent = Part,
  7424. Offset = OffSet,
  7425. Scale = Scale
  7426. })
  7427. if Mesh == "SpecialMesh" then
  7428. Msh.MeshType = MeshType
  7429. Msh.MeshId = MeshId
  7430. end
  7431. return Msh
  7432. end
  7433. },
  7434. Weld = {
  7435. Create = function(Parent, Part0, Part1, C0, C1)
  7436. local Weld = Create("Weld")({
  7437. Parent = Parent,
  7438. Part0 = Part0,
  7439. Part1 = Part1,
  7440. C0 = C0,
  7441. C1 = C1
  7442. })
  7443. return Weld
  7444. end
  7445. },
  7446. Sound = {
  7447. Create = function(id, par, vol, pit)
  7448. coroutine.resume(coroutine.create(function()
  7449. local S = Create("Sound")({
  7450. Volume = vol,
  7451. Pitch = pit or 1,
  7452. SoundId = id,
  7453. Parent = par or workspace
  7454. })
  7455. wait()
  7456. S:play()
  7457. game:GetService("Debris"):AddItem(S, 10)
  7458. end))
  7459. end
  7460. },
  7461. LongSound = {
  7462. Create = function(id, par, vol, pit)
  7463. coroutine.resume(coroutine.create(function()
  7464. local S = Create("Sound")({
  7465. Volume = vol,
  7466. Pitch = pit or 1,
  7467. SoundId = id,
  7468. Parent = par or workspace
  7469. })
  7470. wait()
  7471. S:play()
  7472. game:GetService("Debris"):AddItem(S, 30)
  7473. end))
  7474. end
  7475. },
  7476. ParticleEmitter = {
  7477. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  7478. local fp = Create("ParticleEmitter")({
  7479. Parent = Parent,
  7480. Color = ColorSequence.new(Color1, Color2),
  7481. LightEmission = LightEmission,
  7482. Size = Size,
  7483. Texture = Texture,
  7484. Transparency = Transparency,
  7485. ZOffset = ZOffset,
  7486. Acceleration = Accel,
  7487. Drag = Drag,
  7488. LockedToPart = LockedToPart,
  7489. VelocityInheritance = VelocityInheritance,
  7490. EmissionDirection = EmissionDirection,
  7491. Enabled = Enabled,
  7492. Lifetime = LifeTime,
  7493. Rate = Rate,
  7494. Rotation = Rotation,
  7495. RotSpeed = RotSpeed,
  7496. Speed = Speed,
  7497. VelocitySpread = VelocitySpread
  7498. })
  7499. return fp
  7500. end
  7501. },
  7502. CreateTemplate = {}
  7503. }
  7504. function New(Object, Parent, Name, Data)
  7505. local Object = Instance.new(Object)
  7506. for Index, Value in pairs(Data or {}) do
  7507. Object[Index] = Value
  7508. end
  7509. Object.Parent = Parent
  7510. Object.Name = Name
  7511. return Object
  7512. end
  7513. local halocolor = BrickColor.new("Pastel light blue")
  7514. local halocolor2 = BrickColor.new("Really black")
  7515. local starcolor = BrickColor.new("Really black")
  7516. local lunacolor = BrickColor.new("Navy blue")
  7517. local lunacolor2 = BrickColor.new("Bright blue")
  7518. local wepcolor = BrickColor.new("Really black")
  7519. local maincolor = BrickColor.new("Really black")
  7520. local m = Instance.new("Model", char)
  7521. local m2 = Instance.new("Model", char)
  7522. local m3 = Instance.new("Model", char)
  7523. local mw1 = Instance.new("Model", char)
  7524. local mw2 = Instance.new("Model", char)
  7525. local extrawingmod1 = Instance.new("Model", char)
  7526. local extrawingmod2 = Instance.new("Model", char)
  7527. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  7528. local p = Instance.new("Part")
  7529. p.TopSurface = 0
  7530. p.BottomSurface = 0
  7531. p.Parent = parent
  7532. p.Size = Vector3.new(0.1, 0.1, 0.1)
  7533. p.Transparency = transparency
  7534. p.Reflectance = reflectance
  7535. p.CanCollide = false
  7536. p.Locked = true
  7537. p.BrickColor = brickcolor
  7538. p.Material = material
  7539. return p
  7540. end
  7541. function CreateMesh(parent, meshtype, x1, y1, z1)
  7542. local mesh = Instance.new("SpecialMesh", parent)
  7543. mesh.MeshType = meshtype
  7544. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  7545. return mesh
  7546. end
  7547. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  7548. local mesh = Instance.new("SpecialMesh", parent)
  7549. mesh.MeshType = "FileMesh"
  7550. mesh.MeshId = meshid
  7551. mesh.Scale = Vector3.new(x1, y1, z1)
  7552. return mesh
  7553. end
  7554. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  7555. local mesh = Instance.new("SpecialMesh", parent)
  7556. mesh.MeshType = "FileMesh"
  7557. mesh.MeshId = meshid
  7558. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  7559. mesh.Scale = Vector3.new(x1, y1, z1)
  7560. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  7561. return mesh
  7562. end
  7563. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  7564. local weld = Instance.new("Weld")
  7565. weld.Parent = parent
  7566. weld.Part0 = part0
  7567. weld.Part1 = part1
  7568. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  7569. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  7570. return weld
  7571. end
  7572. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  7573. CreateMesh(handle, "Brick", 0, 0, 0)
  7574. local handlexweld = CreateWeld(handlex, tors, handlex, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7575. local valuaring = 10
  7576. for i = 0, 49 do
  7577. valuaring = valuaring + 10
  7578. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7579. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  7580. CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7581. end
  7582. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  7583. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7584. local handleweld = CreateWeld(handle, tors, handle, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7585. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  7586. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7587. local lwing1weld = CreateWeld(lwing1, handle, lwing1, 3, 0, 0, math.rad(5), math.rad(0), math.rad(12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7588. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7589. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7590. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7591. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7592. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7593. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7594. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7595. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7596. CreateWeld(wed, lwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7597. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7598. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7599. CreateWeld(wed, lwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7600. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  7601. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7602. local lwing2weld = CreateWeld(lwing2, handle, lwing2, 4, 1, 0, math.rad(10), math.rad(0), math.rad(25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7603. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7604. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7605. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7606. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7607. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7608. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7609. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7610. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7611. CreateWeld(wed, lwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7612. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7613. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7614. CreateWeld(wed, lwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7615. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  7616. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7617. local lwing3weld = CreateWeld(lwing3, handle, lwing3, 4.75, 2, 0, math.rad(15), math.rad(0), math.rad(37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7618. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7619. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7620. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7621. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7622. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7623. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7624. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7625. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7626. CreateWeld(wed, lwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7627. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  7628. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7629. CreateWeld(wed, lwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7630. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  7631. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7632. local lwing4weld = CreateWeld(lwing4, handle, lwing4, 5.75, 3, 0, math.rad(20), math.rad(0), math.rad(50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7633. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7634. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7635. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7636. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7637. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7638. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7639. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7640. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7641. CreateWeld(wed, lwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7642. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7643. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7644. CreateWeld(wed, lwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7645. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  7646. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7647. local lwing5weld = CreateWeld(lwing5, handle, lwing5, 6.75, 4, 0, math.rad(25), math.rad(0), math.rad(62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7648. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7649. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7650. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7651. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7652. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7653. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7654. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7655. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7656. CreateWeld(wed, lwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7657. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7658. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7659. CreateWeld(wed, lwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7660. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  7661. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7662. local lwing6weld = CreateWeld(lwing6, handle, lwing6, 7.75, 5, 0, math.rad(30), math.rad(0), math.rad(75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7663. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7664. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7665. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7666. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7667. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7668. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7669. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7670. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7671. CreateWeld(wed, lwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7672. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  7673. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7674. CreateWeld(wed, lwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7675. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  7676. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7677. local rwing1weld = CreateWeld(rwing1, handle, rwing1, -3, 0, 0, math.rad(5), math.rad(0), math.rad(-12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7678. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7679. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7680. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7681. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7682. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7683. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7684. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7685. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7686. CreateWeld(wed, rwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7687. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7688. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7689. CreateWeld(wed, rwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7690. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  7691. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7692. local rwing2weld = CreateWeld(rwing2, handle, rwing2, -4, 1, 0, math.rad(10), math.rad(0), math.rad(-25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7693. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7694. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7695. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7696. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7697. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7698. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7699. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7700. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7701. CreateWeld(wed, rwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7702. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7703. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7704. CreateWeld(wed, rwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7705. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  7706. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7707. local rwing3weld = CreateWeld(rwing3, handle, rwing3, -4.75, 2, 0, math.rad(15), math.rad(0), math.rad(-37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7708. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7709. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7710. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7711. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7712. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7713. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7714. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7715. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7716. CreateWeld(wed, rwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7717. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  7718. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7719. CreateWeld(wed, rwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7720. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  7721. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7722. local rwing4weld = CreateWeld(rwing4, handle, rwing4, -5.75, 3, 0, math.rad(20), math.rad(0), math.rad(-50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7723. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7724. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7725. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7726. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7727. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7728. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7729. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7730. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7731. CreateWeld(wed, rwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7732. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7733. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7734. CreateWeld(wed, rwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7735. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  7736. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7737. local rwing5weld = CreateWeld(rwing5, handle, rwing5, -6.75, 4, 0, math.rad(25), math.rad(0), math.rad(-62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7738. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7739. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7740. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7741. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7742. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7743. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7744. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7745. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7746. CreateWeld(wed, rwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7747. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7748. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7749. CreateWeld(wed, rwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7750. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  7751. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  7752. local rwing6weld = CreateWeld(rwing6, handle, rwing6, -7.75, 3, 0, math.rad(30), math.rad(0), math.rad(-75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7753. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7754. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7755. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7756. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7757. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  7758. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7759. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7760. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  7761. CreateWeld(wed, rwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7762. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  7763. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  7764. CreateWeld(wed, rwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7765. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  7766. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  7767. CreateWeld(ran, larm, ran, 0, 0.15, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7768. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7769. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  7770. CreateWeld(ran, larm, ran, 0, 0.155, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7771. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7772. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  7773. CreateWeld(ran, larm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7774. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7775. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  7776. 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))
  7777. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7778. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  7779. 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))
  7780. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  7781. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  7782. 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))
  7783. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  7784. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  7785. 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))
  7786. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  7787. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  7788. 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))
  7789. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7790. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  7791. 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))
  7792. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  7793. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  7794. 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))
  7795. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7796. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7797. 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))
  7798. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7799. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7800. 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))
  7801. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7802. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7803. 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))
  7804. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7805. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7806. 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))
  7807. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7808. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7809. 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))
  7810. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7811. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7812. 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))
  7813. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7814. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7815. 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))
  7816. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7817. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7818. 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))
  7819. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7820. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7821. 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))
  7822. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7823. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7824. 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))
  7825. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7826. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7827. 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))
  7828. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7829. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7830. 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))
  7831. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7832. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7833. 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))
  7834. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7835. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7836. 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))
  7837. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7838. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7839. 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))
  7840. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7841. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7842. 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))
  7843. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7844. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7845. 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))
  7846. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7847. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7848. 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))
  7849. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7850. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7851. 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))
  7852. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7853. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7854. 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))
  7855. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7856. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7857. 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))
  7858. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7859. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7860. 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))
  7861. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7862. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7863. 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))
  7864. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7865. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7866. 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))
  7867. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7868. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7869. 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))
  7870. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7871. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7872. 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))
  7873. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7874. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7875. 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))
  7876. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7877. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7878. 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))
  7879. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7880. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7881. 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))
  7882. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7883. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7884. 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))
  7885. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  7886. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  7887. CreateWeld(ran, rarm, ran, 0, 0.15, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7888. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7889. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  7890. CreateWeld(ran, rarm, ran, 0, 0.155, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7891. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7892. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  7893. CreateWeld(ran, rarm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  7894. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7895. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  7896. 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))
  7897. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7898. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  7899. 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))
  7900. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  7901. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  7902. 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))
  7903. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  7904. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  7905. 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))
  7906. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  7907. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  7908. 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))
  7909. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7910. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  7911. 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))
  7912. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  7913. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  7914. 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))
  7915. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7916. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7917. 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))
  7918. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7919. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7920. 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))
  7921. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7922. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7923. 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))
  7924. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7925. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7926. 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))
  7927. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7928. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7929. 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))
  7930. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7931. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7932. 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))
  7933. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7934. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7935. 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))
  7936. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7937. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7938. 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))
  7939. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7940. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7941. 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))
  7942. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7943. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7944. 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))
  7945. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7946. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7947. 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))
  7948. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7949. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7950. 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))
  7951. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7952. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7953. 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))
  7954. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7955. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7956. 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))
  7957. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7958. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7959. 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))
  7960. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7961. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7962. 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))
  7963. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7964. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7965. 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))
  7966. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7967. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7968. 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))
  7969. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7970. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7971. 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))
  7972. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7973. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7974. 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))
  7975. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7976. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7977. 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))
  7978. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7979. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7980. 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))
  7981. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7982. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7983. 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))
  7984. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7985. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7986. 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))
  7987. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7988. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7989. 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))
  7990. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  7991. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  7992. 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))
  7993. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  7994. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  7995. 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))
  7996. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  7997. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  7998. 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))
  7999. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  8000. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  8001. 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))
  8002. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  8003. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  8004. 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))
  8005. for i, v in pairs(m:GetChildren()) do
  8006. if v:IsA("Part") then
  8007. v.BrickColor = BrickColor.new("Really black")
  8008. v.Material = "Neon"
  8009. v.Transparency = 1
  8010. end
  8011. end
  8012. for i, v in pairs(m2:GetChildren()) do
  8013. if v:IsA("Part") then
  8014. v.BrickColor = BrickColor.new("Really black")
  8015. v.Material = "Neon"
  8016. v.Transparency = 1
  8017. end
  8018. end
  8019. for i, v in pairs(m3:GetChildren()) do
  8020. if v:IsA("Part") then
  8021. v.BrickColor = BrickColor.new("Really black")
  8022. v.Material = "Neon"
  8023. v.Transparency = 1
  8024. end
  8025. end
  8026. for i, v in pairs(mw2:GetChildren()) do
  8027. if v:IsA("Part") then
  8028. v.BrickColor = BrickColor.new("Really black")
  8029. v.Material = "Neon"
  8030. end
  8031. end
  8032. for i, v in pairs(mw1:GetChildren()) do
  8033. if v:IsA("Part") then
  8034. v.BrickColor = BrickColor.new("Really black")
  8035. v.Material = "Neon"
  8036. end
  8037. end
  8038. for i, v in pairs(extrawingmod1:GetChildren()) do
  8039. if v:IsA("Part") then
  8040. v.BrickColor = BrickColor.new("Really black")
  8041. v.Material = "Neon"
  8042. end
  8043. end
  8044. for i, v in pairs(extrawingmod2:GetChildren()) do
  8045. if v:IsA("Part") then
  8046. v.Transparency = 0
  8047. v.BrickColor = BrickColor.new("Really black")
  8048. v.Material = "Neon"
  8049. end
  8050. end
  8051.  
  8052.  
  8053. local MAINRUINCOLOR = BrickColor.new("Really black")
  8054. function RemoveOutlines(part)
  8055. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  8056. end
  8057. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  8058. local Part = Create("Part")({
  8059. Parent = Parent,
  8060. Reflectance = Reflectance,
  8061. Transparency = Transparency,
  8062. CanCollide = false,
  8063. Locked = true,
  8064. BrickColor = BrickColor.new(tostring(BColor)),
  8065. Name = Name,
  8066. Size = Size,
  8067. Material = Material
  8068. })
  8069. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  8070. RemoveOutlines(Part)
  8071. return Part
  8072. end
  8073. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  8074. local Msh = Create(Mesh)({
  8075. Parent = Part,
  8076. Offset = OffSet,
  8077. Scale = Scale
  8078. })
  8079. if Mesh == "SpecialMesh" then
  8080. Msh.MeshType = MeshType
  8081. Msh.MeshId = MeshId
  8082. end
  8083. return Msh
  8084. end
  8085. function CreateWeld(Parent, Part0, Part1, C0, C1)
  8086. local Weld = Create("Weld")({
  8087. Parent = Parent,
  8088. Part0 = Part0,
  8089. Part1 = Part1,
  8090. C0 = C0,
  8091. C1 = C1
  8092. })
  8093. return Weld
  8094. end
  8095.  
  8096. Player = Player
  8097. Character = Player.Character
  8098. PlayerGui = Player.PlayerGui
  8099. Backpack = Player.Backpack
  8100. Torso = Character.Torso
  8101. Head = Character.Head
  8102. Humanoid = Character.Humanoid
  8103. m = Instance.new("Model", Character)
  8104. LeftArm = Character["Left Arm"]
  8105. LeftLeg = Character["Left Leg"]
  8106. RightArm = Character["Right Arm"]
  8107. RightLeg = Character["Right Leg"]
  8108. LS = Torso["Left Shoulder"]
  8109. LH = Torso["Left Hip"]
  8110. RS = Torso["Right Shoulder"]
  8111. RH = Torso["Right Hip"]
  8112. Face = Head.face
  8113. Neck = Torso.Neck
  8114. it = Instance.new
  8115. attacktype = 1
  8116. vt = Vector3.new
  8117. cf = CFrame.new
  8118. euler = CFrame.fromEulerAnglesXYZ
  8119. angles = CFrame.Angles
  8120. cloaked = false
  8121. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  8122. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  8123. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  8124. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  8125. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  8126. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  8127. RootPart = Character.HumanoidRootPart
  8128. RootJoint = RootPart.RootJoint
  8129. RootCF = euler(-1.57, 0, 3.14)
  8130. attack = false
  8131. attackdebounce = false
  8132. deb = false
  8133. equipped = true
  8134. hand = false
  8135. MMouse = nil
  8136. combo = 0
  8137. mana = 0
  8138. trispeed = 0.2
  8139. attackmode = "none"
  8140. local idle = 0
  8141. local Anim = "Idle"
  8142. local Effects = {}
  8143. local gun = false
  8144. local shoot = false
  8145. local sine = 0
  8146. local change = 1
  8147. player = nil
  8148. local toggleTag = true
  8149. local txt = Instance.new("BillboardGui", Head)
  8150. txt.Adornee = nil
  8151. txt.Name = "NameDetect"
  8152. txt.Size = UDim2.new(4, 0, 1.2, 0)
  8153. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  8154. local text = Instance.new("TextLabel", txt)
  8155. text.Size = UDim2.new(5, 0, 3.5, 0)
  8156. text.FontSize = "Size8"
  8157. text.TextScaled = true
  8158. text.TextTransparency = 0
  8159. text.BackgroundTransparency = 1
  8160. text.TextTransparency = 0
  8161. text.TextStrokeTransparency = 0
  8162. text.Font = "Antique"
  8163. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  8164. text.TextColor3 = Color3.new(0, 0, 0)
  8165. text.Text = "Skidisher"
  8166. function RecolorTextAndRename(name, col1, col2)
  8167. text.TextStrokeColor3 = col2
  8168. text.TextColor3 = col1
  8169. text.Text = name
  8170. end
  8171. mouse = Player:GetMouse()
  8172. RSH, LSH = nil, nil
  8173. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  8174. RW.Name = "Right Shoulder"
  8175. LW.Name = "Left Shoulder"
  8176. LH = Torso["Left Hip"]
  8177. RH = Torso["Right Hip"]
  8178. TorsoColor = Torso.BrickColor
  8179. function NoOutline(Part)
  8180. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  8181. end
  8182. player = Player
  8183. ch = Character
  8184. RSH = ch.Torso["Right Shoulder"]
  8185. LSH = ch.Torso["Left Shoulder"]
  8186. RSH.Parent = nil
  8187. LSH.Parent = nil
  8188. RW.Name = "Right Shoulder"
  8189. RW.Part0 = ch.Torso
  8190. RW.C0 = cf(1.5, 0.5, 0)
  8191. RW.C1 = cf(0, 0.5, 0)
  8192. RW.Part1 = ch["Right Arm"]
  8193. RW.Parent = ch.Torso
  8194. LW.Name = "Left Shoulder"
  8195. LW.Part0 = ch.Torso
  8196. LW.C0 = cf(-1.5, 0.5, 0)
  8197. LW.C1 = cf(0, 0.5, 0)
  8198. LW.Part1 = ch["Left Arm"]
  8199. LW.Parent = ch.Torso
  8200. local Stats = Instance.new("BoolValue")
  8201. Stats.Name = "Stats"
  8202. Stats.Parent = Character
  8203. local Atk = Instance.new("NumberValue")
  8204. Atk.Name = "Damage"
  8205. Atk.Parent = Stats
  8206. Atk.Value = 1
  8207. local Def = Instance.new("NumberValue")
  8208. Def.Name = "Defense"
  8209. Def.Parent = Stats
  8210. Def.Value = 1
  8211. local Speed = Instance.new("NumberValue")
  8212. Speed.Name = "Speed"
  8213. Speed.Parent = Stats
  8214. Speed.Value = 1
  8215. local Mvmt = Instance.new("NumberValue")
  8216. Mvmt.Name = "Movement"
  8217. Mvmt.Parent = Stats
  8218. Mvmt.Value = 1
  8219. local donum = 0
  8220.  
  8221. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  8222. local fp = it("Part")
  8223. fp.formFactor = formfactor
  8224. fp.Parent = parent
  8225. fp.Reflectance = reflectance
  8226. fp.Transparency = transparency
  8227. fp.CanCollide = false
  8228. fp.Locked = true
  8229. fp.BrickColor = brickcolor
  8230. fp.Name = name
  8231. fp.Size = size
  8232. fp.Position = Torso.Position
  8233. NoOutline(fp)
  8234. fp.Material = "SmoothPlastic"
  8235. fp:BreakJoints()
  8236. return fp
  8237. end
  8238. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  8239. local mesh = it(Mesh)
  8240. mesh.Parent = part
  8241. if Mesh == "SpecialMesh" then
  8242. mesh.MeshType = meshtype
  8243. if meshid ~= "nil" then
  8244. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  8245. end
  8246. end
  8247. mesh.Offset = offset
  8248. mesh.Scale = scale
  8249. return mesh
  8250. end
  8251. function weld(parent, part0, part1, c0)
  8252. local weld = it("Weld")
  8253. weld.Parent = parent
  8254. weld.Part0 = part0
  8255. weld.Part1 = part1
  8256. weld.C0 = c0
  8257. return weld
  8258. end
  8259. local Color1 = Torso.BrickColor
  8260. local bodvel = Instance.new("BodyVelocity")
  8261. local bg = Instance.new("BodyGyro")
  8262. function swait(num)
  8263. if num == 0 or num == nil then
  8264. game:service("RunService").Stepped:wait(0)
  8265. else
  8266. for i = 0, num do
  8267. game:service("RunService").Stepped:wait(0)
  8268. end
  8269. end
  8270. end
  8271. local r = 255
  8272. local g = 0
  8273. local b = 0
  8274. coroutine.resume(coroutine.create(function()
  8275. while wait() do
  8276. for i = 0, 50.8 do
  8277. swait()
  8278. g = g + 5
  8279. end
  8280. for i = 0, 50.8 do
  8281. swait()
  8282. r = r - 5
  8283. end
  8284. for i = 0, 50.8 do
  8285. swait()
  8286. b = b + 5
  8287. end
  8288. for i = 0, 50.8 do
  8289. swait()
  8290. g = g - 5
  8291. end
  8292. for i = 0, 50.8 do
  8293. swait()
  8294. r = r + 5
  8295. end
  8296. for i = 0, 50.8 do
  8297. swait()
  8298. b = b - 5
  8299. end
  8300. end
  8301. end))
  8302. function so(id, par, vol, pit)
  8303. coroutine.resume(coroutine.create(function()
  8304. local sou = Instance.new("Sound", par or workspace)
  8305. sou.Volume = vol
  8306. sou.Pitch = pit or 1
  8307. sou.SoundId = id
  8308. swait()
  8309. sou:play()
  8310. game:GetService("Debris"):AddItem(sou, 6)
  8311. end))
  8312. end
  8313. function clerp(a, b, t)
  8314. local qa = {
  8315. QuaternionFromCFrame(a)
  8316. }
  8317. local qb = {
  8318. QuaternionFromCFrame(b)
  8319. }
  8320. local ax, ay, az = a.x, a.y, a.z
  8321. local bx, by, bz = b.x, b.y, b.z
  8322. local _t = 1 - t
  8323. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  8324. end
  8325. function QuaternionFromCFrame(cf)
  8326. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  8327. local trace = m00 + m11 + m22
  8328. if trace > 0 then
  8329. local s = math.sqrt(1 + trace)
  8330. local recip = 0.5 / s
  8331. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  8332. else
  8333. local i = 0
  8334. if m00 < m11 then
  8335. i = 1
  8336. end
  8337. if m22 > (i == 0 and m00 or m11) then
  8338. i = 2
  8339. end
  8340. if i == 0 then
  8341. local s = math.sqrt(m00 - m11 - m22 + 1)
  8342. local recip = 0.5 / s
  8343. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  8344. elseif i == 1 then
  8345. local s = math.sqrt(m11 - m22 - m00 + 1)
  8346. local recip = 0.5 / s
  8347. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  8348. elseif i == 2 then
  8349. local s = math.sqrt(m22 - m00 - m11 + 1)
  8350. local recip = 0.5 / s
  8351. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  8352. end
  8353. end
  8354. end
  8355. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  8356. local xs, ys, zs = x + x, y + y, z + z
  8357. local wx, wy, wz = w * xs, w * ys, w * zs
  8358. local xx = x * xs
  8359. local xy = x * ys
  8360. local xz = x * zs
  8361. local yy = y * ys
  8362. local yz = y * zs
  8363. local zz = z * zs
  8364. 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))
  8365. end
  8366. function QuaternionSlerp(a, b, t)
  8367. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  8368. local startInterp, finishInterp
  8369. if cosTheta >= 1.0E-4 then
  8370. if 1 - cosTheta > 1.0E-4 then
  8371. local theta = math.acos(cosTheta)
  8372. local invSinTheta = 1 / math.sin(theta)
  8373. startInterp = math.sin((1 - t) * theta) * invSinTheta
  8374. finishInterp = math.sin(t * theta) * invSinTheta
  8375. else
  8376. startInterp = 1 - t
  8377. finishInterp = t
  8378. end
  8379. elseif 1 + cosTheta > 1.0E-4 then
  8380. local theta = math.acos(-cosTheta)
  8381. local invSinTheta = 1 / math.sin(theta)
  8382. startInterp = math.sin((t - 1) * theta) * invSinTheta
  8383. finishInterp = math.sin(t * theta) * invSinTheta
  8384. else
  8385. startInterp = t - 1
  8386. finishInterp = t
  8387. end
  8388. 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
  8389. end
  8390. local CFrameFromTopBack = function(at, top, back)
  8391. local right = top:Cross(back)
  8392. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  8393. end
  8394. function Triangle(a, b, c)
  8395. local edg1 = (c - a):Dot((b - a).unit)
  8396. local edg2 = (a - b):Dot((c - b).unit)
  8397. local edg3 = (b - c):Dot((a - c).unit)
  8398. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  8399. a, b = a, b
  8400. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  8401. a, b, c = b, c, a
  8402. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  8403. a, b, c = c, a, b
  8404. else
  8405. assert(false, "unreachable")
  8406. end
  8407. local len1 = (c - a):Dot((b - a).unit)
  8408. local len2 = (b - a).magnitude - len1
  8409. local width = (a + (b - a).unit * len1 - c).magnitude
  8410. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  8411. local list = {}
  8412. if len1 > 0.01 then
  8413. local w1 = Instance.new("WedgePart", m)
  8414. game:GetService("Debris"):AddItem(w1, 5)
  8415. w1.Material = "SmoothPlastic"
  8416. w1.FormFactor = "Custom"
  8417. w1.BrickColor = BrickColor.new("Really red")
  8418. w1.Transparency = 0
  8419. w1.Reflectance = 0
  8420. w1.Material = "SmoothPlastic"
  8421. w1.CanCollide = false
  8422. local l1 = Instance.new("PointLight", w1)
  8423. l1.Color = Color3.new(170, 0, 0)
  8424. NoOutline(w1)
  8425. local sz = Vector3.new(0.2, width, len1)
  8426. w1.Size = sz
  8427. local sp = Instance.new("SpecialMesh", w1)
  8428. sp.MeshType = "Wedge"
  8429. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  8430. w1:BreakJoints()
  8431. w1.Anchored = true
  8432. w1.Parent = workspace
  8433. w1.Transparency = 0.7
  8434. table.insert(Effects, {
  8435. w1,
  8436. "Disappear",
  8437. 0.01
  8438. })
  8439. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  8440. table.insert(list, w1)
  8441. end
  8442. if len2 > 0.01 then
  8443. local w2 = Instance.new("WedgePart", m)
  8444. game:GetService("Debris"):AddItem(w2, 5)
  8445. w2.Material = "SmoothPlastic"
  8446. w2.FormFactor = "Custom"
  8447. w2.BrickColor = BrickColor.new("Really red")
  8448. w2.Transparency = 0
  8449. w2.Reflectance = 0
  8450. w2.Material = "SmoothPlastic"
  8451. w2.CanCollide = false
  8452. local l2 = Instance.new("PointLight", w2)
  8453. l2.Color = Color3.new(170, 0, 0)
  8454. NoOutline(w2)
  8455. local sz = Vector3.new(0.2, width, len2)
  8456. w2.Size = sz
  8457. local sp = Instance.new("SpecialMesh", w2)
  8458. sp.MeshType = "Wedge"
  8459. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  8460. w2:BreakJoints()
  8461. w2.Anchored = true
  8462. w2.Parent = workspace
  8463. w2.Transparency = 0.7
  8464. table.insert(Effects, {
  8465. w2,
  8466. "Disappear",
  8467. 0.01
  8468. })
  8469. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  8470. table.insert(list, w2)
  8471. end
  8472. return unpack(list)
  8473. end
  8474. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  8475. if hit.Parent == nil then
  8476. return
  8477. end
  8478. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  8479. for _, v in pairs(hit.Parent:children()) do
  8480. if v:IsA("Humanoid") then
  8481. h = v
  8482. end
  8483. end
  8484. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  8485. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  8486. return
  8487. end
  8488. local c = Create("ObjectValue")({
  8489. Name = "creator",
  8490. Value = RealGame:service("Players")[owner.Name],
  8491. Parent = h
  8492. })
  8493. game:GetService("Debris"):AddItem(c, 0.5)
  8494. if HitSound ~= nil and HitPitch ~= nil then
  8495. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  8496. end
  8497. local Damage = math.random(minim, maxim)
  8498. local blocked = false
  8499. local block = hit.Parent:findFirstChild("Block")
  8500. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  8501. blocked = true
  8502. block.Value = block.Value - 1
  8503. print(block.Value)
  8504. end
  8505. if blocked == false then
  8506. HitHealth = h.Health
  8507. h.Health = h.Health - Damage
  8508. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  8509. print("gained kill")
  8510. end
  8511. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  8512. else
  8513. h.Health = h.Health - Damage / 2
  8514. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  8515. end
  8516. if Type == "Knockdown" then
  8517. local hum = hit.Parent.Humanoid
  8518. hum.PlatformStand = true
  8519. coroutine.resume(coroutine.create(function(HHumanoid)
  8520. swait(1)
  8521. HHumanoid.PlatformStand = false
  8522. end), hum)
  8523. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  8524. local bodvol = Create("BodyVelocity")({
  8525. velocity = angle * knockback,
  8526. P = 5000,
  8527. maxForce = Vector3.new(8000, 8000, 8000),
  8528. Parent = hit
  8529. })
  8530. local rl = Create("BodyAngularVelocity")({
  8531. P = 3000,
  8532. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  8533. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  8534. Parent = hit
  8535. })
  8536. game:GetService("Debris"):AddItem(bodvol, 0.5)
  8537. game:GetService("Debris"):AddItem(rl, 0.5)
  8538. elseif Type == "Normal" then
  8539. local vp = Create("BodyVelocity")({
  8540. P = 500,
  8541. maxForce = Vector3.new(math.huge, 0, math.huge),
  8542. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  8543. })
  8544. if knockback > 0 then
  8545. vp.Parent = hit.Parent.Head
  8546. end
  8547. game:GetService("Debris"):AddItem(vp, 0.5)
  8548. elseif Type == "Up" then
  8549. local bodyVelocity = Create("BodyVelocity")({
  8550. velocity = Vector3.new(0, 20, 0),
  8551. P = 5000,
  8552. maxForce = Vector3.new(8000, 8000, 8000),
  8553. Parent = hit
  8554. })
  8555. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  8556. local bodyVelocity = Create("BodyVelocity")({
  8557. velocity = Vector3.new(0, 20, 0),
  8558. P = 5000,
  8559. maxForce = Vector3.new(8000, 8000, 8000),
  8560. Parent = hit
  8561. })
  8562. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  8563. elseif Type == "Leech" then
  8564. local hum = hit.Parent.Humanoid
  8565. if hum ~= nil then
  8566. for i = 0, 2 do
  8567. 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)
  8568. end
  8569. Humanoid.Health = Humanoid.Health + 10
  8570. end
  8571. elseif Type == "UpKnock" then
  8572. local hum = hit.Parent.Humanoid
  8573. hum.PlatformStand = true
  8574. if hum ~= nil then
  8575. hitr = true
  8576. end
  8577. coroutine.resume(coroutine.create(function(HHumanoid)
  8578. swait(5)
  8579. HHumanoid.PlatformStand = false
  8580. hitr = false
  8581. end), hum)
  8582. local bodyVelocity = Create("BodyVelocity")({
  8583. velocity = Vector3.new(0, 20, 0),
  8584. P = 5000,
  8585. maxForce = Vector3.new(8000, 8000, 8000),
  8586. Parent = hit
  8587. })
  8588. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  8589. local bodyVelocity = Create("BodyVelocity")({
  8590. velocity = Vector3.new(0, 20, 0),
  8591. P = 5000,
  8592. maxForce = Vector3.new(8000, 8000, 8000),
  8593. Parent = hit
  8594. })
  8595. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  8596. elseif Type == "Snare" then
  8597. local bp = Create("BodyPosition")({
  8598. P = 2000,
  8599. D = 100,
  8600. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  8601. position = hit.Parent.Torso.Position,
  8602. Parent = hit.Parent.Torso
  8603. })
  8604. game:GetService("Debris"):AddItem(bp, 1)
  8605. elseif Type == "Slashnare" then
  8606. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  8607. for i = 1, math.random(4, 5) do
  8608. 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)
  8609. end
  8610. local bp = Create("BodyPosition")({
  8611. P = 2000,
  8612. D = 100,
  8613. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  8614. position = hit.Parent.Torso.Position,
  8615. Parent = hit.Parent.Torso
  8616. })
  8617. game:GetService("Debris"):AddItem(bp, 1)
  8618. elseif Type == "Spike" then
  8619. CreateBigIceSword(hit.Parent.Torso.CFrame)
  8620. local bp = Create("BodyPosition")({
  8621. P = 2000,
  8622. D = 100,
  8623. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  8624. position = hit.Parent.Torso.Position,
  8625. Parent = hit.Parent.Torso
  8626. })
  8627. game:GetService("Debris"):AddItem(bp, 1)
  8628. elseif Type == "Freeze" then
  8629. local BodPos = Create("BodyPosition")({
  8630. P = 50000,
  8631. D = 1000,
  8632. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  8633. position = hit.Parent.Torso.Position,
  8634. Parent = hit.Parent.Torso
  8635. })
  8636. local BodGy = Create("BodyGyro")({
  8637. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  8638. P = 20000,
  8639. Parent = hit.Parent.Torso,
  8640. cframe = hit.Parent.Torso.CFrame
  8641. })
  8642. hit.Parent.Torso.Anchored = true
  8643. coroutine.resume(coroutine.create(function(Part)
  8644. swait(1.5)
  8645. Part.Anchored = false
  8646. end), hit.Parent.Torso)
  8647. game:GetService("Debris"):AddItem(BodPos, 3)
  8648. game:GetService("Debris"):AddItem(BodGy, 3)
  8649. end
  8650. local debounce = Create("BoolValue")({
  8651. Name = "DebounceHit",
  8652. Parent = hit.Parent,
  8653. Value = true
  8654. })
  8655. game:GetService("Debris"):AddItem(debounce, Delay)
  8656. c = Instance.new("ObjectValue")
  8657. c.Name = "creator"
  8658. c.Value = RealGame:service("Players")[owner.Name];
  8659. c.Parent = h
  8660. game:GetService("Debris"):AddItem(c, 0.5)
  8661. end
  8662. end
  8663. function ShowDamage(Pos, Text, Time, Color)
  8664. local Rate = 0.03333333333333333
  8665. local Pos = Pos or Vector3.new(0, 0, 0)
  8666. local Text = Text or ""
  8667. local Time = Time or 2
  8668. local Color = Color or Color3.new(1, 0, 1)
  8669. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  8670. EffectPart.Anchored = true
  8671. local BillboardGui = Create("BillboardGui")({
  8672. Size = UDim2.new(3, 0, 3, 0),
  8673. Adornee = EffectPart,
  8674. Parent = EffectPart
  8675. })
  8676. local TextLabel = Create("TextLabel")({
  8677. BackgroundTransparency = 1,
  8678. Size = UDim2.new(1, 0, 1, 0),
  8679. Text = Text,
  8680. TextColor3 = Color,
  8681. TextScaled = true,
  8682. Font = Enum.Font.ArialBold,
  8683. Parent = BillboardGui
  8684. })
  8685. game.Debris:AddItem(EffectPart, Time + 0.1)
  8686. EffectPart.Parent = game:GetService("Workspace")
  8687. delay(0, function()
  8688. local Frames = Time / Rate
  8689. for Frame = 1, Frames do
  8690. wait(Rate)
  8691. local Percent = Frame / Frames
  8692. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  8693. TextLabel.TextTransparency = Percent
  8694. end
  8695. if EffectPart and EffectPart.Parent then
  8696. EffectPart:Destroy()
  8697. end
  8698. end)
  8699. end
  8700. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  8701. for _, c in pairs(workspace:children()) do
  8702. local hum = c:findFirstChildOfClass("Humanoid")
  8703. if hum ~= nil then
  8704. local head = c:findFirstChild("Head")
  8705. if head ~= nil then
  8706. local targ = head.Position - Part.Position
  8707. local mag = targ.magnitude
  8708. if magni >= mag and c.Name ~= Player.Name then
  8709. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  8710. end
  8711. end
  8712. end
  8713. end
  8714. end
  8715. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  8716. for _, c in pairs(workspace:children()) do
  8717. local hum = c:findFirstChild("Humanoid")
  8718. if hum ~= nil then
  8719. local head = c:findFirstChild("Torso")
  8720. if head ~= nil then
  8721. local targ = head.Position - Part.Position
  8722. local mag = targ.magnitude
  8723. if magni >= mag and c.Name ~= Player.Name then
  8724. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  8725. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  8726. end
  8727. end
  8728. end
  8729. end
  8730. end
  8731. function rayCast(Pos, Dir, Max, Ignore)
  8732. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  8733. end
  8734. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  8735. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8736. prt.Anchored = true
  8737. prt.CFrame = cframe
  8738. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  8739. game:GetService("Debris"):AddItem(prt, 2)
  8740. CF = prt.CFrame
  8741. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  8742. for i = 0, 1, 0.2 do
  8743. wait()
  8744. Part.CFrame = CF * cf(0, 0, -0.4)
  8745. end
  8746. for i = 0, 1, delay do
  8747. wait()
  8748. Mesh.Scale = Mesh.Scale
  8749. end
  8750. for i = 0, 1, 0.1 do
  8751. wait()
  8752. Part.Transparency = i
  8753. end
  8754. Part.Parent = nil
  8755. end), prt, msh, CF)
  8756. end
  8757. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8758. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8759. prt.Anchored = true
  8760. prt.Material = "Neon"
  8761. prt.CFrame = cframe
  8762. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8763. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8764. game:GetService("Debris"):AddItem(prt, 5)
  8765. coroutine.resume(coroutine.create(function(Part, Mesh)
  8766. for i = 0, 1, delay do
  8767. swait()
  8768. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8769. Part.Transparency = i
  8770. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8771. end
  8772. Part.Parent = nil
  8773. end), prt, msh)
  8774. end
  8775. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  8776. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8777. prt.Anchored = true
  8778. prt.Material = "Neon"
  8779. prt.CFrame = cframe
  8780. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8781. game:GetService("Debris"):AddItem(prt, 5)
  8782. coroutine.resume(coroutine.create(function(Part, Mesh)
  8783. local rtype = rottype
  8784. for i = 0, 1, delay do
  8785. swait()
  8786. if rtype == 1 then
  8787. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8788. elseif rtype == 2 then
  8789. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8790. end
  8791. Part.Transparency = i
  8792. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8793. end
  8794. Part.Parent = nil
  8795. end), prt, msh)
  8796. end
  8797. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8798. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8799. prt.Anchored = true
  8800. prt.CFrame = cframe
  8801. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8802. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  8803. game:GetService("Debris"):AddItem(prt, 5)
  8804. coroutine.resume(coroutine.create(function(Part, Mesh)
  8805. for i = 0, 1, delay do
  8806. wait()
  8807. Part.Transparency = i
  8808. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8809. end
  8810. Part.Parent = nil
  8811. end), prt, msh)
  8812. end
  8813. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  8814. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8815. prt.Anchored = true
  8816. prt.Material = "Neon"
  8817. prt.CFrame = cframe
  8818. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8819. game:GetService("Debris"):AddItem(prt, 5)
  8820. coroutine.resume(coroutine.create(function(Part, Mesh)
  8821. local rtype = rottype
  8822. for i = 0, 1, delay do
  8823. swait()
  8824. if rtype == 1 then
  8825. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8826. elseif rtype == 2 then
  8827. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8828. end
  8829. Part.Transparency = i
  8830. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8831. end
  8832. Part.Parent = nil
  8833. end), prt, msh)
  8834. end
  8835. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  8836. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8837. prt.Anchored = true
  8838. prt.Material = "Neon"
  8839. prt.CFrame = cframe
  8840. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  8841. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  8842. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  8843. game:GetService("Debris"):AddItem(prt, 5)
  8844. coroutine.resume(coroutine.create(function(Part, Mesh)
  8845. local rtype = rottype
  8846. for i = 0, 1, delay do
  8847. swait()
  8848. if rtype == 1 then
  8849. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8850. elseif rtype == 2 then
  8851. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8852. end
  8853. dec.Transparency = i
  8854. dec2.Transparency = i
  8855. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  8856. end
  8857. Part.Parent = nil
  8858. end), prt, msh)
  8859. end
  8860. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  8861. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8862. prt.Anchored = true
  8863. prt.Material = "Neon"
  8864. prt.CFrame = cframe
  8865. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  8866. game:GetService("Debris"):AddItem(prt, 5)
  8867. coroutine.resume(coroutine.create(function(Part, Mesh)
  8868. local rtype = rottype
  8869. for i = 0, 1, delay do
  8870. swait()
  8871. if rtype == 1 then
  8872. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8873. elseif rtype == 2 then
  8874. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8875. end
  8876. prt.Transparency = i
  8877. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  8878. end
  8879. Part.Parent = nil
  8880. end), prt, msh)
  8881. end
  8882. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  8883. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8884. prt.Anchored = true
  8885. prt.Material = "Neon"
  8886. prt.CFrame = cframe
  8887. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  8888. game:GetService("Debris"):AddItem(prt, 5)
  8889. coroutine.resume(coroutine.create(function(Part, Mesh)
  8890. local rtype = rottype
  8891. for i = 0, 1, delay do
  8892. swait()
  8893. if rtype == 1 then
  8894. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  8895. elseif rtype == 2 then
  8896. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  8897. end
  8898. prt.Transparency = i
  8899. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  8900. end
  8901. Part.Parent = nil
  8902. end), prt, msh)
  8903. end
  8904. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  8905. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8906. prt.Anchored = true
  8907. prt.Material = "Neon"
  8908. prt.CFrame = cframe
  8909. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8910. game:GetService("Debris"):AddItem(prt, 5)
  8911. coroutine.resume(coroutine.create(function(Part, Mesh)
  8912. local rtype = rottype
  8913. for i = 0, 1, delay do
  8914. swait()
  8915. if rtype == 1 then
  8916. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8917. elseif rtype == 2 then
  8918. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8919. end
  8920. prt.Transparency = i
  8921. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  8922. end
  8923. Part.Parent = nil
  8924. end), prt, msh)
  8925. end
  8926. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  8927. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8928. prt.Anchored = true
  8929. prt.Material = "Neon"
  8930. prt.CFrame = cframe
  8931. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8932. game:GetService("Debris"):AddItem(prt, 5)
  8933. coroutine.resume(coroutine.create(function(Part, Mesh)
  8934. local rtype = rottype
  8935. for i = 0, 1, delay do
  8936. swait()
  8937. if rtype == 1 then
  8938. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  8939. elseif rtype == 2 then
  8940. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  8941. end
  8942. prt.Transparency = i
  8943. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8944. end
  8945. Part.Parent = nil
  8946. end), prt, msh)
  8947. end
  8948. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  8949. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8950. prt.Anchored = false
  8951. prt.CFrame = cframe
  8952. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8953. local wld = weld(prt, prt, Parent, cframe)
  8954. game:GetService("Debris"):AddItem(prt, 5)
  8955. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  8956. for i = 0, 1, delay do
  8957. wait()
  8958. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  8959. Part.Transparency = i
  8960. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8961. end
  8962. Part.Parent = nil
  8963. end), prt, msh, wld)
  8964. end
  8965. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  8966. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8967. prt.Anchored = false
  8968. prt.CFrame = cframe
  8969. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8970. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  8971. game:GetService("Debris"):AddItem(prt, 5)
  8972. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  8973. for i = 0, 1, delay do
  8974. wait()
  8975. Weld.C0 = euler(i * 20, 0, 0)
  8976. Part.Transparency = i
  8977. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8978. end
  8979. Part.Parent = nil
  8980. end), prt, msh, wld)
  8981. end
  8982. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8983. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8984. prt.Anchored = true
  8985. prt.CFrame = cframe
  8986. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  8987. game:GetService("Debris"):AddItem(prt, 2)
  8988. coroutine.resume(coroutine.create(function(Part, Mesh)
  8989. for i = 0, 1, delay do
  8990. wait()
  8991. Part.CFrame = Part.CFrame
  8992. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  8993. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  8994. prt2.Anchored = true
  8995. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8996. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  8997. game:GetService("Debris"):AddItem(prt2, 2)
  8998. coroutine.resume(coroutine.create(function(Part, Mesh)
  8999. for i = 0, 1, 0.1 do
  9000. wait()
  9001. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  9002. end
  9003. Part.Parent = nil
  9004. end), prt2, msh2)
  9005. end
  9006. for i = 0, 1, delay * 2 do
  9007. wait()
  9008. Part.CFrame = Part.CFrame
  9009. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  9010. end
  9011. Part.Parent = nil
  9012. end), prt, msh)
  9013. end
  9014. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  9015. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  9016. prt.Anchored = true
  9017. prt.CFrame = cframe
  9018. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  9019. game:GetService("Debris"):AddItem(prt, 2)
  9020. coroutine.resume(coroutine.create(function(Part, Mesh)
  9021. for i = 0, 1, delay do
  9022. wait()
  9023. Part.CFrame = Part.CFrame
  9024. Part.Transparency = i
  9025. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  9026. end
  9027. Part.Parent = nil
  9028. end), prt, msh)
  9029. end
  9030. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  9031. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  9032. prt.Anchored = true
  9033. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  9034. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  9035. game:GetService("Debris"):AddItem(prt, 2)
  9036. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  9037. CF = Part.CFrame
  9038. Numbb = 0
  9039. randnumb = math.random() / 10
  9040. rand1 = math.random() / 10
  9041. for i = 0, 1, rand1 do
  9042. wait()
  9043. CF = CF * cf(0, math.random() / 2, 0)
  9044. Part.CFrame = CF * euler(Numbb, 0, 0)
  9045. Part.Transparency = i
  9046. Numbb = Numbb + randnumb
  9047. end
  9048. Part.Parent = nil
  9049. end), prt, CF, Numbb, randnumb)
  9050. end
  9051. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  9052. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  9053. prt.Anchored = true
  9054. prt.CFrame = cframe
  9055. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  9056. game:GetService("Debris"):AddItem(prt, 5)
  9057. coroutine.resume(coroutine.create(function(Part, Mesh)
  9058. for i = 0, 1, delay do
  9059. wait()
  9060. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  9061. Part.Transparency = i
  9062. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  9063. end
  9064. Part.Parent = nil
  9065. end), prt, msh)
  9066. end
  9067. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  9068. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  9069. prt.Anchored = true
  9070. prt.CFrame = cframe
  9071. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  9072. game:GetService("Debris"):AddItem(prt, 2)
  9073. coroutine.resume(coroutine.create(function(Part, Mesh)
  9074. for i = 0, 1, delay do
  9075. wait()
  9076. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  9077. Part.Transparency = i
  9078. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  9079. end
  9080. Part.Parent = nil
  9081. end), prt, msh)
  9082. end
  9083. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  9084. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  9085. prt.Anchored = true
  9086. prt.CFrame = cframe * cf(x, y, z)
  9087. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  9088. game:GetService("Debris"):AddItem(prt, 5)
  9089. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  9090. local num = math.random()
  9091. local num2 = math.random(-3, 2) + math.random()
  9092. local numm = 0
  9093. for i = 0, 1, delay * 2 do
  9094. swait()
  9095. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  9096. Part.Transparency = i
  9097. numm = numm + 0.01
  9098. end
  9099. Part.Parent = nil
  9100. Mesh.Parent = nil
  9101. end), prt, msh, x, y, z)
  9102. end
  9103. function dmgstart(dmg, what)
  9104. hitcon = what.Touched:connect(function(hit)
  9105. local hum = hit.Parent:FindFirstChild("Humanoid")
  9106. if hum and not hum:IsDescendantOf(Character) then
  9107. hum:TakeDamage(dmg)
  9108. end
  9109. end)
  9110. end
  9111. function dmgstop()
  9112. hitcon:disconnect()
  9113. end
  9114.  
  9115. function Cloak()
  9116. Face.Parent = nil
  9117. cloaked = true
  9118. for _, v in pairs(Torso.Parent:children()) do
  9119. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  9120. coroutine.resume(coroutine.create(function()
  9121. for i = 0, 1, 0.2 do
  9122. wait()
  9123. v.Transparency = i
  9124. end
  9125. v.Transparency = 0
  9126. end))
  9127. end
  9128. if v.className == "Hat" then
  9129. hatp = v.Handle
  9130. coroutine.resume(coroutine.create(function(derp)
  9131. for i = 0, 1, 0.2 do
  9132. wait()
  9133. derp.Transparency = i
  9134. end
  9135. derp.Transparency = 1
  9136. end), hatp)
  9137. end
  9138. end
  9139. for _, v in pairs(m:children()) do
  9140. if v.className == "Part" then
  9141. coroutine.resume(coroutine.create(function()
  9142. for i = 0, 1, 0.2 do
  9143. wait()
  9144. v.Transparency = i
  9145. end
  9146. v.Transparency = 0
  9147. end))
  9148. end
  9149. end
  9150. end
  9151. function UnCloak()
  9152. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  9153. Face.Parent = Head
  9154. cloaked = false
  9155. for _, v in pairs(Torso.Parent:children()) do
  9156. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  9157. coroutine.resume(coroutine.create(function()
  9158. for i = 0, 1, 0.1 do
  9159. wait()
  9160. v.Transparency = v.Transparency - 0.1
  9161. end
  9162. v.Transparency = 0
  9163. end))
  9164. end
  9165. if v.className == "Hat" then
  9166. hatp = v.Handle
  9167. coroutine.resume(coroutine.create(function(derp)
  9168. for i = 0, 1, 0.1 do
  9169. wait()
  9170. derp.Transparency = derp.Transparency - 0.1
  9171. end
  9172. derp.Transparency = 0
  9173. end), hatp)
  9174. end
  9175. end
  9176. for _, v in pairs(m:children()) do
  9177. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  9178. coroutine.resume(coroutine.create(function()
  9179. for i = 0, 1, 0.1 do
  9180. wait()
  9181. v.Transparency = v.Transparency - 0.1
  9182. end
  9183. v.Transparency = 0
  9184. end))
  9185. v.Transparency = 0
  9186. end
  9187. end
  9188. end
  9189. local origcolor = BrickColor.new("Pastel light blue")
  9190. function Explode(rad, par, pitch, vol, mindam, maxdam)
  9191. local expart = Instance.new("Part", char)
  9192. local expart2 = Instance.new("Part", char)
  9193. local rin = Instance.new("Part", char)
  9194. local rin2 = Instance.new("Part", char)
  9195. local partMesh = Instance.new("SpecialMesh", expart)
  9196. partMesh.MeshType = "Sphere"
  9197. local partMesh2 = Instance.new("SpecialMesh", expart2)
  9198. partMesh2.MeshType = "Sphere"
  9199. local partMesh3 = Instance.new("SpecialMesh", rin)
  9200. partMesh3.MeshType = "Brick"
  9201. local partMesh4 = Instance.new("SpecialMesh", rin2)
  9202. partMesh4.MeshType = "Brick"
  9203. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  9204. partMesh.Scale = vt(rad, rad, rad)
  9205. expart.Size = vt(1, 1, 1)
  9206. expart.Transparency = 0
  9207. expart.Anchored = true
  9208. expart.Material = "Neon"
  9209. expart.BrickColor = bc("White")
  9210. expart.CFrame = par.CFrame
  9211. partMesh2.Scale = vt(rad, rad, rad)
  9212. expart2.Size = vt(1.15, 1.15, 1.15)
  9213. expart2.Transparency = 0.5
  9214. expart2.Anchored = true
  9215. expart2.Material = "Neon"
  9216. expart2.BrickColor = par.BrickColor
  9217. expart2.CFrame = par.CFrame
  9218. rin.Size = vt(1.15, 1.15, 1.15)
  9219. rin.Transparency = 1
  9220. rin.Anchored = true
  9221. rin.Material = "Neon"
  9222. rin.BrickColor = par.BrickColor
  9223. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  9224. rin2.Size = vt(1.15, 1.15, 1.15)
  9225. rin2.Transparency = 1
  9226. rin2.Anchored = true
  9227. rin2.Material = "Neon"
  9228. rin2.BrickColor = par.BrickColor
  9229. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  9230. partMesh3.Scale = vt(0, 1, 0)
  9231. partMesh4.Scale = vt(0, 1, 0)
  9232. local dec2 = Instance.new("Decal", rin)
  9233. dec2.Face = "Top"
  9234. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  9235. dec2.Parent = rin
  9236. local dec2b = dec2:Clone()
  9237. dec2b.Face = "Bottom"
  9238. dec2b.Parent = rin
  9239. local dec2a = Instance.new("Decal", rin2)
  9240. dec2a.Face = "Top"
  9241. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  9242. dec2a.Parent = rin2
  9243. local dec2ab = dec2a:Clone()
  9244. dec2ab.Face = "Bottom"
  9245. dec2ab.Parent = rin2
  9246. expart.CanCollide = false
  9247. expart2.CanCollide = false
  9248. rin.CanCollide = false
  9249. rin2.CanCollide = false
  9250. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  9251. local value = 1 * rad / 6.5
  9252. for i = 0, 199 do
  9253. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  9254. expart.CFrame = expart.CFrame
  9255. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  9256. expart2.CFrame = expart.CFrame
  9257. value = value - 0.035 * rad / 30
  9258. if value < 7.5 then
  9259. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  9260. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  9261. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  9262. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  9263. end
  9264. if value < 0 then
  9265. dec2.Transparency = dec2.Transparency + 0.025
  9266. dec2a.Transparency = dec2a.Transparency + 0.025
  9267. dec2b.Transparency = dec2b.Transparency + 0.025
  9268. dec2ab.Transparency = dec2ab.Transparency + 0.025
  9269. expart.Transparency = expart.Transparency + 0.025
  9270. expart2.Transparency = expart2.Transparency + 0.025
  9271. rin.Transparency = rin.Transparency + 0.025
  9272. rin2.Transparency = rin2.Transparency + 0.025
  9273. end
  9274. swait()
  9275. end
  9276. game:GetService("Debris"):AddItem(expart, 1)
  9277. game:GetService("Debris"):AddItem(expart2, 1)
  9278. game:GetService("Debris"):AddItem(rin, 1)
  9279. game:GetService("Debris"):AddItem(rin2, 1)
  9280. end
  9281. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  9282. local expart = Instance.new("Part", char)
  9283. local expart2 = Instance.new("Part", char)
  9284. local partMesh = Instance.new("SpecialMesh", expart)
  9285. partMesh.MeshType = "Sphere"
  9286. local partMesh2 = Instance.new("SpecialMesh", expart2)
  9287. partMesh2.MeshType = "Sphere"
  9288. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  9289. partMesh.Scale = vt(rad, rad, rad)
  9290. expart.Size = vt(1, 1, 1)
  9291. expart.Transparency = 0
  9292. expart.Anchored = true
  9293. expart.Material = "Neon"
  9294. expart.BrickColor = bc("White")
  9295. expart.CFrame = par.CFrame
  9296. partMesh2.Scale = vt(rad, rad, rad)
  9297. expart2.Size = vt(1.15, 1.15, 1.15)
  9298. expart2.Transparency = 0.5
  9299. expart2.Anchored = true
  9300. expart2.Material = "Neon"
  9301. expart2.BrickColor = par.BrickColor
  9302. expart2.CFrame = par.CFrame
  9303. expart.CanCollide = false
  9304. expart2.CanCollide = false
  9305. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  9306. local value = 1 * rad / 6.5
  9307. for i = 0, 75 do
  9308. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  9309. expart.CFrame = expart.CFrame
  9310. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  9311. expart2.CFrame = expart.CFrame
  9312. value = value - 0.035 * rad / 5
  9313. if value < 0 then
  9314. value = 0
  9315. expart.Transparency = expart.Transparency + 0.05
  9316. expart2.Transparency = expart2.Transparency + 0.05
  9317. end
  9318. swait()
  9319. end
  9320. game:GetService("Debris"):AddItem(expart, 1)
  9321. game:GetService("Debris"):AddItem(expart2, 1)
  9322. end
  9323. function AreaDanger(rad, par, mindam, maxdam)
  9324. local expart = Instance.new("Part", char)
  9325. local partMesh = Instance.new("SpecialMesh", expart)
  9326. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  9327. partMesh.MeshType = "Sphere"
  9328. partMesh.Scale = vt(rad, rad, rad)
  9329. expart.Size = vt(1, 1, 1)
  9330. expart.Transparency = 0.5
  9331. expart.Anchored = true
  9332. expart.Material = "Neon"
  9333. expart.CanCollide = false
  9334. expart.BrickColor = par.BrickColor
  9335. expart.CFrame = par.CFrame
  9336. local value = 1 * rad / 5
  9337. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  9338. for i = 0, 14 do
  9339. wait()
  9340. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  9341. expart.CFrame = expart.CFrame
  9342. value = value - 0.035 * rad
  9343. if value < 0 then
  9344. value = 0
  9345. end
  9346. end
  9347. wait(0.25)
  9348. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  9349. wait(0.5)
  9350. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  9351. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  9352. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  9353. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  9354. for i = 0, 14 do
  9355. wait()
  9356. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  9357. expart.CFrame = expart.CFrame
  9358. value = value - 0.035 * rad / 2
  9359. end
  9360. expart.Transparency = 1
  9361. game:GetService("Debris"):AddItem(expart, 5)
  9362. end
  9363. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  9364. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  9365. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  9366. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  9367. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  9368. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  9369. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  9370. for i = 0, 24 do
  9371. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  9372. end
  9373. for i = 0, 24 do
  9374. local expart = Instance.new("Part", char)
  9375. expart.Transparency = 1
  9376. expart.Anchored = true
  9377. expart.CanCollide = false
  9378. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  9379. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  9380. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  9381. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  9382. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  9383. for i = 0, 9 do
  9384. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  9385. end
  9386. game:GetService("Debris"):AddItem(expart, 2)
  9387. wait(0.1)
  9388. end
  9389. end
  9390. function EXterPlosion(par)
  9391. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  9392. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  9393. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  9394. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  9395. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  9396. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  9397. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  9398. for i = 0, 24 do
  9399. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  9400. end
  9401. for i = 0, 24 do
  9402. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  9403. end
  9404. end
  9405. function ring(type, pos, scale, value)
  9406. local type = type
  9407. local rng = Instance.new("Part", char)
  9408. rng.Anchored = true
  9409. rng.BrickColor = origcolor
  9410. rng.CanCollide = false
  9411. rng.FormFactor = 3
  9412. rng.Name = "Ring"
  9413. rng.Size = Vector3.new(1, 1, 1)
  9414. rng.Transparency = 0
  9415. rng.TopSurface = 0
  9416. rng.BottomSurface = 0
  9417. rng.CFrame = pos
  9418. local rngm = Instance.new("SpecialMesh", rng)
  9419. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  9420. rngm.Scale = scale
  9421. local scaler2 = 1
  9422. if type == "Add" then
  9423. scaler2 = 1 * value
  9424. elseif type == "Divide" then
  9425. scaler2 = 1 / value
  9426. end
  9427. coroutine.resume(coroutine.create(function()
  9428. for i = 0, 10, 0.1 do
  9429. swait()
  9430. if type == "Add" then
  9431. scaler2 = scaler2 - 0.01 * value
  9432. elseif type == "Divide" then
  9433. scaler2 = scaler2 - 0.01 / value
  9434. end
  9435. rng.Transparency = rng.Transparency + 0.01
  9436. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  9437. end
  9438. rng:Destroy()
  9439. end))
  9440. end
  9441. function wave(type, pos, scale, value)
  9442. local type = type
  9443. local rng = Instance.new("Part", char)
  9444. rng.Anchored = true
  9445. rng.BrickColor = origcolor
  9446. rng.CanCollide = false
  9447. rng.FormFactor = 3
  9448. rng.Name = "Ring"
  9449. rng.Size = Vector3.new(1, 1, 1)
  9450. rng.Transparency = 0
  9451. rng.TopSurface = 0
  9452. rng.BottomSurface = 0
  9453. rng.CFrame = pos
  9454. local rngm = Instance.new("SpecialMesh", rng)
  9455. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  9456. rngm.Scale = scale
  9457. local scaler2 = 1
  9458. if type == "Add" then
  9459. scaler2 = 1 * value
  9460. elseif type == "Divide" then
  9461. scaler2 = 1 / value
  9462. end
  9463. coroutine.resume(coroutine.create(function()
  9464. for i = 0, 10, 0.1 do
  9465. swait()
  9466. if type == "Add" then
  9467. scaler2 = scaler2 - 0.01 * value
  9468. elseif type == "Divide" then
  9469. scaler2 = scaler2 - 0.01 / value
  9470. end
  9471. rng.Transparency = rng.Transparency + 0.01
  9472. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  9473. end
  9474. rng:Destroy()
  9475. end))
  9476. end
  9477. function wind(type, pos, scale, value, speed)
  9478. local type = type
  9479. local rng = Instance.new("Part", char)
  9480. rng.Anchored = true
  9481. rng.BrickColor = origcolor
  9482. rng.CanCollide = false
  9483. rng.FormFactor = 3
  9484. rng.Name = "Ring"
  9485. rng.Size = Vector3.new(1, 1, 1)
  9486. rng.Transparency = 0
  9487. rng.TopSurface = 0
  9488. rng.BottomSurface = 0
  9489. rng.CFrame = pos
  9490. local rngm = Instance.new("SpecialMesh", rng)
  9491. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  9492. rngm.Scale = scale
  9493. local scaler2 = 1
  9494. if type == "Add" then
  9495. scaler2 = 1 * value
  9496. elseif type == "Divide" then
  9497. scaler2 = 1 / value
  9498. end
  9499. coroutine.resume(coroutine.create(function()
  9500. for i = 0, 10, 0.1 do
  9501. swait()
  9502. if type == "Add" then
  9503. scaler2 = scaler2 - 0.01 * value
  9504. elseif type == "Divide" then
  9505. scaler2 = scaler2 - 0.01 / value
  9506. end
  9507. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  9508. rng.Transparency = rng.Transparency + 0.01
  9509. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  9510. end
  9511. rng:Destroy()
  9512. end))
  9513. end
  9514. function groundwind(type, pos, scale, value, speed)
  9515. local type = type
  9516. local rng = Instance.new("Part", char)
  9517. rng.Anchored = true
  9518. rng.BrickColor = origcolor
  9519. rng.CanCollide = false
  9520. rng.FormFactor = 3
  9521. rng.Name = "Ring"
  9522. rng.Size = Vector3.new(1, 1, 1)
  9523. rng.Transparency = 0
  9524. rng.TopSurface = 0
  9525. rng.BottomSurface = 0
  9526. rng.CFrame = pos
  9527. local rngm = Instance.new("SpecialMesh", rng)
  9528. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  9529. rngm.Scale = scale
  9530. local scaler2 = 1
  9531. if type == "Add" then
  9532. scaler2 = 1 * value
  9533. elseif type == "Divide" then
  9534. scaler2 = 1 / value
  9535. end
  9536. coroutine.resume(coroutine.create(function()
  9537. for i = 0, 10, 0.1 do
  9538. swait()
  9539. if type == "Add" then
  9540. scaler2 = scaler2 - 0.01 * value
  9541. elseif type == "Divide" then
  9542. scaler2 = scaler2 - 0.01 / value
  9543. end
  9544. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  9545. rng.Transparency = rng.Transparency + 0.01
  9546. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  9547. end
  9548. rng:Destroy()
  9549. end))
  9550. end
  9551. function CameraManager()
  9552. if TwoD and not CamInterrupt then
  9553. if Humanoid.Health > 0 then
  9554. Camera.CameraSubject = Humanoid
  9555. Camera.CameraType = "Scriptable"
  9556. Humanoid.AutoRotate = false
  9557. if Booleans.GyroUse then
  9558. Directer.MaxTorque = Vec3(0, huge, 0)
  9559. else
  9560. Directer.MaxTorque = Vec3(0, 0, 0)
  9561. end
  9562. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  9563. if Booleans.CamFollow then
  9564. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  9565. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  9566. else
  9567. CPart.Position = RootPart.Position
  9568. end
  9569. else
  9570. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  9571. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  9572. end
  9573. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  9574. else
  9575. Camera.CameraSubject = Humanoid
  9576. Camera.CameraType = "Custom"
  9577. end
  9578. end
  9579. end
  9580. function sphere(bonuspeed, type, pos, scale, value, color)
  9581. local type = type
  9582. local rng = Instance.new("Part", char)
  9583. rng.Anchored = true
  9584. rng.BrickColor = color
  9585. rng.CanCollide = false
  9586. rng.FormFactor = 3
  9587. rng.Name = "Ring"
  9588. rng.Material = "Neon"
  9589. rng.Size = Vector3.new(1, 1, 1)
  9590. rng.Transparency = 0
  9591. rng.TopSurface = 0
  9592. rng.BottomSurface = 0
  9593. rng.CFrame = pos
  9594. local rngm = Instance.new("SpecialMesh", rng)
  9595. rngm.MeshType = "Sphere"
  9596. rngm.Scale = scale
  9597. if rainbowmode == true then
  9598. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9599. end
  9600. local scaler2 = 1
  9601. if type == "Add" then
  9602. scaler2 = 1 * value
  9603. elseif type == "Divide" then
  9604. scaler2 = 1 / value
  9605. end
  9606. coroutine.resume(coroutine.create(function()
  9607. for i = 0, 10 / bonuspeed, 0.1 do
  9608. swait()
  9609. if rainbowmode == true then
  9610. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9611. end
  9612. if type == "Add" then
  9613. scaler2 = scaler2 - 0.01 * value / bonuspeed
  9614. elseif type == "Divide" then
  9615. scaler2 = scaler2 - 0.01 / value * bonuspeed
  9616. end
  9617. if chaosmode == true then
  9618. rng.BrickColor = BrickColor.random()
  9619. end
  9620. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  9621. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  9622. end
  9623. rng:Destroy()
  9624. end))
  9625. end
  9626. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  9627. local type = type
  9628. local rng = Instance.new("Part", char)
  9629. rng.Anchored = true
  9630. rng.BrickColor = color
  9631. rng.CanCollide = false
  9632. rng.FormFactor = 3
  9633. rng.Name = "Ring"
  9634. rng.Material = "Neon"
  9635. rng.Size = Vector3.new(1, 1, 1)
  9636. rng.Transparency = 0
  9637. rng.TopSurface = 0
  9638. rng.BottomSurface = 0
  9639. rng.CFrame = pos
  9640. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  9641. local rngm = Instance.new("SpecialMesh", rng)
  9642. rngm.MeshType = "Sphere"
  9643. rngm.Scale = vt(x1, y1, z1)
  9644. if rainbowmode == true then
  9645. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9646. end
  9647. local scaler2 = 1
  9648. local speeder = FastSpeed
  9649. if type == "Add" then
  9650. scaler2 = 1 * value
  9651. elseif type == "Divide" then
  9652. scaler2 = 1 / value
  9653. end
  9654. coroutine.resume(coroutine.create(function()
  9655. for i = 0, 10 / bonuspeed, 0.1 do
  9656. swait()
  9657. if rainbowmode == true then
  9658. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9659. end
  9660. if type == "Add" then
  9661. scaler2 = scaler2 - 0.01 * value / bonuspeed
  9662. elseif type == "Divide" then
  9663. scaler2 = scaler2 - 0.01 / value * bonuspeed
  9664. end
  9665. if chaosmode == true then
  9666. rng.BrickColor = BrickColor.random()
  9667. end
  9668. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  9669. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  9670. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  9671. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  9672. end
  9673. rng:Destroy()
  9674. end))
  9675. end
  9676. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  9677. local type = type
  9678. local rng = Instance.new("Part", char)
  9679. rng.Anchored = true
  9680. rng.BrickColor = color
  9681. rng.CanCollide = false
  9682. rng.FormFactor = 3
  9683. rng.Name = "Ring"
  9684. rng.Material = "Neon"
  9685. rng.Size = Vector3.new(1, 1, 1)
  9686. rng.Transparency = 1
  9687. rng.TopSurface = 0
  9688. rng.BottomSurface = 0
  9689. rng.CFrame = pos
  9690. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  9691. local rngm = Instance.new("SpecialMesh", rng)
  9692. rngm.MeshType = "Sphere"
  9693. rngm.Scale = vt(x1, y1, z1)
  9694. if rainbowmode == true then
  9695. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9696. end
  9697. local scaler2 = 1
  9698. local speeder = FastSpeed
  9699. if type == "Add" then
  9700. scaler2 = 1 * value
  9701. elseif type == "Divide" then
  9702. scaler2 = 1 / value
  9703. end
  9704. coroutine.resume(coroutine.create(function()
  9705. for i = 0, 10 / bonuspeed, 0.1 do
  9706. swait()
  9707. if rainbowmode == true then
  9708. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  9709. end
  9710. if type == "Add" then
  9711. scaler2 = scaler2 - 0.01 * value / bonuspeed
  9712. elseif type == "Divide" then
  9713. scaler2 = scaler2 - 0.01 / value * bonuspeed
  9714. end
  9715. if chaosmode == true then
  9716. rng.BrickColor = BrickColor.random()
  9717. end
  9718. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  9719. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  9720. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  9721. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  9722. end
  9723. rng:Destroy()
  9724. end))
  9725. end
  9726. function dmg(dude)
  9727. if dude.Name ~= Character then
  9728. local bgf = Instance.new("BodyGyro", dude.Head)
  9729. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  9730. local val = Instance.new("BoolValue", dude)
  9731. val.Name = "IsHit"
  9732. local ds = coroutine.wrap(function()
  9733. dude:WaitForChild("Head"):BreakJoints()
  9734. wait(0.5)
  9735. targetted = nil
  9736. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  9737. coroutine.resume(coroutine.create(function()
  9738. for i, v in pairs(dude:GetChildren()) do
  9739. if v:IsA("Accessory") then
  9740. v:Destroy()
  9741. end
  9742. if v:IsA("Humanoid") then
  9743. v:Destroy()
  9744. end
  9745. if v:IsA("CharacterMesh") then
  9746. v:Destroy()
  9747. end
  9748. if v:IsA("Model") then
  9749. v:Destroy()
  9750. end
  9751. if v:IsA("Part") or v:IsA("MeshPart") then
  9752. for x, o in pairs(v:GetChildren()) do
  9753. if o:IsA("Decal") then
  9754. o:Destroy()
  9755. end
  9756. end
  9757. coroutine.resume(coroutine.create(function()
  9758. v.Material = "Neon"
  9759. v.CanCollide = false
  9760. local bld = Instance.new("ParticleEmitter", v)
  9761. bld.LightEmission = 1
  9762. bld.Texture = "rbxassetid://284205403"
  9763. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  9764. bld.Rate = 50
  9765. bld.Lifetime = NumberRange.new(1)
  9766. bld.Size = NumberSequence.new({
  9767. NumberSequenceKeypoint.new(0, 0.75, 0),
  9768. NumberSequenceKeypoint.new(1, 0, 0)
  9769. })
  9770. bld.Transparency = NumberSequence.new({
  9771. NumberSequenceKeypoint.new(0, 0, 0),
  9772. NumberSequenceKeypoint.new(1, 1, 0)
  9773. })
  9774. bld.Speed = NumberRange.new(0, 0)
  9775. bld.VelocitySpread = 50000
  9776. bld.Rotation = NumberRange.new(-500, 500)
  9777. bld.RotSpeed = NumberRange.new(-500, 500)
  9778. local sbs = Instance.new("BodyPosition", v)
  9779. sbs.P = 3000
  9780. sbs.D = 1000
  9781. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  9782. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  9783. v.Color = Color3.new(1, 1, 1)
  9784. coroutine.resume(coroutine.create(function()
  9785. for i = 0, 49 do
  9786. swait(1)
  9787. v.Transparency = v.Transparency + 0.02
  9788. end
  9789. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  9790. bld.Speed = NumberRange.new(1, 5)
  9791. bld.Acceleration = vt(0, 10, 0)
  9792. wait(0.5)
  9793. bld.Enabled = false
  9794. wait(3)
  9795. v:Destroy()
  9796. dude:Destroy()
  9797. end))
  9798. end))
  9799. end
  9800. end
  9801. end))
  9802. end)
  9803. ds()
  9804. end
  9805. end
  9806. function FindNearestHead(Position, Distance, SinglePlayer)
  9807. if SinglePlayer then
  9808. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  9809. end
  9810. local List = {}
  9811. for i, v in pairs(workspace:GetChildren()) do
  9812. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  9813. table.insert(List, v)
  9814. end
  9815. end
  9816. return List
  9817. end
  9818. function FaceMouse()
  9819. Cam = workspace.CurrentCamera
  9820. return {
  9821. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  9822. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  9823. }
  9824. end
  9825. function FaceMouse2()
  9826. Cam = workspace.CurrentCamera
  9827. return {
  9828. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  9829. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  9830. }
  9831. end
  9832. local ModeOfGlitch = 1
  9833. local storehumanoidWS = 16
  9834. function ExtinctiveHeartbreak()
  9835. local targetted
  9836. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9837. targetted = mouse.Target.Parent
  9838. end
  9839. if targetted ~= nil then
  9840. attack = true
  9841. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  9842. for i = 0, 9 do
  9843. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  9844. end
  9845. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  9846. local originalpos = root.CFrame
  9847. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  9848. for i = 0, 9 do
  9849. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  9850. end
  9851. hum.WalkSpeed = 0
  9852. targetted.Head.Anchored = true
  9853. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  9854. for i = 0, 1 do
  9855. swait()
  9856. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  9857. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  9858. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4)
  9859. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  9860. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4)
  9861. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4)
  9862. end
  9863. coroutine.resume(coroutine.create(function()
  9864. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  9865. bld.LightEmission = 0.1
  9866. bld.Texture = "rbxassetid://284205403"
  9867. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  9868. bld.Rate = 500
  9869. bld.Lifetime = NumberRange.new(1)
  9870. bld.Size = NumberSequence.new({
  9871. NumberSequenceKeypoint.new(0, 2, 0),
  9872. NumberSequenceKeypoint.new(1, 0, 0)
  9873. })
  9874. bld.Acceleration = vt(0, -25, 0)
  9875. bld.Transparency = NumberSequence.new({
  9876. NumberSequenceKeypoint.new(0, 0, 0),
  9877. NumberSequenceKeypoint.new(1, 0, 0)
  9878. })
  9879. bld.Speed = NumberRange.new(10, 50)
  9880. bld.EmissionDirection = "Front"
  9881. bld.VelocitySpread = 25
  9882. bld.Rotation = NumberRange.new(-500, 500)
  9883. bld.RotSpeed = NumberRange.new(-500, 500)
  9884. end))
  9885. coroutine.resume(coroutine.create(function()
  9886. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  9887. bld.LightEmission = 0.1
  9888. bld.Texture = "rbxassetid://284205403"
  9889. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  9890. bld.Rate = 500
  9891. bld.Lifetime = NumberRange.new(1)
  9892. bld.Size = NumberSequence.new({
  9893. NumberSequenceKeypoint.new(0, 2, 0),
  9894. NumberSequenceKeypoint.new(1, 0, 0)
  9895. })
  9896. bld.Acceleration = vt(0, -25, 0)
  9897. bld.Transparency = NumberSequence.new({
  9898. NumberSequenceKeypoint.new(0, 0, 0),
  9899. NumberSequenceKeypoint.new(1, 0, 0)
  9900. })
  9901. bld.Speed = NumberRange.new(10, 50)
  9902. bld.EmissionDirection = "Front"
  9903. bld.VelocitySpread = 25
  9904. bld.Rotation = NumberRange.new(-500, 500)
  9905. bld.RotSpeed = NumberRange.new(-500, 500)
  9906. end))
  9907. CameraEnshaking(5, 5)
  9908. game:GetService("Debris"):AddItem(bld, 3)
  9909. dmg(targetted)
  9910. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  9911. for i = 0, 1, 1 do
  9912. swait()
  9913. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  9914. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  9915. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8)
  9916. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  9917. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  9918. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8)
  9919. end
  9920. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  9921. for i = 0, 9 do
  9922. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  9923. end
  9924. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  9925. root.CFrame = originalpos
  9926. for i = 0, 9 do
  9927. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  9928. end
  9929. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  9930. bld.Enabled = false
  9931. attack = false
  9932. hum.WalkSpeed = storehumanoidWS
  9933. end
  9934. end
  9935. function PureBomb()
  9936. attack = true
  9937. local orb = Instance.new("Part", char)
  9938. orb.Anchored = true
  9939. orb.BrickColor = BrickColor.new("Toothpaste")
  9940. orb.CanCollide = false
  9941. orb.FormFactor = 3
  9942. orb.Name = "Ring"
  9943. orb.Material = "Neon"
  9944. orb.Size = Vector3.new(1, 1, 1)
  9945. orb.Transparency = 0
  9946. orb.TopSurface = 0
  9947. orb.BottomSurface = 0
  9948. local orbm = Instance.new("SpecialMesh", orb)
  9949. orbm.MeshType = "Sphere"
  9950. orbm.Name = "SizeMesh"
  9951. orbm.Scale = vt(0, 0, 0)
  9952. local scaled = 0.1
  9953. local posid = 0
  9954. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  9955. for i = 0, 5, 0.1 do
  9956. swait()
  9957. scaled = scaled - 0.001
  9958. posid = posid - scaled
  9959. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  9960. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  9961. sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10)
  9962. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1)
  9963. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1)
  9964. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  9965. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  9966. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  9967. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1)
  9968. end
  9969. for i = 0, 2, 0.1 do
  9970. swait()
  9971. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  9972. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  9973. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  9974. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4)
  9975. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  9976. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  9977. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  9978. end
  9979. coroutine.resume(coroutine.create(function()
  9980. orb.Anchored = false
  9981. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  9982. local a = Instance.new("Part", workspace)
  9983. a.Name = "Direction"
  9984. a.Anchored = true
  9985. a.BrickColor = bc("Bright red")
  9986. a.Material = "Neon"
  9987. a.Transparency = 1
  9988. a.CanCollide = false
  9989. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  9990. local ignore = orb
  9991. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9992. a.BottomSurface = 10
  9993. a.TopSurface = 10
  9994. local distance = (orb.CFrame.p - position).magnitude
  9995. a.Size = Vector3.new(0.1, 0.1, 0.1)
  9996. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  9997. orb.CFrame = a.CFrame
  9998. a:Destroy()
  9999. local bv = Instance.new("BodyVelocity")
  10000. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  10001. bv.velocity = orb.CFrame.lookVector * 125
  10002. bv.Parent = orb
  10003. local hitted = false
  10004. game:GetService("Debris"):AddItem(orb, 15)
  10005. wait()
  10006. local hit = orb.Touched:connect(function(hit)
  10007. if hitted == false then
  10008. hitted = true
  10009. CameraEnshaking(10, 2.5)
  10010. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  10011. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  10012. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  10013. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  10014. for i = 0, 9 do
  10015. sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  10016. sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  10017. end
  10018. orb.Anchored = true
  10019. orb.Transparency = 1
  10020. wait(8)
  10021. orb:Destroy()
  10022. end
  10023. end)
  10024. end))
  10025. for i = 0, 1, 0.1 do
  10026. swait()
  10027. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  10028. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  10029. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4)
  10030. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  10031. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  10032. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  10033. end
  10034. attack = false
  10035. end
  10036. function ChaosGroundStrike()
  10037. attack = true
  10038. for i = 0, 2, 0.1 do
  10039. swait()
  10040. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  10041. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  10042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  10043. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  10044. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  10045. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  10046. end
  10047. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  10048. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  10049. CameraEnshaking(4, 12)
  10050. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  10051. if v:FindFirstChild("Head") then
  10052. dmg(v)
  10053. end
  10054. end
  10055. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  10056. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  10057. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  10058. for i = 0, 2, 0.1 do
  10059. swait()
  10060. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10061. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10062. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  10063. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  10064. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  10065. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  10066. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  10067. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  10068. end
  10069. attack = false
  10070. end
  10071. function ChaosBegone()
  10072. attack = true
  10073. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  10074. for i = 0, 10, 0.1 do
  10075. swait()
  10076. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  10077. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  10078. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  10079. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  10080. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  10081. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  10082. end
  10083. chatfunc("DIE!!", BrickColor.random().Color)
  10084. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  10085. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  10086. CameraEnshaking(5, 25)
  10087. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  10088. if v:FindFirstChild("Head") then
  10089. dmg(v)
  10090. end
  10091. end
  10092. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  10093. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  10094. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  10095. for i = 0, 3, 0.1 do
  10096. swait()
  10097. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10098. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10099. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10100. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  10101. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  10102. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  10103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  10104. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  10105. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  10106. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  10107. end
  10108. attack = false
  10109. end
  10110. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  10111. local orb = Instance.new("Part", char)
  10112. orb.Anchored = true
  10113. orb.BrickColor = color
  10114. orb.CanCollide = false
  10115. orb.FormFactor = 3
  10116. orb.Name = "Ring"
  10117. orb.Material = "Neon"
  10118. orb.Size = Vector3.new(1, 1, 1)
  10119. orb.Transparency = 0
  10120. orb.TopSurface = 0
  10121. orb.BottomSurface = 0
  10122. local orbm = Instance.new("SpecialMesh", orb)
  10123. orbm.MeshType = "Sphere"
  10124. orb.CFrame = positted
  10125. orbm.Name = "SizeMesh"
  10126. orbm.Scale = vt(1, 1, 1)
  10127. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  10128. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  10129. coroutine.resume(coroutine.create(function()
  10130. wait(timer)
  10131. CameraEnshaking(3, ShakePower)
  10132. orb.Transparency = 1
  10133. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  10134. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  10135. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  10136. wait(3)
  10137. orb:Destroy()
  10138. end))
  10139. end
  10140. function orb_spawn(positted, timer)
  10141. local randomcol = math.random(1, 2)
  10142. local orb = Instance.new("Part", char)
  10143. orb.Anchored = true
  10144. if randomcol == 1 then
  10145. orb.BrickColor = BrickColor.new("White")
  10146. elseif randomcol == 2 then
  10147. orb.BrickColor = BrickColor.new("Really black")
  10148. end
  10149. orb.CanCollide = false
  10150. orb.FormFactor = 3
  10151. orb.Name = "Ring"
  10152. orb.Material = "Neon"
  10153. orb.Size = Vector3.new(1, 1, 1)
  10154. orb.Transparency = 0
  10155. orb.TopSurface = 0
  10156. orb.BottomSurface = 0
  10157. local orbm = Instance.new("SpecialMesh", orb)
  10158. orbm.MeshType = "Sphere"
  10159. orb.CFrame = positted
  10160. orbm.Name = "SizeMesh"
  10161. orbm.Scale = vt(1, 1, 1)
  10162. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  10163. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  10164. for i = 0, 2 do
  10165. sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0)
  10166. end
  10167. coroutine.resume(coroutine.create(function()
  10168. wait(timer)
  10169. CameraEnshaking(3, 2)
  10170. orb.Transparency = 1
  10171. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  10172. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  10173. for i = 0, 4 do
  10174. sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0)
  10175. end
  10176. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  10177. wait(3)
  10178. orb:Destroy()
  10179. end))
  10180. end
  10181. function scattercorrupt()
  10182. attack = true
  10183. local rot = 0
  10184. local randomrotations = math.random(1, 2)
  10185. local lookv = 2.5
  10186. local power = 5
  10187. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  10188. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  10189. for i = 0, 9 do
  10190. sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
  10191. end
  10192. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  10193. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  10194. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  10195. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  10196. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  10197. local hite = Instance.new("Part", char)
  10198. hite.Anchored = true
  10199. hite.CanCollide = false
  10200. hite.FormFactor = 3
  10201. hite.Name = "Ring"
  10202. hite.Material = "Neon"
  10203. hite.Size = Vector3.new(1, 1, 1)
  10204. hite.Transparency = 1
  10205. hite.TopSurface = 0
  10206. hite.BottomSurface = 0
  10207. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  10208. local rem = Instance.new("Part", char)
  10209. rem.Anchored = true
  10210. rem.CanCollide = false
  10211. rem.FormFactor = 3
  10212. rem.Name = "Ring"
  10213. rem.Material = "Neon"
  10214. rem.Size = Vector3.new(1, 1, 1)
  10215. rem.Transparency = 1
  10216. rem.TopSurface = 0
  10217. rem.BottomSurface = 0
  10218. rem.CFrame = hite.CFrame
  10219. local rem2 = rem:Clone()
  10220. rem2.Parent = char
  10221. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10222. local rem3 = rem:Clone()
  10223. rem3.Parent = char
  10224. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  10225. local rem4 = rem:Clone()
  10226. rem4.Parent = char
  10227. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  10228. hite:Destroy()
  10229. coroutine.resume(coroutine.create(function()
  10230. for i = 0, 24 do
  10231. swait(1)
  10232. if randomrotations == 1 then
  10233. rot = rot + 1
  10234. elseif randomrotations == 2 then
  10235. rot = rot - 1
  10236. end
  10237. power = power + 0.5
  10238. lookv = lookv + 7.5
  10239. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  10240. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10241. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  10242. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  10243. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  10244. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  10245. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  10246. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  10247. end
  10248. end))
  10249. attack = false
  10250. end
  10251. function yinyangi()
  10252. attack = true
  10253. for i = 0, 2, 0.1 do
  10254. swait()
  10255. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2)
  10256. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2)
  10257. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2)
  10258. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  10259. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  10260. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  10261. end
  10262. local bv = Instance.new("BodyVelocity")
  10263. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  10264. bv.velocity = root.CFrame.lookVector * 175
  10265. bv.Parent = root
  10266. for Rotations = 0, 9 do
  10267. for i = 0, 1, 0.5 do
  10268. swait()
  10269. bv.velocity = root.CFrame.lookVector * 175
  10270. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  10271. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  10272. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  10273. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  10274. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  10275. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  10276. end
  10277. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  10278. for i = 0, 1, 0.5 do
  10279. swait()
  10280. bv.velocity = root.CFrame.lookVector * 175
  10281. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  10282. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  10283. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5)
  10284. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  10285. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  10286. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  10287. end
  10288. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  10289. for i = 0, 1, 0.5 do
  10290. swait()
  10291. bv.velocity = root.CFrame.lookVector * 175
  10292. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  10293. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  10294. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5)
  10295. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  10296. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  10297. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  10298. end
  10299. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  10300. for i = 0, 1, 0.5 do
  10301. swait()
  10302. bv.velocity = root.CFrame.lookVector * 175
  10303. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  10304. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  10305. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5)
  10306. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  10307. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  10308. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  10309. end
  10310. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  10311. end
  10312. bv:Destroy()
  10313. attack = false
  10314. end
  10315. function Wip()
  10316. attack = true
  10317. local rngb = Instance.new("Part", char)
  10318. rngb.Anchored = true
  10319. rngb.BrickColor = origcolor
  10320. rngb.CanCollide = false
  10321. rngb.FormFactor = 3
  10322. rngb.Name = "Ring"
  10323. rngb.Material = "Neon"
  10324. rngb.Size = Vector3.new(1, 0.05, 1)
  10325. rngb.Transparency = 1
  10326. rngb.TopSurface = 0
  10327. rngb.BottomSurface = 0
  10328. local rngmb = Instance.new("SpecialMesh", rngb)
  10329. rngmb.MeshType = "Brick"
  10330. rngmb.Name = "SizeMesh"
  10331. rngmb.Scale = vt(0, 1, 0)
  10332. local orb = rngb:Clone()
  10333. orb.Parent = char
  10334. orb.Transparency = 0
  10335. orb.BrickColor = BrickColor.new("Really black")
  10336. orb.Size = vt(1, 1, 1)
  10337. local orbmish = orb.SizeMesh
  10338. orbmish.Scale = vt(0, 0, 0)
  10339. orbmish.MeshType = "Sphere"
  10340. local orbe = rngb:Clone()
  10341. orbe.Parent = char
  10342. orbe.Transparency = 0.5
  10343. orbe.BrickColor = BrickColor.new("Really black")
  10344. orbe.Size = vt(1, 1, 1)
  10345. local orbmish2 = orbe.SizeMesh
  10346. orbmish2.Scale = vt(0, 0, 0)
  10347. orbmish2.MeshType = "Sphere"
  10348. orbe.Color = Color3.new("Really black")
  10349. rngb:Destroy()
  10350. for i = 0, 5, 0.1 do
  10351. swait()
  10352. if rainbowmode == true then
  10353. orbe.Color = Color3.new("Really black")
  10354. end
  10355. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  10356. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  10357. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  10358. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  10359. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10360. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10361. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  10362. 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(10), math.rad(0)), 0.3)
  10363. RootPart.CFrame = FaceMouse()[1]
  10364. end
  10365. orbe.Transparency = 1
  10366. orb.Transparency = 1
  10367. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  10368. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  10369. local a = Instance.new("Part", Character)
  10370. a.Name = "Direction"
  10371. a.Anchored = true
  10372. a.BrickColor = bc("Really black")
  10373. a.Material = "Neon"
  10374. a.Transparency = 0
  10375. a.Shape = "Cylinder"
  10376. a.CanCollide = false
  10377. local a2 = Instance.new("Part", Character)
  10378. a2.Name = "Direction"
  10379. a2.Anchored = true
  10380. a2.BrickColor = bc("Really black")
  10381. a2.Color = Color3.new("Really black")
  10382. a2.Material = "Neon"
  10383. a2.Transparency = 0.5
  10384. a2.Shape = "Cylinder"
  10385. a2.CanCollide = false
  10386. local ba = Instance.new("Part", Character)
  10387. ba.Name = "HitDirect"
  10388. ba.Anchored = true
  10389. ba.BrickColor = bc("Really black")
  10390. ba.Material = "Neon"
  10391. ba.Transparency = 1
  10392. ba.CanCollide = false
  10393. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10394. local ignore = Character
  10395. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10396. a.BottomSurface = 10
  10397. a.TopSurface = 10
  10398. a2.BottomSurface = 10
  10399. a2.TopSurface = 10
  10400. local distance = (orb.CFrame.p - position).magnitude
  10401. a.Size = Vector3.new(distance, 1, 1)
  10402. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10403. a2.Size = Vector3.new(distance, 1, 1)
  10404. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10405. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10406. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10407. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10408. game:GetService("Debris"):AddItem(a, 20)
  10409. game:GetService("Debris"):AddItem(a2, 20)
  10410. game:GetService("Debris"):AddItem(ba, 20)
  10411. local msh = Instance.new("SpecialMesh", a)
  10412. msh.MeshType = "Cylinder"
  10413. msh.Scale = vt(1, 25, 25)
  10414. local msh2 = Instance.new("SpecialMesh", a2)
  10415. msh2.MeshType = "Cylinder"
  10416. msh2.Scale = vt(1, 30, 30)
  10417. for i = 0, 10, 0.1 do
  10418. swait()
  10419. CameraEnshaking(1, 5)
  10420. a2.Color = Color3.new("Really black")
  10421. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10422. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10423. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10424. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10425. distance = (orb.CFrame.p - position).magnitude
  10426. if typrot == 1 then
  10427. rotation = rotation + 2.5
  10428. elseif typrot == 2 then
  10429. rotation = rotation - 2.5
  10430. end
  10431. RootPart.CFrame = FaceMouse()[1]
  10432. a.Size = Vector3.new(distance, 1, 1)
  10433. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10434. a2.Size = Vector3.new(distance, 1, 1)
  10435. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10436. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10437. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10438. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10439. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  10440. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  10441. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  10442. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  10443. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  10444. end
  10445. a:Destroy()
  10446. a2:Destroy()
  10447. ba:Destroy()
  10448. orb:Destroy()
  10449. orbe:Destroy()
  10450. attack = false
  10451. end
  10452. function UniversalSpark()
  10453. attack = true
  10454. local rngb = Instance.new("Part", char)
  10455. rngb.Anchored = true
  10456. rngb.BrickColor = origcolor
  10457. rngb.CanCollide = false
  10458. rngb.FormFactor = 3
  10459. rngb.Name = "Ring"
  10460. rngb.Material = "Neon"
  10461. rngb.Size = Vector3.new(1, 0.05, 1)
  10462. rngb.Transparency = 1
  10463. rngb.TopSurface = 0
  10464. rngb.BottomSurface = 0
  10465. local rngmb = Instance.new("SpecialMesh", rngb)
  10466. rngmb.MeshType = "Brick"
  10467. rngmb.Name = "SizeMesh"
  10468. rngmb.Scale = vt(0, 1, 0)
  10469. local orb = rngb:Clone()
  10470. orb.Parent = char
  10471. orb.Transparency = 0
  10472. orb.BrickColor = BrickColor.new("White")
  10473. orb.Size = vt(1, 1, 1)
  10474. local orbmish = orb.SizeMesh
  10475. orbmish.Scale = vt(0, 0, 0)
  10476. orbmish.MeshType = "Sphere"
  10477. local orbe = rngb:Clone()
  10478. orbe.Parent = char
  10479. orbe.Transparency = 0.5
  10480. orbe.BrickColor = BrickColor.new("New Yeller")
  10481. orbe.Size = vt(1, 1, 1)
  10482. local orbmish2 = orbe.SizeMesh
  10483. orbmish2.Scale = vt(0, 0, 0)
  10484. orbmish2.MeshType = "Sphere"
  10485. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  10486. rngb:Destroy()
  10487. for i = 0, 5, 0.1 do
  10488. swait()
  10489. if rainbowmode == true then
  10490. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  10491. end
  10492. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  10493. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  10494. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  10495. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  10496. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  10497. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10498. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  10499. 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(10), math.rad(0)), 0.3)
  10500. RootPart.CFrame = FaceMouse()[1]
  10501. end
  10502. orbe.Transparency = 1
  10503. orb.Transparency = 1
  10504. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  10505. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  10506. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  10507. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  10508. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  10509. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  10510. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  10511. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  10512. local xd = Instance.new("Sound", char)
  10513. xd.SoundId = "rbxassetid://445796828"
  10514. xd.Pitch = 0.75
  10515. xd.Looped = true
  10516. xd.Volume = 1.25
  10517. xd:Play()
  10518. local a = Instance.new("Part", Character)
  10519. a.Name = "Direction"
  10520. a.Anchored = true
  10521. a.BrickColor = bc("Alder")
  10522. a.Color = MAINRUINCOLOR.Color
  10523. a.Material = "Neon"
  10524. a.Transparency = 0.5
  10525. a.Shape = "Cylinder"
  10526. a.CanCollide = false
  10527. local a2 = Instance.new("Part", Character)
  10528. a2.Name = "Direction"
  10529. a2.Anchored = true
  10530. a2.BrickColor = bc("New Yeller")
  10531. a2.Color = MAINRUINCOLOR.Color
  10532. a2.Material = "Neon"
  10533. a2.Transparency = 0.5
  10534. a2.Shape = "Cylinder"
  10535. a2.CanCollide = false
  10536. local ba = Instance.new("Part", Character)
  10537. ba.Name = "HitDirect"
  10538. ba.Anchored = true
  10539. ba.BrickColor = bc("Really black")
  10540. ba.Material = "Neon"
  10541. ba.Transparency = 1
  10542. ba.CanCollide = false
  10543. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10544. local ignore = Character
  10545. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10546. a.BottomSurface = 10
  10547. a.TopSurface = 10
  10548. a2.BottomSurface = 10
  10549. a2.TopSurface = 10
  10550. local distance = (orb.CFrame.p - position).magnitude
  10551. a.Size = Vector3.new(distance, 1, 1)
  10552. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10553. a2.Size = Vector3.new(distance, 1, 1)
  10554. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10555. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10556. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10557. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10558. game:GetService("Debris"):AddItem(a, 60)
  10559. game:GetService("Debris"):AddItem(a2, 60)
  10560. game:GetService("Debris"):AddItem(ba, 60)
  10561. local outerscale = 0
  10562. local msh = Instance.new("SpecialMesh", a)
  10563. msh.MeshType = "Cylinder"
  10564. msh.Scale = vt(1, 0, 0)
  10565. local msh2 = Instance.new("SpecialMesh", a2)
  10566. msh2.MeshType = "Cylinder"
  10567. msh2.Scale = vt(1, 0, 0)
  10568. for i = 0, 2, 0.1 do
  10569. swait()
  10570. CameraEnshaking(1, 1)
  10571. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  10572. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  10573. outerscale = outerscale - 0.015
  10574. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10575. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10576. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10577. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10578. distance = (orb.CFrame.p - position).magnitude
  10579. if typrot == 1 then
  10580. rotation = rotation + 2.5
  10581. elseif typrot == 2 then
  10582. rotation = rotation - 2.5
  10583. end
  10584. RootPart.CFrame = FaceMouse()[1]
  10585. a.Size = Vector3.new(distance, 1, 1)
  10586. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10587. a2.Size = Vector3.new(distance, 1, 1)
  10588. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10589. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10590. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10591. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10592. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10593. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10594. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  10595. end
  10596. for z = 0, 2 do
  10597. for i = 0, 4, 0.1 do
  10598. swait()
  10599. CameraEnshaking(1, 1)
  10600. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  10601. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  10602. outerscale = outerscale + 0.015
  10603. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10604. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10605. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10606. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10607. distance = (orb.CFrame.p - position).magnitude
  10608. if typrot == 1 then
  10609. rotation = rotation + 2.5
  10610. elseif typrot == 2 then
  10611. rotation = rotation - 2.5
  10612. end
  10613. RootPart.CFrame = FaceMouse()[1]
  10614. a.Size = Vector3.new(distance, 1, 1)
  10615. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10616. a2.Size = Vector3.new(distance, 1, 1)
  10617. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10618. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10619. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10620. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10621. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10622. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10623. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  10624. end
  10625. for i = 0, 4, 0.1 do
  10626. swait()
  10627. CameraEnshaking(1, 1)
  10628. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  10629. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  10630. outerscale = outerscale - 0.015
  10631. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10632. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10633. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10634. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10635. distance = (orb.CFrame.p - position).magnitude
  10636. if typrot == 1 then
  10637. rotation = rotation + 2.5
  10638. elseif typrot == 2 then
  10639. rotation = rotation - 2.5
  10640. end
  10641. RootPart.CFrame = FaceMouse()[1]
  10642. a.Size = Vector3.new(distance, 1, 1)
  10643. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10644. a2.Size = Vector3.new(distance, 1, 1)
  10645. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10646. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10647. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10648. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10649. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10650. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10651. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  10652. end
  10653. end
  10654. for i = 0, 4, 0.1 do
  10655. swait()
  10656. CameraEnshaking(1, 1)
  10657. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  10658. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  10659. xd.Volume = xd.Volume - 0.025
  10660. a.Transparency = a.Transparency + 0.025
  10661. a2.Transparency = a2.Transparency + 0.025
  10662. outerscale = outerscale - 0.015
  10663. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10664. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  10665. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  10666. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  10667. distance = (orb.CFrame.p - position).magnitude
  10668. if typrot == 1 then
  10669. rotation = rotation + 2.5
  10670. elseif typrot == 2 then
  10671. rotation = rotation - 2.5
  10672. end
  10673. RootPart.CFrame = FaceMouse()[1]
  10674. a.Size = Vector3.new(distance, 1, 1)
  10675. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10676. a2.Size = Vector3.new(distance, 1, 1)
  10677. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  10678. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  10679. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10680. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  10681. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10682. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  10683. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  10684. end
  10685. xd:Destroy()
  10686. a:Destroy()
  10687. a2:Destroy()
  10688. ba:Destroy()
  10689. orb:Destroy()
  10690. orbe:Destroy()
  10691. attack = false
  10692. end
  10693. function resetmode()
  10694. rainbowmode = false
  10695. chaosmode = false
  10696. RecolorTextAndRename("Black", Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  10697. ModeOfGlitch = 1
  10698. storehumanoidWS = 100
  10699. MAINRUINCOLOR = BrickColor.new("Really black")
  10700. hum.WalkSpeed = 100
  10701. newTheme("rbxassetid://798163149", 0, 1, 10)
  10702. for i, v in pairs(m:GetChildren()) do
  10703. if v:IsA("Part") then
  10704. v.BrickColor = BrickColor.new("Really black")
  10705. v.Material = "Neon"
  10706. v.Transparency = 1
  10707. end
  10708. end
  10709. for i, v in pairs(m2:GetChildren()) do
  10710. if v:IsA("Part") then
  10711. v.BrickColor = BrickColor.new("Really black")
  10712. v.Material = "Neon"
  10713. v.Transparency = 1
  10714. end
  10715. end
  10716. for i, v in pairs(m3:GetChildren()) do
  10717. if v:IsA("Part") then
  10718. v.BrickColor = BrickColor.new("Really black")
  10719. v.Material = "Neon"
  10720. v.Transparency = 1
  10721. end
  10722. end
  10723. for i, v in pairs(mw2:GetChildren()) do
  10724. if v:IsA("Part") then
  10725. v.Transparency = 0
  10726. v.BrickColor = BrickColor.new("Really black")
  10727. v.Material = "Neon"
  10728. end
  10729. end
  10730. for i, v in pairs(mw1:GetChildren()) do
  10731. if v:IsA("Part") then
  10732. v.Transparency = 0
  10733. v.BrickColor = BrickColor.new("Really black")
  10734. v.Material = "Neon"
  10735. end
  10736. end
  10737. for i, v in pairs(extrawingmod1:GetChildren()) do
  10738. if v:IsA("Part") then
  10739. v.Transparency = 0
  10740. v.BrickColor = BrickColor.new("Really black")
  10741. v.Material = "Neon"
  10742. end
  10743. end
  10744. for i, v in pairs(extrawingmod2:GetChildren()) do
  10745. if v:IsA("Part") then
  10746. v.Transparency = 0
  10747. v.BrickColor = BrickColor.new("Really black")
  10748. v.Material = "Neon"
  10749. end
  10750. end
  10751. end
  10752. function attackone()
  10753. attack = true
  10754. for i = 0, 1, 0.1 do
  10755. swait()
  10756. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  10757. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  10758. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  10759. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  10760. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  10761. 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(10)), 0.2)
  10762. end
  10763. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  10764. local hitb = Instance.new("Part", char)
  10765. hitb.Anchored = true
  10766. hitb.CanCollide = false
  10767. hitb.FormFactor = 3
  10768. hitb.Name = "Ring"
  10769. hitb.Material = "Neon"
  10770. hitb.Size = Vector3.new(1, 1, 1)
  10771. hitb.Transparency = 1
  10772. hitb.TopSurface = 0
  10773. hitb.BottomSurface = 0
  10774. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  10775. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  10776. hitb:Destroy()
  10777. for i = 0, 1, 0.1 do
  10778. swait()
  10779. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  10780. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  10781. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  10782. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  10783. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4)
  10784. 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(-10)), 0.4)
  10785. end
  10786. attack = false
  10787. end
  10788. function attacktwo()
  10789. attack = true
  10790. for i = 0, 1, 0.1 do
  10791. swait()
  10792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  10793. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  10794. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  10795. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  10796. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  10797. 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(10)), 0.2)
  10798. end
  10799. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  10800. local hitb = Instance.new("Part", char)
  10801. hitb.Anchored = true
  10802. hitb.CanCollide = false
  10803. hitb.FormFactor = 3
  10804. hitb.Name = "Ring"
  10805. hitb.Material = "Neon"
  10806. hitb.Size = Vector3.new(1, 1, 1)
  10807. hitb.Transparency = 1
  10808. hitb.TopSurface = 0
  10809. hitb.BottomSurface = 0
  10810. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  10811. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  10812. hitb:Destroy()
  10813. for i = 0, 1, 0.1 do
  10814. swait()
  10815. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  10816. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  10817. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  10818. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  10819. 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(-40)), 0.4)
  10820. 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(-10)), 0.4)
  10821. end
  10822. attack = false
  10823. end
  10824. function attackthree()
  10825. attack = true
  10826. for i = 0, 1, 0.1 do
  10827. swait()
  10828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  10829. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  10830. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  10831. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  10832. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  10833. 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(10), math.rad(0)), 0.3)
  10834. end
  10835. local distlook = 5
  10836. for i = 0, 4 do
  10837. swait(2)
  10838. CameraEnshaking(2, 3)
  10839. local hite = Instance.new("Part", char)
  10840. hite.Anchored = true
  10841. hite.CanCollide = false
  10842. hite.FormFactor = 3
  10843. hite.Name = "Ring"
  10844. hite.Material = "Neon"
  10845. hite.Size = Vector3.new(1, 1, 1)
  10846. hite.Transparency = 1
  10847. hite.TopSurface = 0
  10848. hite.BottomSurface = 0
  10849. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  10850. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  10851. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  10852. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  10853. for i = 0, 2 do
  10854. sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  10855. sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  10856. sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  10857. end
  10858. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  10859. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  10860. game:GetService("Debris"):AddItem(hite, 5)
  10861. distlook = distlook + 10
  10862. end
  10863. attack = false
  10864. end
  10865.  
  10866. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  10867. local type = type
  10868. local rng = Instance.new("Part", char)
  10869. rng.Anchored = true
  10870. rng.BrickColor = color
  10871. rng.Color = color3
  10872. rng.CanCollide = false
  10873. rng.FormFactor = 3
  10874. rng.Name = "Ring"
  10875. rng.Material = "Neon"
  10876. rng.Size = Vector3.new(1, 1, 1)
  10877. rng.Transparency = 0
  10878. rng.TopSurface = 0
  10879. rng.BottomSurface = 0
  10880. rng.CFrame = pos
  10881. local rngm = Instance.new("SpecialMesh", rng)
  10882. rngm.MeshType = "Sphere"
  10883. rngm.Scale = scale
  10884. local scaler2 = 1
  10885. local scaler2b = 1
  10886. local scaler2c = 1
  10887. if type == "Add" then
  10888. scaler2 = 1*value
  10889. scaler2b = 1*value2
  10890. scaler2c = 1*value3
  10891. elseif type == "Divide" then
  10892. scaler2 = 1/value
  10893. scaler2b = 1/value2
  10894. scaler2c = 1/value3
  10895. end
  10896. coroutine.resume(coroutine.create(function()
  10897. for i = 0,10/bonuspeed,0.1 do
  10898. swait()
  10899. if type == "Add" then
  10900. scaler2 = scaler2 - 0.01*value/bonuspeed
  10901. scaler2b = scaler2b - 0.01*value/bonuspeed
  10902. scaler2c = scaler2c - 0.01*value/bonuspeed
  10903. elseif type == "Divide" then
  10904. scaler2 = scaler2 - 0.01/value*bonuspeed
  10905. scaler2b = scaler2b - 0.01/value*bonuspeed
  10906. scaler2c = scaler2c - 0.01/value*bonuspeed
  10907. end
  10908. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  10909. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  10910. end
  10911. rng:Destroy()
  10912. end))
  10913. end
  10914.  
  10915. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  10916. local type = type
  10917. local rotenable = rotatingop
  10918. local rng = Instance.new("Part", char)
  10919. rng.Anchored = true
  10920. rng.BrickColor = color
  10921. rng.CanCollide = false
  10922. rng.FormFactor = 3
  10923. rng.Name = "Ring"
  10924. rng.Material = "Neon"
  10925. rng.Size = Vector3.new(1, 1, 1)
  10926. rng.Transparency = 0
  10927. if typeoftrans == "In" then
  10928. rng.Transparency = 1
  10929. end
  10930. rng.TopSurface = 0
  10931. rng.BottomSurface = 0
  10932. rng.CFrame = pos
  10933. local rngm = Instance.new("SpecialMesh", rng)
  10934. rngm.MeshType = "FileMesh"
  10935. if typeofshape == "Normal" then
  10936. rngm.MeshId = "rbxassetid://662586858"
  10937. elseif typeofshape == "Round" then
  10938. rngm.MeshId = "rbxassetid://662585058"
  10939. end
  10940. rngm.Scale = scale
  10941. local scaler2 = 1/10
  10942. if type == "Add" then
  10943. scaler2 = 1*value/10
  10944. elseif type == "Divide" then
  10945. scaler2 = 1/value/10
  10946. end
  10947. local randomrot = math.random(1,2)
  10948. coroutine.resume(coroutine.create(function()
  10949. for i = 0,10/bonuspeed,0.1 do
  10950. swait()
  10951. if type == "Add" then
  10952. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  10953. elseif type == "Divide" then
  10954. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  10955. end
  10956. if rotenable == true then
  10957. if randomrot == 1 then
  10958. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  10959. elseif randomrot == 2 then
  10960. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  10961. end
  10962. end
  10963. if typeoftrans == "Out" then
  10964. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  10965. elseif typeoftrans == "In" then
  10966. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  10967. end
  10968. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  10969. end
  10970. rng:Destroy()
  10971. end))
  10972. end
  10973.  
  10974. function superjump()
  10975. attack = true
  10976. hum.WalkSpeed = 0
  10977. hum.JumpPower = 0
  10978. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
  10979. for i = 0, 2, 0.1 do
  10980. swait()
  10981. slash(math.random(10,50)/10,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  10982. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  10983. root.Velocity = vt(0,0,0)
  10984. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
  10985. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4)
  10986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
  10987. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
  10988. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
  10989. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
  10990. end
  10991.  
  10992. hum.JumpPower = 50
  10993. hum.Jump = true
  10994. swait()
  10995. hum.JumpPower = 0
  10996. root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
  10997. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
  10998. for i = 0, 3, 0.1 do
  10999. swait()
  11000. RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
  11001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4)
  11002. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
  11003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
  11004. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
  11005. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
  11006. end
  11007. attack = false
  11008. if equipped == false then
  11009. hum.WalkSpeed = 16
  11010. else
  11011. hum.WalkSpeed = 24
  11012. end
  11013. hum.JumpPower = 50
  11014. end
  11015.  
  11016. local attacktype = 1
  11017. mouse.Button1Down:connect(function()
  11018. if attack == false and attacktype == 1 then
  11019. attacktype = 2
  11020. attackone()
  11021. elseif attack == false and attacktype == 2 then
  11022. attacktype = 3
  11023. attacktwo()
  11024. elseif attack == false and attacktype == 3 then
  11025. attacktype = 1
  11026. attackthree()
  11027. elseif attack == false and attacktype == 4 then
  11028. attacktype = 1
  11029. end
  11030. end)
  11031. mouse.KeyDown:connect(function(k)
  11032. if k == "q" and attack == false and ModeOfGlitch == 1 then
  11033. ExtinctiveHeartbreak()
  11034. elseif k == "e" and attack == false and ModeOfGlitch == 1 then
  11035. ChaosGroundStrike()
  11036. elseif k == "f" and attack == false and ModeOfGlitch == 1 then
  11037. superjump()
  11038. elseif k == "r" and attack == false and ModeOfGlitch == 1 then
  11039. Wip()
  11040. end
  11041. if k == "g" and attack == false and ModeOfGlitch == 1 then
  11042. ChaosBegone()
  11043. end
  11044. end)
  11045. coroutine.resume(coroutine.create(function()
  11046. while true do
  11047. swait(2)
  11048. if rainbowmode == true or ModeOfGlitch == 6 then
  11049. sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0)
  11050. end
  11051. end
  11052. end))
  11053. coroutine.resume(coroutine.create(function()
  11054. while true do
  11055. swait(0.5)
  11056. if ModeOfGlitch == 6 then
  11057. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0)
  11058. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-26, 26), -10, math.random(-26, 26)) * CFrame.Angles(math.rad(90 + math.random(-16, 16)), math.rad(math.random(-16, 16)), 0), 1, 1, 16, -0.01, MAINRUINCOLOR, 0)
  11059. end
  11060. end
  11061. end))
  11062. coroutine.resume(coroutine.create(function()
  11063. while true do
  11064. swait(2)
  11065. if chaosmode == true then
  11066. RecolorTextAndRename("Fetty Edit", Color3.new(0, 0, 0), BrickColor.random().Color)
  11067. for i, v in pairs(mw1:GetChildren()) do
  11068. if v:IsA("Part") then
  11069. v.Transparency = 0.75
  11070. v.BrickColor = BrickColor.random()
  11071. v.Material = "Neon"
  11072. end
  11073. end
  11074. for i, v in pairs(m2:GetChildren()) do
  11075. if v:IsA("Part") then
  11076. v.BrickColor = BrickColor.random()
  11077. v.Material = "Neon"
  11078. end
  11079. end
  11080. end
  11081. end
  11082. end))
  11083. Humanoid.Name = "STARGLITCHER"
  11084. Humanoid.MaxHealth = math.huge
  11085. Humanoid.Health = math.huge
  11086. Instance.new("ForceField", char).Visible = false
  11087. Humanoid.Animator.Parent = nil
  11088. idleanim = 0.4
  11089. while true do
  11090. if rainbowmode == true then
  11091. RecolorTextAndRename("Fetty Edit", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  11092. MAINRUINCOLOR = BrickColor.new("White")
  11093. for i, v in pairs(m:GetChildren()) do
  11094. if v:IsA("Part") then
  11095. v.Color = Color3.new(r / 255, g / 255, b / 255)
  11096. end
  11097. end
  11098. for i, v in pairs(m2:GetChildren()) do
  11099. if v:IsA("Part") then
  11100. v.Color = Color3.new(r / 255, g / 255, b / 255)
  11101. end
  11102. end
  11103. for i, v in pairs(m3:GetChildren()) do
  11104. if v:IsA("Part") then
  11105. v.Color = Color3.new(r / 255, g / 255, b / 255)
  11106. end
  11107. end
  11108. for i, v in pairs(mw1:GetChildren()) do
  11109. if v:IsA("Part") then
  11110. v.Color = Color3.new(r / 255, g / 255, b / 255)
  11111. v.Material = "Neon"
  11112. end
  11113. end
  11114. for i, v in pairs(mw2:GetChildren()) do
  11115. if v:IsA("Part") then
  11116. v.Color = Color3.new(r / 255, g / 255, b / 255)
  11117. v.Material = "Neon"
  11118. end
  11119. end
  11120. end
  11121. CameraManager()
  11122. swait()
  11123. handleweld.C0=clerp(handleweld.C0,cf(0,-1.5,-1.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  11124. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 + 3600 * math.cos(sine / 360))),.3)
  11125. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 + 3600 * math.cos(sine / 360))),.3)
  11126. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 + 3600 * math.cos(sine / 360))),.3)
  11127. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 - 3600 * math.cos(sine / 720))),.3)
  11128. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 - 3600 * math.cos(sine / 720))),.3)
  11129. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 - 3600 * math.cos(sine / 720))),.3)
  11130. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 360))),.3)
  11131. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 360))),.3)
  11132. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 360))),.3)
  11133. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 360))),.3)
  11134. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 360))),.3)
  11135. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 360))),.3)
  11136. sine = sine + change
  11137. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  11138. local velderp = RootPart.Velocity.y
  11139. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  11140. storehumanoidWS = 100
  11141. hum.WalkSpeed = 100
  11142. if equipped == true or equipped == false then
  11143. if attack == false then
  11144. idle = idle + 1
  11145. else
  11146. idle = 0
  11147. end
  11148. if not (idle >= 500) or attack == false then
  11149. end
  11150. if RootPart.Velocity.y > 1 and hitfloor == nil then
  11151. Anim = "Jump"
  11152. if attack == false then
  11153. 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)), 0.1)
  11154. 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)), 0.1)
  11155. 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)), 0.1)
  11156. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  11157. 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)), 0.1)
  11158. 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)), 0.1)
  11159. end
  11160. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  11161. Anim = "Fall"
  11162. if attack == false then
  11163. 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)), 0.1)
  11164. 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)), 0.1)
  11165. 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)), 0.1)
  11166. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  11167. 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)), 0.1)
  11168. 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)), 0.1)
  11169. end
  11170. elseif torvel < 1 and hitfloor ~= nil then
  11171. Anim = "Idle"
  11172. if attack == false then
  11173. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  11174. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  11175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),5 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  11176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  11177. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  11178. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(90 - 4 * math.cos(sine / 45))),.1)
  11179. end
  11180. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  11181. Anim = "Walk"
  11182. if attack == false then
  11183. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  11184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  11185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  11186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  11187. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  11188. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  11189. end
  11190. elseif torvel >= 22 and hitfloor ~= nil then
  11191. Anim = "Run"
  11192. if attack == false then
  11193. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  11194. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  11195. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  11196. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  11197. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  11198. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  11199. end
  11200. end
  11201. if Head:FindFirstChild("face") then
  11202. Head.face.Texture = "rbxassetid://403870689"
  11203. end
  11204. for _, c in pairs(Character:GetChildren()) do
  11205. if c.ClassName == "Part" and c.Name ~= "Eye" then
  11206. c.Material = "Neon"
  11207. if c:FindFirstChildOfClass("ParticleEmitter") then
  11208. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  11209. end
  11210. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  11211. c:remove()
  11212. end
  11213. end
  11214. end
  11215. end
  11216.  
  11217. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement