Advertisement
Gotmilk0086

Untitled

Jul 11th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 212.93 KB | None | 0 0
  1. warn("NEBULA GLITCHER LOADED.")
  2. warn("All purpose switcher...")
  3. local MAINRUINCOLOR = BrickColor.new("Pink")
  4. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  5. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  6. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  7. plr = game:service'Players'.LocalPlayer
  8. char = plr.Character
  9. hum = char.Humanoid
  10. local cam = game.Workspace.CurrentCamera
  11. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  12. Camera = cam
  13. local CamInterrupt = false
  14. local TwoD = false
  15. local TargetInfo = {nil, nil}
  16. local Player_Size = 1
  17. cam.CameraType = "Custom"
  18. t = char.Torso
  19. h = char.Head
  20. ra = char["Right Arm"]
  21. la = char["Left Arm"]
  22. rl = char["Right Leg"]
  23. ll = char["Left Leg"]
  24. tors = char.Torso
  25. lleg = char["Left Leg"]
  26. root = char.HumanoidRootPart
  27. hed = char.Head
  28. rleg = char["Right Leg"]
  29. rarm = char["Right Arm"]
  30. larm = char["Left Arm"]
  31. local discord = false
  32. local shit = false
  33. local COLOURSANALSHIT = 3
  34. local ireallylikebeinggay = true
  35. function weld(a, b, acf)
  36. local w = Instance.new("Weld", a)
  37. w.Part0 = a
  38. w.Part1 = b
  39. w.C0 = acf
  40. end
  41. function notanotherone()
  42. if COLOURSANALSHIT == 3 then
  43. COLOURSANALSHIT = 2
  44. elseif COLOURSANALSHIT == 2 then
  45. COLOURSANALSHIT = 1
  46. elseif COLOURSANALSHIT == 1 then
  47. COLOURSANALSHIT = 3
  48. end
  49. end
  50. if game.Players.LocalPlayer.Name == "Tcgc121212" then
  51. local righteyebrickcolor = Color3.new(1,0,0)
  52. local reye = Instance.new("Part", char)
  53. local righteye = reye
  54. reye.CanCollide = false
  55. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  56. reye.Material = "Neon"
  57. reye.Size = Vector3.new(.25,.35,.15)
  58. weld(reye, char.Head, CFrame.new(0.1,-0.25,0.55), CFrame.new(1,0,0))
  59. m1 = Instance.new("SpecialMesh", reye)
  60. m1.MeshType = "Sphere"
  61. m1.Scale = Vector3.new(0.75,0.7,0.75)
  62. reye.Locked = true
  63. reye.Name = "re"
  64.  
  65. local leye = Instance.new("Part", char)
  66. leye.CanCollide = false
  67. leye.BrickColor = BrickColor.new(righteyebrickcolor)
  68. leye.Material = "Neon"
  69. leye.Size = Vector3.new(.25,.35,.15)
  70. weld(leye, char.Head, CFrame.new(-0.1,-0.25,0.55), CFrame.new(1,0,0))
  71. local m = Instance.new("SpecialMesh", leye)
  72. m.MeshType = "Sphere"
  73. m.Scale = Vector3.new(0.75,0.7,0.75)
  74. leye.Locked = true
  75. leye.Name = "le"
  76. ireallylikebeinggay = false
  77. local lefteye = leye
  78. elseif game.Players.LocalPlayer.Name == "Nebula_Zorua" then
  79. local righteyebrickcolor = Color3.fromRGB(61, 21, 133)
  80. local reye = Instance.new("Part", char)
  81. reye.CanCollide = false
  82. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  83. reye.Material = "Neon"
  84. reye.Size = Vector3.new(.25,.35,.15)
  85. weld(reye, char.Head, CFrame.new(0.1,-0.25,0.55), CFrame.new(1,0,0))
  86. m1 = Instance.new("SpecialMesh", reye)
  87. m1.MeshType = "Sphere"
  88. m1.Scale = Vector3.new(0.75,0.7,0.75)
  89. reye.Locked = true
  90. reye.Name = "re"
  91.  
  92. local leye = Instance.new("Part", char)
  93. leye.CanCollide = false
  94. leye.BrickColor = BrickColor.new(righteyebrickcolor)
  95. leye.Material = "Neon"
  96. leye.Size = Vector3.new(.25,.35,.15)
  97. weld(leye, char.Head, CFrame.new(-0.1,-0.25,0.55), CFrame.new(1,0,0))
  98. local m = Instance.new("SpecialMesh", leye)
  99. m.MeshType = "Sphere"
  100. m.Scale = Vector3.new(0.75,0.7,0.75)
  101. leye.Locked = true
  102. leye.Name = "le"
  103. local lefteye = leye
  104. local righteye = reye
  105. ireallylikebeinggay = false
  106. elseif game.Players.LocalPlayer.Name == "Creterisk" then
  107. local righteyebrickcolor = Color3.fromRGB(170, 85, 0)
  108. local reye = Instance.new("Part", char)
  109. reye.CanCollide = false
  110. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  111. reye.Material = "Neon"
  112. reye.Size = Vector3.new(.25,.35,.15)
  113. weld(reye, char.Head, CFrame.new(0.1,-0.25,0.55), CFrame.new(1,0,0))
  114. m1 = Instance.new("SpecialMesh", reye)
  115. m1.MeshType = "Sphere"
  116. m1.Scale = Vector3.new(0.75,0.7,0.75)
  117. reye.Locked = true
  118. reye.Name = "re"
  119.  
  120. local leye = Instance.new("Part", char)
  121. leye.CanCollide = false
  122. leye.BrickColor = BrickColor.new(righteyebrickcolor)
  123. leye.Material = "Neon"
  124. leye.Size = Vector3.new(.25,.35,.15)
  125. weld(leye, char.Head, CFrame.new(-0.1,-0.25,0.55), CFrame.new(1,0,0))
  126. local m = Instance.new("SpecialMesh", leye)
  127. m.MeshType = "Sphere"
  128. m.Scale = Vector3.new(0.75,0.7,0.75)
  129. leye.Locked = true
  130. leye.Name = "le"
  131. ireallylikebeinggay = false
  132. local lefteye = leye
  133. local righteye = reye
  134. elseif game.Players.LocalPlayer.Name == "2003boobear" then
  135. local righteyebrickcolor = Color3.fromRGB(159, 243, 233)
  136. local reye = Instance.new("Part", char)
  137. reye.CanCollide = false
  138. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  139. reye.Material = "Neon"
  140. reye.Size = Vector3.new(.25,.35,.15)
  141. weld(reye, char.Head, CFrame.new(0.1,-0.25,0.55), CFrame.new(1,0,0))
  142. m1 = Instance.new("SpecialMesh", reye)
  143. m1.MeshType = "Sphere"
  144. m1.Scale = Vector3.new(0.75,0.7,0.75)
  145. reye.Locked = true
  146. reye.Name = "re"
  147.  
  148. local leye = Instance.new("Part", char)
  149. leye.CanCollide = false
  150. leye.BrickColor = BrickColor.new(righteyebrickcolor)
  151. leye.Material = "Neon"
  152. leye.Size = Vector3.new(.25,.35,.15)
  153. weld(leye, char.Head, CFrame.new(-0.1,-0.25,0.55), CFrame.new(1,0,0))
  154. local m = Instance.new("SpecialMesh", leye)
  155. m.MeshType = "Sphere"
  156. m.Scale = Vector3.new(0.75,0.7,0.75)
  157. leye.Locked = true
  158. leye.Name = "le"
  159. ireallylikebeinggay = false
  160. local lefteye = leye
  161. local righteye = reye
  162. elseif ireallylikebeinggay == true then
  163. local righteyebrickcolor = Color3.fromRGB(9, 137, 207)
  164. local reye = Instance.new("Part", char)
  165. reye.CanCollide = false
  166. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  167. reye.Material = "Neon"
  168. reye.Size = Vector3.new(.25,.35,.15)
  169. weld(reye, char.Head, CFrame.new(0.1,-0.25,0.55), CFrame.new(1,0,0))
  170. m1 = Instance.new("SpecialMesh", reye)
  171. m1.MeshType = "Sphere"
  172. m1.Scale = Vector3.new(0.75,0.7,0.75)
  173. reye.Locked = true
  174. reye.Name = "re"
  175.  
  176. local leye = Instance.new("Part", char)
  177. leye.CanCollide = false
  178. leye.BrickColor = BrickColor.new(righteyebrickcolor)
  179. leye.Material = "Neon"
  180. leye.Size = Vector3.new(.25,.35,.15)
  181. weld(leye, char.Head, CFrame.new(-0.1,-0.25,0.55), CFrame.new(1,0,0))
  182. local m = Instance.new("SpecialMesh", leye)
  183. m.MeshType = "Sphere"
  184. m.Scale = Vector3.new(0.75,0.7,0.75)
  185. leye.Locked = true
  186. leye.Name = "le"
  187. local lefteye = leye
  188. local righteye = reye
  189. end
  190. local WALKSPEEDVALUE = 6 / (char.Humanoid.WalkSpeed / 16)
  191. cam = game.Workspace.CurrentCamera
  192. CF = CFrame.new
  193. VT = Vector3.new
  194. angles = CFrame.Angles
  195. attack = false
  196. Euler = CFrame.fromEulerAnglesXYZ
  197. Rad = math.rad
  198. IT = Instance.new
  199. BrickC = BrickColor.new
  200. Cos = math.cos
  201. Acos = math.acos
  202. Sin = math.sin
  203. Asin = math.asin
  204. Abs = math.abs
  205. Mrandom = math.random
  206. Floor = math.floor
  207. radian = math.rad
  208. random = math.random
  209. Vec3 = Vector3.new
  210. Inst = Instance.new
  211. cFrame = CFrame.new
  212. Euler = CFrame.fromEulerAnglesXYZ
  213. vt = Vector3.new
  214. bc = BrickColor.new
  215. br = BrickColor.random
  216. it = Instance.new
  217. cf = CFrame.new
  218. Torso = char["Torso"]
  219. RightShoulder = Torso["Right Shoulder"]
  220. LeftShoulder = Torso["Left Shoulder"]
  221. RightHip = Torso["Right Hip"]
  222. LeftHip = Torso["Left Hip"]
  223. local CHANGEDEFENSE = 0
  224. local CHANGEDAMAGE = 0
  225. local CHANGEMOVEMENT = 0
  226. local ANIM = "Idle"
  227. local ATTACK = false
  228. local EQUIPPED = false
  229. local HOLD = false
  230. local COMBO = 1
  231. local COMBO2 = 1
  232. local Rooted = false
  233. local SINE = 0
  234. local KEYHOLD = false
  235. local NOWALK = false
  236. Animation_Speed = 3
  237. local CHANGE = 2 / Animation_Speed
  238. local WALKINGANIM = false
  239. local WALK = 0
  240. local VALUE1 = false
  241. local VALUE2 = false
  242. IT = Instance.new
  243. CF = CFrame.new
  244. VT = Vector3.new
  245. RAD = math.rad
  246. C3 = Color3.new
  247. UD2 = UDim2.new
  248. BRICKC = BrickColor.new
  249. ANGLES = CFrame.Angles
  250. EULER = CFrame.fromEulerAnglesXYZ
  251. COS = math.cos
  252. ACOS = math.acos
  253. SIN = math.sin
  254. ASIN = math.asin
  255. ABS = math.abs
  256. MRANDOM = math.random
  257. FLOOR = math.floor
  258. local rainbowmode = false
  259.  
  260. function Clerp(a, b, t)
  261. local qa = {QuaternionFromCFrame(a)}
  262. local qb = {QuaternionFromCFrame(b)}
  263. local ax, ay, az = a.x, a.y, a.z
  264. local bx, by, bz = b.x, b.y, b.z
  265. local _t = 1 - t
  266. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  267. end
  268. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  269. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  270. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  271. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  272.  
  273. New = function(Object, Parent, Name, Data)
  274. local Object = Instance.new(Object)
  275. for Index, Value in pairs(Data or {}) do
  276. Object[Index] = Value
  277. end
  278. Object.Parent = Parent
  279. Object.Name = Name
  280. return Object
  281. end
  282.  
  283.  
  284. local NewInstance = function(instance,parent,properties)
  285. local inst = Instance.new(instance,parent)
  286. if(properties)then
  287. for i,v in next, properties do
  288. pcall(function() inst[i] = v end)
  289. end
  290. end
  291. return inst;
  292. end
  293. local blueftw = false
  294. SanicScreams = {"Toothpaste","Teal","Bright blueish green","Steel blue","Really black"}
  295. local Sanic = SanicScreams[math.random(1,#SanicScreams)]
  296. local bigblack = false
  297. SonicScreams = {1,1,1,1,1,1,1,1,1,1,1,0}
  298. local Sonic = SonicScreams[math.random(1,#SonicScreams)]
  299.  
  300.  
  301. local Booleans = {CamFollow = true, GyroUse = true}
  302. function lerp(object, newCFrame, alpha)
  303. return object:lerp(newCFrame, alpha)
  304. end
  305. local Directer = Inst("BodyGyro", root)
  306. Directer.MaxTorque = Vec3(0, 0, 0)
  307. Directer.P = 600000
  308. local CPart = Inst("Part")
  309. CPart.Anchored = true
  310. CPart.CanCollide = false
  311. CPart.Locked = true
  312. CPart.Transparency = 1
  313. local chaosmode = false
  314. kan = Instance.new("Sound", char)
  315. kan.Volume = 1.25
  316. kan.TimePosition = 0
  317. kan.PlaybackSpeed = 1
  318. kan.Pitch = 1
  319. kan.SoundId = "rbxassetid://1835397846"
  320. kan.Name = "wrecked"
  321. kan.Looped = true
  322. kan:Play()
  323. function newTheme(ID, timepos, pitch, vol)
  324. local kanz = kan
  325. kanz.PlaybackSpeed = pitch
  326. kanz.Pitch = pitch
  327. kanz.SoundId = ID
  328. kanz.Name = "wrecked"
  329. kanz.Looped = true
  330. end
  331. function CameraShake(Times, Power, PlayerTarget)
  332. coroutine.resume(coroutine.create(function()
  333. FV = Instance.new("BoolValue", PlayerTarget)
  334. FV.Name = "CameraShake"
  335. for ShakeNum = 1, Times do
  336. swait()
  337. local ef = Power
  338. if ef >= 1 then
  339. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  340. else
  341. ef = Power * 10
  342. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  343. end
  344. end
  345. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  346. FV:Destroy()
  347. end))
  348. end
  349. function CameraEnshaking(Length, Intensity)
  350. coroutine.resume(coroutine.create(function()
  351. local intensity = 1 * Intensity
  352. local rotM = 0.01 * Intensity
  353. for i = 0, Length, 0.1 do
  354. swait()
  355. intensity = intensity - 0.05 * Intensity / Length
  356. rotM = rotM - 5.0E-4 * Intensity / Length
  357. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  358. 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)
  359. end
  360. Humanoid.CameraOffset = Vec3(0, 0, 0)
  361. end))
  362. end
  363. function CamShake(Part, Distan, Power, Times)
  364. local de = Part.Position
  365. for i, v in pairs(workspace:children()) do
  366. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  367. for _, c in pairs(v:children()) do
  368. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  369. do
  370. local Noob = v.Humanoid
  371. if Noob ~= nil then
  372. coroutine.resume(coroutine.create(function()
  373. FV = Instance.new("BoolValue", Noob)
  374. FV.Name = "CameraShake"
  375. for ShakeNum = 1, Times do
  376. swait()
  377. local ef = Power
  378. if ef >= 1 then
  379. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  380. else
  381. ef = Power * 10
  382. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  383. end
  384. end
  385. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  386. FV:Destroy()
  387. end))
  388. CameraShake(Times, Power, Noob)
  389. end
  390. end
  391. end
  392. end
  393. end
  394. end
  395. end
  396. function chatfunc(text, color)
  397. local chat = coroutine.wrap(function()
  398. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  399. Character:FindFirstChild("TalkingBillBoard"):destroy()
  400. end
  401. local naeeym2 = Instance.new("BillboardGui", Character)
  402. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  403. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  404. naeeym2.Adornee = Character.Head
  405. naeeym2.Name = "TalkingBillBoard"
  406. local tecks2 = Instance.new("TextLabel", naeeym2)
  407. tecks2.BackgroundTransparency = 1
  408. tecks2.BorderSizePixel = 0
  409. tecks2.Text = ""
  410. tecks2.Font = "SciFi"
  411. tecks2.TextSize = 30
  412. tecks2.TextStrokeTransparency = 0
  413. tecks2.TextColor3 = color
  414. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  415. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  416. local tecks3 = Instance.new("TextLabel", naeeym2)
  417. tecks3.BackgroundTransparency = 1
  418. tecks3.BorderSizePixel = 0
  419. tecks3.Text = ""
  420. tecks3.Font = "SciFi"
  421. tecks3.TextSize = 30
  422. tecks3.TextStrokeTransparency = 0
  423. tecks3.TextColor3 = Color3.new(0, 0, 0)
  424. tecks3.TextStrokeColor3 = color
  425. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  426. coroutine.resume(coroutine.create(function()
  427. while true do
  428. swait(1)
  429. if chaosmode == true then
  430. tecks2.TextColor3 = BrickColor.random().Color
  431. tecks3.TextStrokeColor3 = BrickColor.random().Color
  432. end
  433. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  434. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  435. tecks2.Rotation = math.random(-5, 5)
  436. tecks3.Rotation = math.random(-5, 5)
  437. end
  438. end))
  439. for i = 1, string.len(text) do
  440. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  441. tecks2.Text = string.sub(text, 1, i)
  442. tecks3.Text = string.sub(text, 1, i)
  443. swait(1)
  444. end
  445. wait(1)
  446. local randomrot = math.random(1, 2)
  447. if randomrot == 1 then
  448. for i = 1, 50 do
  449. swait()
  450. tecks2.Rotation = tecks2.Rotation - 0.75
  451. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  452. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  453. tecks3.Rotation = tecks2.Rotation + 0.75
  454. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  455. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  456. end
  457. elseif randomrot == 2 then
  458. for i = 1, 50 do
  459. swait()
  460. tecks2.Rotation = tecks2.Rotation + 0.75
  461. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  462. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  463. tecks3.Rotation = tecks2.Rotation - 0.75
  464. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  465. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  466. end
  467. end
  468. naeeym2:Destroy()
  469. end)
  470. chat()
  471. end
  472. local Create = LoadLibrary("RbxUtility").Create
  473. CFuncs = {
  474. Part = {
  475. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  476. local Part = Create("Part")({
  477. Parent = Parent,
  478. Reflectance = Reflectance,
  479. Transparency = Transparency,
  480. CanCollide = false,
  481. Locked = true,
  482. BrickColor = BrickColor.new(tostring(BColor)),
  483. Name = Name,
  484. Size = Size,
  485. Material = Material
  486. })
  487. RemoveOutlines(Part)
  488. return Part
  489. end
  490. },
  491. Mesh = {
  492. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  493. local Msh = Create(Mesh)({
  494. Parent = Part,
  495. Offset = OffSet,
  496. Scale = Scale
  497. })
  498. if Mesh == "SpecialMesh" then
  499. Msh.MeshType = MeshType
  500. Msh.MeshId = MeshId
  501. end
  502. return Msh
  503. end
  504. },
  505. Mesh = {
  506. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  507. local Msh = Create(Mesh)({
  508. Parent = Part,
  509. Offset = OffSet,
  510. Scale = Scale
  511. })
  512. if Mesh == "SpecialMesh" then
  513. Msh.MeshType = MeshType
  514. Msh.MeshId = MeshId
  515. end
  516. return Msh
  517. end
  518. },
  519. Weld = {
  520. Create = function(Parent, Part0, Part1, C0, C1)
  521. local Weld = Create("Weld")({
  522. Parent = Parent,
  523. Part0 = Part0,
  524. Part1 = Part1,
  525. C0 = C0,
  526. C1 = C1
  527. })
  528. return Weld
  529. end
  530. },
  531. Sound = {
  532. Create = function(id, par, vol, pit)
  533. coroutine.resume(coroutine.create(function()
  534. local S = Create("Sound")({
  535. Volume = vol,
  536. Pitch = pit or 1,
  537. SoundId = id,
  538. Parent = par or workspace
  539. })
  540. wait()
  541. S:play()
  542. game:GetService("Debris"):AddItem(S, 10)
  543. end))
  544. end
  545. },
  546. LongSound = {
  547. Create = function(id, par, vol, pit)
  548. coroutine.resume(coroutine.create(function()
  549. local S = Create("Sound")({
  550. Volume = vol,
  551. Pitch = pit or 1,
  552. SoundId = id,
  553. Parent = par or workspace
  554. })
  555. wait()
  556. S:play()
  557. game:GetService("Debris"):AddItem(S, 30)
  558. end))
  559. end
  560. },
  561. ParticleEmitter = {
  562. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  563. local fp = Create("ParticleEmitter")({
  564. Parent = Parent,
  565. Color = ColorSequence.new(Color1, Color2),
  566. LightEmission = LightEmission,
  567. Size = Size,
  568. Texture = Texture,
  569. Transparency = Transparency,
  570. ZOffset = ZOffset,
  571. Acceleration = Accel,
  572. Drag = Drag,
  573. LockedToPart = LockedToPart,
  574. VelocityInheritance = VelocityInheritance,
  575. EmissionDirection = EmissionDirection,
  576. Enabled = Enabled,
  577. Lifetime = LifeTime,
  578. Rate = Rate,
  579. Rotation = Rotation,
  580. RotSpeed = RotSpeed,
  581. Speed = Speed,
  582. VelocitySpread = VelocitySpread
  583. })
  584. return fp
  585. end
  586. },
  587. CreateTemplate = {}
  588. }
  589. function New(Object, Parent, Name, Data)
  590. local Object = Instance.new(Object)
  591. for Index, Value in pairs(Data or {}) do
  592. Object[Index] = Value
  593. end
  594. Object.Parent = Parent
  595. Object.Name = Name
  596. return Object
  597. end
  598. local halocolor = BrickColor.new("Pastel light blue")
  599. local halocolor2 = BrickColor.new("Cool yellow")
  600. local starcolor = BrickColor.new("Bright yellow")
  601. local lunacolor = BrickColor.new("Navy blue")
  602. local lunacolor2 = BrickColor.new("Bright blue")
  603. local wepcolor = BrickColor.new("Really black")
  604. local maincolor = BrickColor.new("Really black")
  605. local m = Instance.new("Model", char)
  606. local m2 = Instance.new("Model", char)
  607. local m3 = Instance.new("Model", char)
  608. local mw1 = Instance.new("Model", char)
  609. local mw2 = Instance.new("Model", char)
  610. local extrawingmod1 = Instance.new("Model", char)
  611. local extrawingmod2 = Instance.new("Model", char)
  612. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  613. local p = Instance.new("Part")
  614. p.TopSurface = 0
  615. p.BottomSurface = 0
  616. p.Parent = parent
  617. p.Size = Vector3.new(0.1, 0.1, 0.1)
  618. p.Transparency = transparency
  619. p.Reflectance = reflectance
  620. p.CanCollide = false
  621. p.Locked = true
  622. p.BrickColor = brickcolor
  623. p.Material = material
  624. return p
  625. end
  626. function CreateMesh(parent, meshtype, x1, y1, z1)
  627. local mesh = Instance.new("SpecialMesh", parent)
  628. mesh.MeshType = meshtype
  629. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  630. return mesh
  631. end
  632. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  633. local mesh = Instance.new("SpecialMesh", parent)
  634. mesh.MeshType = "FileMesh"
  635. mesh.MeshId = meshid
  636. mesh.Scale = Vector3.new(x1, y1, z1)
  637. return mesh
  638. end
  639. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  640. local mesh = Instance.new("SpecialMesh", parent)
  641. mesh.MeshType = "FileMesh"
  642. mesh.MeshId = meshid
  643. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  644. mesh.Scale = Vector3.new(x1, y1, z1)
  645. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  646. return mesh
  647. end
  648. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  649. local weld = Instance.new("Weld")
  650. weld.Parent = parent
  651. weld.Part0 = part0
  652. weld.Part1 = part1
  653. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  654. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  655. return weld
  656. end
  657. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  658. CreateMesh(handle, "Brick", 0, 0, 0)
  659. 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))
  660. local valuaring = 10
  661. for i = 0, 49 do
  662. valuaring = valuaring + 10
  663. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  664. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  665. 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))
  666. end
  667. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  668. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  669. 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))
  670. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  671. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  672. 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))
  673. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  674. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  675. 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))
  676. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  677. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  678. 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))
  679. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  680. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  681. 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))
  682. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  683. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  684. 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))
  685. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  686. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  687. 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))
  688. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  689. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  690. 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))
  691. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  692. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  693. 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))
  694. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  695. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  696. 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))
  697. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  698. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  699. 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))
  700. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  701. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  702. 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))
  703. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  704. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  705. 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))
  706. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  707. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  708. 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))
  709. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  710. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  711. 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))
  712. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  713. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  714. 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))
  715. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  716. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  717. 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))
  718. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  719. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  720. 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))
  721. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  722. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  723. 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))
  724. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  725. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  726. 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))
  727. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  728. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  729. 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))
  730. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  731. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  732. 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))
  733. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  734. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  735. 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))
  736. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  737. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  738. 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))
  739. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  740. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  741. 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))
  742. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  743. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  744. 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))
  745. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  746. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  747. 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))
  748. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  749. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  750. 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))
  751. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  752. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  753. 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))
  754. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  755. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  756. 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))
  757. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  758. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  759. 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))
  760. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  761. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  762. 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))
  763. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  764. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  765. 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))
  766. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  767. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  768. 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))
  769. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  770. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  771. 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))
  772. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  773. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  774. 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))
  775. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  776. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  777. 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))
  778. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  779. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  780. 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))
  781. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  782. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  783. 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))
  784. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  785. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  786. 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))
  787. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  788. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  789. 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))
  790. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  791. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  792. 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))
  793. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  794. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  795. 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))
  796. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  797. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  798. 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))
  799. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  800. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  801. 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))
  802. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  803. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  804. 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))
  805. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  806. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  807. 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))
  808. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  809. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  810. 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))
  811. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  812. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  813. 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))
  814. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  815. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  816. 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))
  817. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  818. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  819. 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))
  820. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  821. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  822. 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))
  823. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  824. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  825. 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))
  826. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  827. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  828. 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))
  829. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  830. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  831. 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))
  832. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  833. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  834. 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))
  835. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  836. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  837. 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))
  838. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  839. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  840. 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))
  841. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  842. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  843. 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))
  844. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  845. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  846. 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))
  847. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  848. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  849. 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))
  850. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  851. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  852. 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))
  853. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  854. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  855. 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))
  856. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  857. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  858. 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))
  859. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  860. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  861. 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))
  862. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  863. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  864. 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))
  865. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  866. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  867. 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))
  868. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  869. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  870. CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  871. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  872. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  873. 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))
  874. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  875. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  876. 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))
  877. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  878. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  879. 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))
  880. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  881. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  882. 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))
  883. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  884. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  885. 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))
  886. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  887. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  888. 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))
  889. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  890. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  891. 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))
  892. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  893. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  894. 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))
  895. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  896. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  897. 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))
  898. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  899. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  900. 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))
  901. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  902. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  903. 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))
  904. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  905. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  906. 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))
  907. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  908. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  909. 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))
  910. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  911. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  912. 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))
  913. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  914. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  915. 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))
  916. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  917. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  918. 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))
  919. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  920. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  921. 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))
  922. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  923. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  924. 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))
  925. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  926. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  927. 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))
  928. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  929. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  930. 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))
  931. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  932. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  933. 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))
  934. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  935. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  936. 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))
  937. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  938. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  939. 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))
  940. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  941. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  942. 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))
  943. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  944. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  945. 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))
  946. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  947. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  948. 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))
  949. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  950. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  951. 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))
  952. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  953. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  954. 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))
  955. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  956. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  957. 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))
  958. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  959. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  960. 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))
  961. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  962. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  963. 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))
  964. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  965. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  966. 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))
  967. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  968. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  969. 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))
  970. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  971. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  972. 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))
  973. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  974. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  975. 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))
  976. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  977. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  978. 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))
  979. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  980. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  981. 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))
  982. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  983. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  984. 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))
  985. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  986. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  987. 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))
  988. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  989. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  990. 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))
  991. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  992. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  993. 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))
  994. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  995. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  996. 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))
  997. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  998. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  999. 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))
  1000. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1001. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1002. 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))
  1003. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1004. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1005. 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))
  1006. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1007. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1008. 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))
  1009. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1010. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1011. 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))
  1012. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1013. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1014. 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))
  1015. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1016. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1017. 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))
  1018. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1019. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1020. 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))
  1021. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1022. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1023. 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))
  1024. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1025. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1026. 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))
  1027. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1028. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1029. 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))
  1030. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1031. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1032. 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))
  1033. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1034. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1035. 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))
  1036. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1037. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1038. 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))
  1039. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1040. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1041. 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))
  1042. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1043. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1044. 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))
  1045. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1046. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1047. 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))
  1048. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1049. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1050. 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))
  1051. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1052. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1053. 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))
  1054. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1055. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1056. 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))
  1057. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1058. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1059. 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))
  1060. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1061. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1062. 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))
  1063. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1064. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1065. 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))
  1066. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1067. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1068. 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))
  1069. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1070. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1071. 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))
  1072. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1073. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1074. 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))
  1075. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1076. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1077. 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))
  1078. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1079. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1080. 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))
  1081. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1082. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1083. 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))
  1084. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1085. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1086. 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))
  1087. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1088. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1089. 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))
  1090. for i, v in pairs(m:GetChildren()) do
  1091. if v:IsA("Part") then
  1092. v.BrickColor = BrickColor.new("Really black")
  1093. v.Material = "Glass"
  1094. end
  1095. end
  1096. for i, v in pairs(m2:GetChildren()) do
  1097. if v:IsA("Part") then
  1098. v.BrickColor = BrickColor.new("Crimson")
  1099. v.Material = "Granite"
  1100. end
  1101. end
  1102. for i, v in pairs(m3:GetChildren()) do
  1103. if v:IsA("Part") then
  1104. v.BrickColor = BrickColor.new("Pink")
  1105. v.Material = "Neon"
  1106. end
  1107. end
  1108. for i, v in pairs(mw2:GetChildren()) do
  1109. if v:IsA("Part") then
  1110. v.BrickColor = BrickColor.new("Pink")
  1111. v.Material = "Neon"
  1112. end
  1113. end
  1114. for i, v in pairs(mw1:GetChildren()) do
  1115. if v:IsA("Part") then
  1116. v.Transparency = 1
  1117. v.BrickColor = BrickColor.new("Pink")
  1118. v.Material = "Neon"
  1119. end
  1120. end
  1121. for i, v in pairs(extrawingmod1:GetChildren()) do
  1122. if v:IsA("Part") then
  1123. v.Transparency = 1
  1124. v.BrickColor = BrickColor.new("White")
  1125. v.Material = "Neon"
  1126. end
  1127. end
  1128. for i, v in pairs(extrawingmod2:GetChildren()) do
  1129. if v:IsA("Part") then
  1130. v.Transparency = 1
  1131. v.BrickColor = BrickColor.new("White")
  1132. v.Material = "Neon"
  1133. end
  1134. end
  1135. function RemoveOutlines(part)
  1136. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1137. end
  1138. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1139. local Part = Create("Part")({
  1140. Parent = Parent,
  1141. Reflectance = Reflectance,
  1142. Transparency = Transparency,
  1143. CanCollide = false,
  1144. Locked = true,
  1145. BrickColor = BrickColor.new(tostring(BColor)),
  1146. Name = Name,
  1147. Size = Size,
  1148. Material = Material
  1149. })
  1150. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1151. RemoveOutlines(Part)
  1152. return Part
  1153. end
  1154. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1155. local Msh = Create(Mesh)({
  1156. Parent = Part,
  1157. Offset = OffSet,
  1158. Scale = Scale
  1159. })
  1160. if Mesh == "SpecialMesh" then
  1161. Msh.MeshType = MeshType
  1162. Msh.MeshId = MeshId
  1163. end
  1164. return Msh
  1165. end
  1166. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1167. local Weld = Create("Weld")({
  1168. Parent = Parent,
  1169. Part0 = Part0,
  1170. Part1 = Part1,
  1171. C0 = C0,
  1172. C1 = C1
  1173. })
  1174. return Weld
  1175. end
  1176. Player = game:GetService("Players").LocalPlayer
  1177. Character = Player.Character
  1178. PlayerGui = Player.PlayerGui
  1179. Backpack = Player.Backpack
  1180. Torso = Character.Torso
  1181. Head = Character.Head
  1182. Humanoid = Character.Humanoid
  1183. m = Instance.new("Model", Character)
  1184. LeftArm = Character["Left Arm"]
  1185. LeftLeg = Character["Left Leg"]
  1186. RightArm = Character["Right Arm"]
  1187. RightLeg = Character["Right Leg"]
  1188. LS = Torso["Left Shoulder"]
  1189. LH = Torso["Left Hip"]
  1190. RS = Torso["Right Shoulder"]
  1191. RH = Torso["Right Hip"]
  1192. Face = Head.face
  1193. Neck = Torso.Neck
  1194. it = Instance.new
  1195. attacktype = 1
  1196. vt = Vector3.new
  1197. cf = CFrame.new
  1198. euler = CFrame.fromEulerAnglesXYZ
  1199. angles = CFrame.Angles
  1200. cloaked = false
  1201. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1202. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1203. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1204. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1205. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1206. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1207. RootPart = Character.HumanoidRootPart
  1208. RootJoint = RootPart.RootJoint
  1209. RootCF = euler(-1.57, 0, 3.14)
  1210. attack = false
  1211. attackdebounce = false
  1212. deb = false
  1213. equipped = true
  1214. hand = false
  1215. MMouse = nil
  1216. combo = 0
  1217. mana = 0
  1218. trispeed = 0.2
  1219. attackmode = "none"
  1220. local idle = 0
  1221. local Anim = "Idle"
  1222. local Effects = {}
  1223. local gun = false
  1224. local shoot = false
  1225. local sine = 0
  1226. local change = 1
  1227. player = nil
  1228. local toggleTag = true
  1229. local txt = Instance.new("BillboardGui", Head)
  1230. txt.Adornee = nil
  1231. txt.Name = "NameDetect"
  1232. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1233. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  1234. local text = Instance.new("TextLabel", txt)
  1235. text.Size = UDim2.new(5, 0, 3.5, 0)
  1236. text.FontSize = "Size8"
  1237. text.TextScaled = true
  1238. text.TextTransparency = 0
  1239. text.BackgroundTransparency = 1
  1240. text.TextTransparency = 0
  1241. text.TextStrokeTransparency = 0
  1242. text.Font = "Fantasy"
  1243. text.TextStrokeColor3 = Color3.fromRGB(255, 152, 220)
  1244. text.TextColor3 = Color3.new(0, 0, 0)
  1245. text.Text = "Lovely~"
  1246. function RecolorTextAndRename(name, col1, col2)
  1247. text.TextStrokeColor3 = col2
  1248. text.TextColor3 = col1
  1249. text.Text = name
  1250. end
  1251. mouse = Player:GetMouse()
  1252. RSH, LSH = nil, nil
  1253. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  1254. RW.Name = "Right Shoulder"
  1255. LW.Name = "Left Shoulder"
  1256. LH = Torso["Left Hip"]
  1257. RH = Torso["Right Hip"]
  1258. TorsoColor = Torso.BrickColor
  1259. function NoOutline(Part)
  1260. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1261. end
  1262. player = Player
  1263. ch = Character
  1264. RSH = ch.Torso["Right Shoulder"]
  1265. LSH = ch.Torso["Left Shoulder"]
  1266. RSH.Parent = nil
  1267. LSH.Parent = nil
  1268. RW.Name = "Right Shoulder"
  1269. RW.Part0 = ch.Torso
  1270. RW.C0 = cf(1.5, 0.5, 0)
  1271. RW.C1 = cf(0, 0.5, 0)
  1272. RW.Part1 = ch["Right Arm"]
  1273. RW.Parent = ch.Torso
  1274. LW.Name = "Left Shoulder"
  1275. LW.Part0 = ch.Torso
  1276. LW.C0 = cf(-1.5, 0.5, 0)
  1277. LW.C1 = cf(0, 0.5, 0)
  1278. LW.Part1 = ch["Left Arm"]
  1279. LW.Parent = ch.Torso
  1280. local Stats = Instance.new("BoolValue")
  1281. Stats.Name = "Stats"
  1282. Stats.Parent = Character
  1283. local Atk = Instance.new("NumberValue")
  1284. Atk.Name = "Damage"
  1285. Atk.Parent = Stats
  1286. Atk.Value = 1
  1287. local Def = Instance.new("NumberValue")
  1288. Def.Name = "Defense"
  1289. Def.Parent = Stats
  1290. Def.Value = 1
  1291. local Speed = Instance.new("NumberValue")
  1292. Speed.Name = "Speed"
  1293. Speed.Parent = Stats
  1294. Speed.Value = 1
  1295. local Mvmt = Instance.new("NumberValue")
  1296. Mvmt.Name = "Movement"
  1297. Mvmt.Parent = Stats
  1298. Mvmt.Value = 1
  1299. local donum = 0
  1300. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1301. local fp = it("Part")
  1302. fp.formFactor = formfactor
  1303. fp.Parent = parent
  1304. fp.Reflectance = reflectance
  1305. fp.Transparency = transparency
  1306. fp.CanCollide = false
  1307. fp.Locked = true
  1308. fp.BrickColor = brickcolor
  1309. fp.Name = name
  1310. fp.Size = size
  1311. fp.Position = Torso.Position
  1312. NoOutline(fp)
  1313. fp.Material = "SmoothPlastic"
  1314. fp:BreakJoints()
  1315. return fp
  1316. end
  1317. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1318. local mesh = it(Mesh)
  1319. mesh.Parent = part
  1320. if Mesh == "SpecialMesh" then
  1321. mesh.MeshType = meshtype
  1322. if meshid ~= "nil" then
  1323. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1324. end
  1325. end
  1326. mesh.Offset = offset
  1327. mesh.Scale = scale
  1328. return mesh
  1329. end
  1330. function weld(parent, part0, part1, c0)
  1331. local weld = it("Weld")
  1332. weld.Parent = parent
  1333. weld.Part0 = part0
  1334. weld.Part1 = part1
  1335. weld.C0 = c0
  1336. return weld
  1337. end
  1338. local Color1 = Torso.BrickColor
  1339. local bodvel = Instance.new("BodyVelocity")
  1340. local bg = Instance.new("BodyGyro")
  1341. function swait(num)
  1342. if num == 0 or num == nil then
  1343. game:service("RunService").Stepped:wait(0)
  1344. else
  1345. for i = 0, num do
  1346. game:service("RunService").Stepped:wait(0)
  1347. end
  1348. end
  1349. end
  1350. local r = 255
  1351. local g = 0
  1352. local b = 0
  1353. coroutine.resume(coroutine.create(function()
  1354. while wait() do
  1355. for i = 0, 50.8 do
  1356. swait()
  1357. g = g + 5
  1358. end
  1359. for i = 0, 50.8 do
  1360. swait()
  1361. r = r - 5
  1362. end
  1363. for i = 0, 50.8 do
  1364. swait()
  1365. b = b + 5
  1366. end
  1367. for i = 0, 50.8 do
  1368. swait()
  1369. g = g - 5
  1370. end
  1371. for i = 0, 50.8 do
  1372. swait()
  1373. r = r + 5
  1374. end
  1375. for i = 0, 50.8 do
  1376. swait()
  1377. b = b - 5
  1378. end
  1379. end
  1380. end))
  1381. function so(id, par, vol, pit)
  1382. coroutine.resume(coroutine.create(function()
  1383. local sou = Instance.new("Sound", par or workspace)
  1384. sou.Volume = vol
  1385. sou.Pitch = pit or 1
  1386. sou.SoundId = id
  1387. swait()
  1388. sou:play()
  1389. game:GetService("Debris"):AddItem(sou, 6)
  1390. end))
  1391. end
  1392. function clerp(a, b, t)
  1393. local qa = {
  1394. QuaternionFromCFrame(a)
  1395. }
  1396. local qb = {
  1397. QuaternionFromCFrame(b)
  1398. }
  1399. local ax, ay, az = a.x, a.y, a.z
  1400. local bx, by, bz = b.x, b.y, b.z
  1401. local _t = 1 - t
  1402. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1403. end
  1404. function QuaternionFromCFrame(cf)
  1405. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1406. local trace = m00 + m11 + m22
  1407. if trace > 0 then
  1408. local s = math.sqrt(1 + trace)
  1409. local recip = 0.5 / s
  1410. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1411. else
  1412. local i = 0
  1413. if m00 < m11 then
  1414. i = 1
  1415. end
  1416. if m22 > (i == 0 and m00 or m11) then
  1417. i = 2
  1418. end
  1419. if i == 0 then
  1420. local s = math.sqrt(m00 - m11 - m22 + 1)
  1421. local recip = 0.5 / s
  1422. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1423. elseif i == 1 then
  1424. local s = math.sqrt(m11 - m22 - m00 + 1)
  1425. local recip = 0.5 / s
  1426. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1427. elseif i == 2 then
  1428. local s = math.sqrt(m22 - m00 - m11 + 1)
  1429. local recip = 0.5 / s
  1430. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1431. end
  1432. end
  1433. end
  1434. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1435. local xs, ys, zs = x + x, y + y, z + z
  1436. local wx, wy, wz = w * xs, w * ys, w * zs
  1437. local xx = x * xs
  1438. local xy = x * ys
  1439. local xz = x * zs
  1440. local yy = y * ys
  1441. local yz = y * zs
  1442. local zz = z * zs
  1443. 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))
  1444. end
  1445. function QuaternionSlerp(a, b, t)
  1446. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1447. local startInterp, finishInterp
  1448. if cosTheta >= 1.0E-4 then
  1449. if 1 - cosTheta > 1.0E-4 then
  1450. local theta = math.acos(cosTheta)
  1451. local invSinTheta = 1 / math.sin(theta)
  1452. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1453. finishInterp = math.sin(t * theta) * invSinTheta
  1454. else
  1455. startInterp = 1 - t
  1456. finishInterp = t
  1457. end
  1458. elseif 1 + cosTheta > 1.0E-4 then
  1459. local theta = math.acos(-cosTheta)
  1460. local invSinTheta = 1 / math.sin(theta)
  1461. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1462. finishInterp = math.sin(t * theta) * invSinTheta
  1463. else
  1464. startInterp = t - 1
  1465. finishInterp = t
  1466. end
  1467. 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
  1468. end
  1469. local CFrameFromTopBack = function(at, top, back)
  1470. local right = top:Cross(back)
  1471. 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)
  1472. end
  1473. function Triangle(a, b, c)
  1474. local edg1 = (c - a):Dot((b - a).unit)
  1475. local edg2 = (a - b):Dot((c - b).unit)
  1476. local edg3 = (b - c):Dot((a - c).unit)
  1477. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1478. a, b = a, b
  1479. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1480. a, b, c = b, c, a
  1481. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1482. a, b, c = c, a, b
  1483. else
  1484. assert(false, "unreachable")
  1485. end
  1486. local len1 = (c - a):Dot((b - a).unit)
  1487. local len2 = (b - a).magnitude - len1
  1488. local width = (a + (b - a).unit * len1 - c).magnitude
  1489. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1490. local list = {}
  1491. if len1 > 0.01 then
  1492. local w1 = Instance.new("WedgePart", m)
  1493. game:GetService("Debris"):AddItem(w1, 5)
  1494. w1.Material = "SmoothPlastic"
  1495. w1.FormFactor = "Custom"
  1496. w1.BrickColor = BrickColor.new("Pink")
  1497. w1.Transparency = 0
  1498. w1.Reflectance = 0
  1499. w1.Material = "SmoothPlastic"
  1500. w1.CanCollide = false
  1501. local l1 = Instance.new("PointLight", w1)
  1502. l1.Color = Color3.new(170, 0, 0)
  1503. NoOutline(w1)
  1504. local sz = Vector3.new(0.2, width, len1)
  1505. w1.Size = sz
  1506. local sp = Instance.new("SpecialMesh", w1)
  1507. sp.MeshType = "Wedge"
  1508. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1509. w1:BreakJoints()
  1510. w1.Anchored = true
  1511. w1.Parent = workspace
  1512. w1.Transparency = 0.7
  1513. table.insert(Effects, {
  1514. w1,
  1515. "Disappear",
  1516. 0.01
  1517. })
  1518. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1519. table.insert(list, w1)
  1520. end
  1521. if len2 > 0.01 then
  1522. local w2 = Instance.new("WedgePart", m)
  1523. game:GetService("Debris"):AddItem(w2, 5)
  1524. w2.Material = "SmoothPlastic"
  1525. w2.FormFactor = "Custom"
  1526. w2.BrickColor = BrickColor.new("Pink")
  1527. w2.Transparency = 0
  1528. w2.Reflectance = 0
  1529. w2.Material = "SmoothPlastic"
  1530. w2.CanCollide = false
  1531. local l2 = Instance.new("PointLight", w2)
  1532. l2.Color = Color3.new(170, 0, 0)
  1533. NoOutline(w2)
  1534. local sz = Vector3.new(0.2, width, len2)
  1535. w2.Size = sz
  1536. local sp = Instance.new("SpecialMesh", w2)
  1537. sp.MeshType = "Wedge"
  1538. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1539. w2:BreakJoints()
  1540. w2.Anchored = true
  1541. w2.Parent = workspace
  1542. w2.Transparency = 0.7
  1543. table.insert(Effects, {
  1544. w2,
  1545. "Disappear",
  1546. 0.01
  1547. })
  1548. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1549. table.insert(list, w2)
  1550. end
  1551. return unpack(list)
  1552. end
  1553. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1554. if hit.Parent == nil then
  1555. return
  1556. end
  1557. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1558. for _, v in pairs(hit.Parent:children()) do
  1559. if v:IsA("Humanoid") then
  1560. h = v
  1561. end
  1562. end
  1563. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1564. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1565. return
  1566. end
  1567. local c = Create("ObjectValue")({
  1568. Name = "creator",
  1569. Value = game:service("Players").LocalPlayer,
  1570. Parent = h
  1571. })
  1572. game:GetService("Debris"):AddItem(c, 0.5)
  1573. if HitSound ~= nil and HitPitch ~= nil then
  1574. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1575. end
  1576. local Damage = math.random(minim, maxim)
  1577. local blocked = false
  1578. local block = hit.Parent:findFirstChild("Block")
  1579. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1580. blocked = true
  1581. block.Value = block.Value - 1
  1582. print(block.Value)
  1583. end
  1584. if blocked == false then
  1585. HitHealth = h.Health
  1586. h.Health = h.Health - Damage
  1587. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1588. print("gained kill")
  1589. end
  1590. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1591. else
  1592. h.Health = h.Health - Damage / 2
  1593. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1594. end
  1595. if Type == "Knockdown" then
  1596. local hum = hit.Parent.Humanoid
  1597. hum.PlatformStand = true
  1598. coroutine.resume(coroutine.create(function(HHumanoid)
  1599. swait(1)
  1600. HHumanoid.PlatformStand = false
  1601. end), hum)
  1602. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1603. local bodvol = Create("BodyVelocity")({
  1604. velocity = angle * knockback,
  1605. P = 5000,
  1606. maxForce = Vector3.new(8000, 8000, 8000),
  1607. Parent = hit
  1608. })
  1609. local rl = Create("BodyAngularVelocity")({
  1610. P = 3000,
  1611. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1612. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1613. Parent = hit
  1614. })
  1615. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1616. game:GetService("Debris"):AddItem(rl, 0.5)
  1617. elseif Type == "Normal" then
  1618. local vp = Create("BodyVelocity")({
  1619. P = 500,
  1620. maxForce = Vector3.new(math.huge, 0, math.huge),
  1621. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1622. })
  1623. if knockback > 0 then
  1624. vp.Parent = hit.Parent.Head
  1625. end
  1626. game:GetService("Debris"):AddItem(vp, 0.5)
  1627. elseif Type == "Up" then
  1628. local bodyVelocity = Create("BodyVelocity")({
  1629. velocity = Vector3.new(0, 20, 0),
  1630. P = 5000,
  1631. maxForce = Vector3.new(8000, 8000, 8000),
  1632. Parent = hit
  1633. })
  1634. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1635. local bodyVelocity = Create("BodyVelocity")({
  1636. velocity = Vector3.new(0, 20, 0),
  1637. P = 5000,
  1638. maxForce = Vector3.new(8000, 8000, 8000),
  1639. Parent = hit
  1640. })
  1641. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1642. elseif Type == "Leech" then
  1643. local hum = hit.Parent.Humanoid
  1644. if hum ~= nil then
  1645. for i = 0, 2 do
  1646. 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)
  1647. end
  1648. Humanoid.Health = Humanoid.Health + 10
  1649. end
  1650. elseif Type == "UpKnock" then
  1651. local hum = hit.Parent.Humanoid
  1652. hum.PlatformStand = true
  1653. if hum ~= nil then
  1654. hitr = true
  1655. end
  1656. coroutine.resume(coroutine.create(function(HHumanoid)
  1657. swait(5)
  1658. HHumanoid.PlatformStand = false
  1659. hitr = false
  1660. end), hum)
  1661. local bodyVelocity = Create("BodyVelocity")({
  1662. velocity = Vector3.new(0, 20, 0),
  1663. P = 5000,
  1664. maxForce = Vector3.new(8000, 8000, 8000),
  1665. Parent = hit
  1666. })
  1667. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1668. local bodyVelocity = Create("BodyVelocity")({
  1669. velocity = Vector3.new(0, 20, 0),
  1670. P = 5000,
  1671. maxForce = Vector3.new(8000, 8000, 8000),
  1672. Parent = hit
  1673. })
  1674. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1675. elseif Type == "Snare" then
  1676. local bp = Create("BodyPosition")({
  1677. P = 2000,
  1678. D = 100,
  1679. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1680. position = hit.Parent.Torso.Position,
  1681. Parent = hit.Parent.Torso
  1682. })
  1683. game:GetService("Debris"):AddItem(bp, 1)
  1684. elseif Type == "Slashnare" then
  1685. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  1686. for i = 1, math.random(4, 5) do
  1687. 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)
  1688. end
  1689. local bp = Create("BodyPosition")({
  1690. P = 2000,
  1691. D = 100,
  1692. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1693. position = hit.Parent.Torso.Position,
  1694. Parent = hit.Parent.Torso
  1695. })
  1696. game:GetService("Debris"):AddItem(bp, 1)
  1697. elseif Type == "Spike" then
  1698. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1699. local bp = Create("BodyPosition")({
  1700. P = 2000,
  1701. D = 100,
  1702. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1703. position = hit.Parent.Torso.Position,
  1704. Parent = hit.Parent.Torso
  1705. })
  1706. game:GetService("Debris"):AddItem(bp, 1)
  1707. elseif Type == "Freeze" then
  1708. local BodPos = Create("BodyPosition")({
  1709. P = 50000,
  1710. D = 1000,
  1711. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1712. position = hit.Parent.Torso.Position,
  1713. Parent = hit.Parent.Torso
  1714. })
  1715. local BodGy = Create("BodyGyro")({
  1716. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1717. P = 20000,
  1718. Parent = hit.Parent.Torso,
  1719. cframe = hit.Parent.Torso.CFrame
  1720. })
  1721. hit.Parent.Torso.Anchored = true
  1722. coroutine.resume(coroutine.create(function(Part)
  1723. swait(1.5)
  1724. Part.Anchored = false
  1725. end), hit.Parent.Torso)
  1726. game:GetService("Debris"):AddItem(BodPos, 3)
  1727. game:GetService("Debris"):AddItem(BodGy, 3)
  1728. end
  1729. local debounce = Create("BoolValue")({
  1730. Name = "DebounceHit",
  1731. Parent = hit.Parent,
  1732. Value = true
  1733. })
  1734. game:GetService("Debris"):AddItem(debounce, Delay)
  1735. c = Instance.new("ObjectValue")
  1736. c.Name = "creator"
  1737. c.Value = Player
  1738. c.Parent = h
  1739. game:GetService("Debris"):AddItem(c, 0.5)
  1740. end
  1741. end
  1742. function ShowDamage(Pos, Text, Time, Color)
  1743. local Rate = 0.03333333333333333
  1744. local Pos = Pos or Vector3.new(0, 0, 0)
  1745. local Text = Text or ""
  1746. local Time = Time or 2
  1747. local Color = Color or Color3.new(1, 0, 1)
  1748. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1749. EffectPart.Anchored = true
  1750. local BillboardGui = Create("BillboardGui")({
  1751. Size = UDim2.new(3, 0, 3, 0),
  1752. Adornee = EffectPart,
  1753. Parent = EffectPart
  1754. })
  1755. local TextLabel = Create("TextLabel")({
  1756. BackgroundTransparency = 1,
  1757. Size = UDim2.new(1, 0, 1, 0),
  1758. Text = Text,
  1759. TextColor3 = Color,
  1760. TextScaled = true,
  1761. Font = Enum.Font.ArialBold,
  1762. Parent = BillboardGui
  1763. })
  1764. game.Debris:AddItem(EffectPart, Time + 0.1)
  1765. EffectPart.Parent = game:GetService("Workspace")
  1766. delay(0, function()
  1767. local Frames = Time / Rate
  1768. for Frame = 1, Frames do
  1769. wait(Rate)
  1770. local Percent = Frame / Frames
  1771. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1772. TextLabel.TextTransparency = Percent
  1773. end
  1774. if EffectPart and EffectPart.Parent then
  1775. EffectPart:Destroy()
  1776. end
  1777. end)
  1778. end
  1779. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1780. for _, c in pairs(workspace:children()) do
  1781. local hum = c:findFirstChildOfClass("Humanoid")
  1782. if hum ~= nil then
  1783. local head = c:findFirstChild("Head")
  1784. if head ~= nil then
  1785. local targ = head.Position - Part.Position
  1786. local mag = targ.magnitude
  1787. if magni >= mag and c.Name ~= Player.Name then
  1788. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1789. end
  1790. end
  1791. end
  1792. end
  1793. end
  1794. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1795. for _, c in pairs(workspace:children()) do
  1796. local hum = c:findFirstChild("Humanoid")
  1797. if hum ~= nil then
  1798. local head = c:findFirstChild("Torso")
  1799. if head ~= nil then
  1800. local targ = head.Position - Part.Position
  1801. local mag = targ.magnitude
  1802. if magni >= mag and c.Name ~= Player.Name then
  1803. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  1804. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1805. end
  1806. end
  1807. end
  1808. end
  1809. end
  1810. function rayCast(Pos, Dir, Max, Ignore)
  1811. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1812. end
  1813. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  1814. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1815. prt.Anchored = true
  1816. prt.CFrame = cframe
  1817. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1818. game:GetService("Debris"):AddItem(prt, 2)
  1819. CF = prt.CFrame
  1820. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  1821. for i = 0, 1, 0.2 do
  1822. wait()
  1823. Part.CFrame = CF * cf(0, 0, -0.4)
  1824. end
  1825. for i = 0, 1, delay do
  1826. wait()
  1827. Mesh.Scale = Mesh.Scale
  1828. end
  1829. for i = 0, 1, 0.1 do
  1830. wait()
  1831. Part.Transparency = i
  1832. end
  1833. Part.Parent = nil
  1834. end), prt, msh, CF)
  1835. end
  1836. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1837. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1838. prt.Anchored = true
  1839. prt.Material = "Neon"
  1840. prt.CFrame = cframe
  1841. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1842. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1843. game:GetService("Debris"):AddItem(prt, 5)
  1844. coroutine.resume(coroutine.create(function(Part, Mesh)
  1845. for i = 0, 1, delay do
  1846. swait()
  1847. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1848. Part.Transparency = i
  1849. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1850. end
  1851. Part.Parent = nil
  1852. end), prt, msh)
  1853. end
  1854. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1855. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1856. prt.Anchored = true
  1857. prt.Material = "Neon"
  1858. prt.CFrame = cframe
  1859. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1860. game:GetService("Debris"):AddItem(prt, 5)
  1861. coroutine.resume(coroutine.create(function(Part, Mesh)
  1862. local rtype = rottype
  1863. for i = 0, 1, delay do
  1864. swait()
  1865. if rtype == 1 then
  1866. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1867. elseif rtype == 2 then
  1868. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1869. end
  1870. Part.Transparency = i
  1871. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1872. end
  1873. Part.Parent = nil
  1874. end), prt, msh)
  1875. end
  1876. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1877. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1878. prt.Anchored = true
  1879. prt.CFrame = cframe
  1880. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1881. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1882. game:GetService("Debris"):AddItem(prt, 5)
  1883. coroutine.resume(coroutine.create(function(Part, Mesh)
  1884. for i = 0, 1, delay do
  1885. wait()
  1886. Part.Transparency = i
  1887. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1888. end
  1889. Part.Parent = nil
  1890. end), prt, msh)
  1891. end
  1892. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1893. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1894. prt.Anchored = true
  1895. prt.Material = "Neon"
  1896. prt.CFrame = cframe
  1897. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1898. game:GetService("Debris"):AddItem(prt, 5)
  1899. coroutine.resume(coroutine.create(function(Part, Mesh)
  1900. local rtype = rottype
  1901. for i = 0, 1, delay do
  1902. swait()
  1903. if rtype == 1 then
  1904. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1905. elseif rtype == 2 then
  1906. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1907. end
  1908. Part.Transparency = i
  1909. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1910. end
  1911. Part.Parent = nil
  1912. end), prt, msh)
  1913. end
  1914. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1915. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1916. prt.Anchored = true
  1917. prt.Material = "Neon"
  1918. prt.CFrame = cframe
  1919. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1920. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1921. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1922. game:GetService("Debris"):AddItem(prt, 5)
  1923. coroutine.resume(coroutine.create(function(Part, Mesh)
  1924. local rtype = rottype
  1925. for i = 0, 1, delay do
  1926. swait()
  1927. if rtype == 1 then
  1928. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1929. elseif rtype == 2 then
  1930. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1931. end
  1932. dec.Transparency = i
  1933. dec2.Transparency = i
  1934. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1935. end
  1936. Part.Parent = nil
  1937. end), prt, msh)
  1938. end
  1939. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1940. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1941. prt.Anchored = true
  1942. prt.Material = "Neon"
  1943. prt.CFrame = cframe
  1944. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  1945. game:GetService("Debris"):AddItem(prt, 5)
  1946. coroutine.resume(coroutine.create(function(Part, Mesh)
  1947. local rtype = rottype
  1948. for i = 0, 1, delay do
  1949. swait()
  1950. if rtype == 1 then
  1951. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1952. elseif rtype == 2 then
  1953. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1954. end
  1955. prt.Transparency = i
  1956. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  1957. end
  1958. Part.Parent = nil
  1959. end), prt, msh)
  1960. end
  1961. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  1962. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1963. prt.Anchored = true
  1964. prt.Material = "Neon"
  1965. prt.CFrame = cframe
  1966. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  1967. game:GetService("Debris"):AddItem(prt, 5)
  1968. coroutine.resume(coroutine.create(function(Part, Mesh)
  1969. local rtype = rottype
  1970. for i = 0, 1, delay do
  1971. swait()
  1972. if rtype == 1 then
  1973. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  1974. elseif rtype == 2 then
  1975. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  1976. end
  1977. prt.Transparency = i
  1978. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  1979. end
  1980. Part.Parent = nil
  1981. end), prt, msh)
  1982. end
  1983. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  1984. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1985. prt.Anchored = true
  1986. prt.Material = "Neon"
  1987. prt.CFrame = cframe
  1988. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1989. game:GetService("Debris"):AddItem(prt, 5)
  1990. coroutine.resume(coroutine.create(function(Part, Mesh)
  1991. local rtype = rottype
  1992. for i = 0, 1, delay do
  1993. swait()
  1994. if rtype == 1 then
  1995. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1996. elseif rtype == 2 then
  1997. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1998. end
  1999. prt.Transparency = i
  2000. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2001. end
  2002. Part.Parent = nil
  2003. end), prt, msh)
  2004. end
  2005. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  2006. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2007. prt.Anchored = true
  2008. prt.Material = "Neon"
  2009. prt.CFrame = cframe
  2010. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2011. game:GetService("Debris"):AddItem(prt, 5)
  2012. coroutine.resume(coroutine.create(function(Part, Mesh)
  2013. local rtype = rottype
  2014. for i = 0, 1, delay do
  2015. swait()
  2016. if rtype == 1 then
  2017. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2018. elseif rtype == 2 then
  2019. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2020. end
  2021. prt.Transparency = i
  2022. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2023. end
  2024. Part.Parent = nil
  2025. end), prt, msh)
  2026. end
  2027. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2028. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2029. prt.Anchored = false
  2030. prt.CFrame = cframe
  2031. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2032. local wld = weld(prt, prt, Parent, cframe)
  2033. game:GetService("Debris"):AddItem(prt, 5)
  2034. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2035. for i = 0, 1, delay do
  2036. wait()
  2037. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  2038. Part.Transparency = i
  2039. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2040. end
  2041. Part.Parent = nil
  2042. end), prt, msh, wld)
  2043. end
  2044. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2045. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2046. prt.Anchored = false
  2047. prt.CFrame = cframe
  2048. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2049. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  2050. game:GetService("Debris"):AddItem(prt, 5)
  2051. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2052. for i = 0, 1, delay do
  2053. wait()
  2054. Weld.C0 = euler(i * 20, 0, 0)
  2055. Part.Transparency = i
  2056. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2057. end
  2058. Part.Parent = nil
  2059. end), prt, msh, wld)
  2060. end
  2061. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2062. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2063. prt.Anchored = true
  2064. prt.CFrame = cframe
  2065. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2066. game:GetService("Debris"):AddItem(prt, 2)
  2067. coroutine.resume(coroutine.create(function(Part, Mesh)
  2068. for i = 0, 1, delay do
  2069. wait()
  2070. Part.CFrame = Part.CFrame
  2071. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2072. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2073. prt2.Anchored = true
  2074. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2075. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  2076. game:GetService("Debris"):AddItem(prt2, 2)
  2077. coroutine.resume(coroutine.create(function(Part, Mesh)
  2078. for i = 0, 1, 0.1 do
  2079. wait()
  2080. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  2081. end
  2082. Part.Parent = nil
  2083. end), prt2, msh2)
  2084. end
  2085. for i = 0, 1, delay * 2 do
  2086. wait()
  2087. Part.CFrame = Part.CFrame
  2088. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  2089. end
  2090. Part.Parent = nil
  2091. end), prt, msh)
  2092. end
  2093. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2094. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2095. prt.Anchored = true
  2096. prt.CFrame = cframe
  2097. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2098. game:GetService("Debris"):AddItem(prt, 2)
  2099. coroutine.resume(coroutine.create(function(Part, Mesh)
  2100. for i = 0, 1, delay do
  2101. wait()
  2102. Part.CFrame = Part.CFrame
  2103. Part.Transparency = i
  2104. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2105. end
  2106. Part.Parent = nil
  2107. end), prt, msh)
  2108. end
  2109. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2110. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2111. prt.Anchored = true
  2112. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2113. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2114. game:GetService("Debris"):AddItem(prt, 2)
  2115. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  2116. CF = Part.CFrame
  2117. Numbb = 0
  2118. randnumb = math.random() / 10
  2119. rand1 = math.random() / 10
  2120. for i = 0, 1, rand1 do
  2121. wait()
  2122. CF = CF * cf(0, math.random() / 2, 0)
  2123. Part.CFrame = CF * euler(Numbb, 0, 0)
  2124. Part.Transparency = i
  2125. Numbb = Numbb + randnumb
  2126. end
  2127. Part.Parent = nil
  2128. end), prt, CF, Numbb, randnumb)
  2129. end
  2130. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2131. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2132. prt.Anchored = true
  2133. prt.CFrame = cframe
  2134. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  2135. game:GetService("Debris"):AddItem(prt, 5)
  2136. coroutine.resume(coroutine.create(function(Part, Mesh)
  2137. for i = 0, 1, delay do
  2138. wait()
  2139. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  2140. Part.Transparency = i
  2141. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2142. end
  2143. Part.Parent = nil
  2144. end), prt, msh)
  2145. end
  2146. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2147. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2148. prt.Anchored = true
  2149. prt.CFrame = cframe
  2150. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2151. game:GetService("Debris"):AddItem(prt, 2)
  2152. coroutine.resume(coroutine.create(function(Part, Mesh)
  2153. for i = 0, 1, delay do
  2154. wait()
  2155. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  2156. Part.Transparency = i
  2157. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2158. end
  2159. Part.Parent = nil
  2160. end), prt, msh)
  2161. end
  2162. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  2163. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2164. prt.Anchored = true
  2165. prt.CFrame = cframe * cf(x, y, z)
  2166. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  2167. game:GetService("Debris"):AddItem(prt, 5)
  2168. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  2169. local num = math.random()
  2170. local num2 = math.random(-3, 2) + math.random()
  2171. local numm = 0
  2172. for i = 0, 1, delay * 2 do
  2173. swait()
  2174. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  2175. Part.Transparency = i
  2176. numm = numm + 0.01
  2177. end
  2178. Part.Parent = nil
  2179. Mesh.Parent = nil
  2180. end), prt, msh, x, y, z)
  2181. end
  2182. function dmgstart(dmg, what)
  2183. hitcon = what.Touched:connect(function(hit)
  2184. local hum = hit.Parent:FindFirstChild("Humanoid")
  2185. if hum and not hum:IsDescendantOf(Character) then
  2186. hum:TakeDamage(dmg)
  2187. end
  2188. end)
  2189. end
  2190. function dmgstop()
  2191. hitcon:disconnect()
  2192. end
  2193. function Cloak()
  2194. Face.Parent = nil
  2195. cloaked = true
  2196. for _, v in pairs(Torso.Parent:children()) do
  2197. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2198. coroutine.resume(coroutine.create(function()
  2199. for i = 0, 1, 0.2 do
  2200. wait()
  2201. v.Transparency = i
  2202. end
  2203. v.Transparency = 1
  2204. end))
  2205. end
  2206. if v.className == "Hat" then
  2207. hatp = v.Handle
  2208. coroutine.resume(coroutine.create(function(derp)
  2209. for i = 0, 1, 0.2 do
  2210. wait()
  2211. derp.Transparency = i
  2212. end
  2213. derp.Transparency = 1
  2214. end), hatp)
  2215. end
  2216. end
  2217. for _, v in pairs(m:children()) do
  2218. if v.className == "Part" then
  2219. coroutine.resume(coroutine.create(function()
  2220. for i = 0, 1, 0.2 do
  2221. wait()
  2222. v.Transparency = i
  2223. end
  2224. v.Transparency = 1
  2225. end))
  2226. end
  2227. end
  2228. end
  2229. function UnCloak()
  2230. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  2231. Face.Parent = Head
  2232. cloaked = false
  2233. for _, v in pairs(Torso.Parent:children()) do
  2234. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2235. coroutine.resume(coroutine.create(function()
  2236. for i = 0, 1, 0.1 do
  2237. wait()
  2238. v.Transparency = v.Transparency - 0.1
  2239. end
  2240. v.Transparency = 0
  2241. end))
  2242. end
  2243. if v.className == "Hat" then
  2244. hatp = v.Handle
  2245. coroutine.resume(coroutine.create(function(derp)
  2246. for i = 0, 1, 0.1 do
  2247. wait()
  2248. derp.Transparency = derp.Transparency - 0.1
  2249. end
  2250. derp.Transparency = 0
  2251. end), hatp)
  2252. end
  2253. end
  2254. for _, v in pairs(m:children()) do
  2255. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  2256. coroutine.resume(coroutine.create(function()
  2257. for i = 0, 1, 0.1 do
  2258. wait()
  2259. v.Transparency = v.Transparency - 0.1
  2260. end
  2261. v.Transparency = 0
  2262. end))
  2263. v.Transparency = 0
  2264. end
  2265. end
  2266. end
  2267. local origcolor = BrickColor.new("Pastel light blue")
  2268. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2269. local expart = Instance.new("Part", char)
  2270. local expart2 = Instance.new("Part", char)
  2271. local rin = Instance.new("Part", char)
  2272. local rin2 = Instance.new("Part", char)
  2273. local partMesh = Instance.new("SpecialMesh", expart)
  2274. partMesh.MeshType = "Sphere"
  2275. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2276. partMesh2.MeshType = "Sphere"
  2277. local partMesh3 = Instance.new("SpecialMesh", rin)
  2278. partMesh3.MeshType = "Brick"
  2279. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2280. partMesh4.MeshType = "Brick"
  2281. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2282. partMesh.Scale = vt(rad, rad, rad)
  2283. expart.Size = vt(1, 1, 1)
  2284. expart.Transparency = 0
  2285. expart.Anchored = true
  2286. expart.Material = "Neon"
  2287. expart.BrickColor = bc("White")
  2288. expart.CFrame = par.CFrame
  2289. partMesh2.Scale = vt(rad, rad, rad)
  2290. expart2.Size = vt(1.15, 1.15, 1.15)
  2291. expart2.Transparency = 0.5
  2292. expart2.Anchored = true
  2293. expart2.Material = "Neon"
  2294. expart2.BrickColor = par.BrickColor
  2295. expart2.CFrame = par.CFrame
  2296. rin.Size = vt(1.15, 1.15, 1.15)
  2297. rin.Transparency = 1
  2298. rin.Anchored = true
  2299. rin.Material = "Neon"
  2300. rin.BrickColor = par.BrickColor
  2301. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2302. rin2.Size = vt(1.15, 1.15, 1.15)
  2303. rin2.Transparency = 1
  2304. rin2.Anchored = true
  2305. rin2.Material = "Neon"
  2306. rin2.BrickColor = par.BrickColor
  2307. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2308. partMesh3.Scale = vt(0, 1, 0)
  2309. partMesh4.Scale = vt(0, 1, 0)
  2310. local dec2 = Instance.new("Decal", rin)
  2311. dec2.Face = "Top"
  2312. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2313. dec2.Parent = rin
  2314. local dec2b = dec2:Clone()
  2315. dec2b.Face = "Bottom"
  2316. dec2b.Parent = rin
  2317. local dec2a = Instance.new("Decal", rin2)
  2318. dec2a.Face = "Top"
  2319. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2320. dec2a.Parent = rin2
  2321. local dec2ab = dec2a:Clone()
  2322. dec2ab.Face = "Bottom"
  2323. dec2ab.Parent = rin2
  2324. expart.CanCollide = false
  2325. expart2.CanCollide = false
  2326. rin.CanCollide = false
  2327. rin2.CanCollide = false
  2328. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2329. local value = 1 * rad / 6.5
  2330. for i = 0, 199 do
  2331. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2332. expart.CFrame = expart.CFrame
  2333. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2334. expart2.CFrame = expart.CFrame
  2335. value = value - 0.035 * rad / 30
  2336. if value < 7.5 then
  2337. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2338. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2339. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2340. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2341. end
  2342. if value < 0 then
  2343. dec2.Transparency = dec2.Transparency + 0.025
  2344. dec2a.Transparency = dec2a.Transparency + 0.025
  2345. dec2b.Transparency = dec2b.Transparency + 0.025
  2346. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2347. expart.Transparency = expart.Transparency + 0.025
  2348. expart2.Transparency = expart2.Transparency + 0.025
  2349. rin.Transparency = rin.Transparency + 0.025
  2350. rin2.Transparency = rin2.Transparency + 0.025
  2351. end
  2352. swait()
  2353. end
  2354. game:GetService("Debris"):AddItem(expart, 1)
  2355. game:GetService("Debris"):AddItem(expart2, 1)
  2356. game:GetService("Debris"):AddItem(rin, 1)
  2357. game:GetService("Debris"):AddItem(rin2, 1)
  2358. end
  2359. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2360. local expart = Instance.new("Part", char)
  2361. local expart2 = Instance.new("Part", char)
  2362. local partMesh = Instance.new("SpecialMesh", expart)
  2363. partMesh.MeshType = "Sphere"
  2364. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2365. partMesh2.MeshType = "Sphere"
  2366. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2367. partMesh.Scale = vt(rad, rad, rad)
  2368. expart.Size = vt(1, 1, 1)
  2369. expart.Transparency = 0
  2370. expart.Anchored = true
  2371. expart.Material = "Neon"
  2372. expart.BrickColor = bc("White")
  2373. expart.CFrame = par.CFrame
  2374. partMesh2.Scale = vt(rad, rad, rad)
  2375. expart2.Size = vt(1.15, 1.15, 1.15)
  2376. expart2.Transparency = 0.5
  2377. expart2.Anchored = true
  2378. expart2.Material = "Neon"
  2379. expart2.BrickColor = par.BrickColor
  2380. expart2.CFrame = par.CFrame
  2381. expart.CanCollide = false
  2382. expart2.CanCollide = false
  2383. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2384. local value = 1 * rad / 6.5
  2385. for i = 0, 75 do
  2386. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2387. expart.CFrame = expart.CFrame
  2388. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2389. expart2.CFrame = expart.CFrame
  2390. value = value - 0.035 * rad / 5
  2391. if value < 0 then
  2392. value = 0
  2393. expart.Transparency = expart.Transparency + 0.05
  2394. expart2.Transparency = expart2.Transparency + 0.05
  2395. end
  2396. swait()
  2397. end
  2398. game:GetService("Debris"):AddItem(expart, 1)
  2399. game:GetService("Debris"):AddItem(expart2, 1)
  2400. end
  2401. function AreaDanger(rad, par, mindam, maxdam)
  2402. local expart = Instance.new("Part", char)
  2403. local partMesh = Instance.new("SpecialMesh", expart)
  2404. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2405. partMesh.MeshType = "Sphere"
  2406. partMesh.Scale = vt(rad, rad, rad)
  2407. expart.Size = vt(1, 1, 1)
  2408. expart.Transparency = 0.5
  2409. expart.Anchored = true
  2410. expart.Material = "Neon"
  2411. expart.CanCollide = false
  2412. expart.BrickColor = par.BrickColor
  2413. expart.CFrame = par.CFrame
  2414. local value = 1 * rad / 5
  2415. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2416. for i = 0, 14 do
  2417. wait()
  2418. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2419. expart.CFrame = expart.CFrame
  2420. value = value - 0.035 * rad
  2421. if value < 0 then
  2422. value = 0
  2423. end
  2424. end
  2425. wait(0.25)
  2426. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2427. wait(0.5)
  2428. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2429. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2430. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2431. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2432. for i = 0, 14 do
  2433. wait()
  2434. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2435. expart.CFrame = expart.CFrame
  2436. value = value - 0.035 * rad / 2
  2437. end
  2438. expart.Transparency = 1
  2439. game:GetService("Debris"):AddItem(expart, 5)
  2440. end
  2441. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2442. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2443. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2444. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2445. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2446. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2447. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2448. for i = 0, 24 do
  2449. 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))
  2450. end
  2451. for i = 0, 24 do
  2452. local expart = Instance.new("Part", char)
  2453. expart.Transparency = 1
  2454. expart.Anchored = true
  2455. expart.CanCollide = false
  2456. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2457. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2458. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2459. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2460. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2461. for i = 0, 9 do
  2462. 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))
  2463. end
  2464. game:GetService("Debris"):AddItem(expart, 2)
  2465. wait(0.1)
  2466. end
  2467. end
  2468. function EXterPlosion(par)
  2469. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2470. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2471. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2472. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2473. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2474. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2475. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2476. for i = 0, 24 do
  2477. 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))
  2478. end
  2479. for i = 0, 24 do
  2480. 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))
  2481. end
  2482. end
  2483. function ring(type, pos, scale, value)
  2484. local type = type
  2485. local rng = Instance.new("Part", char)
  2486. rng.Anchored = true
  2487. rng.BrickColor = origcolor
  2488. rng.CanCollide = false
  2489. rng.FormFactor = 3
  2490. rng.Name = "Ring"
  2491. rng.Size = Vector3.new(1, 1, 1)
  2492. rng.Transparency = 0
  2493. rng.TopSurface = 0
  2494. rng.BottomSurface = 0
  2495. rng.CFrame = pos
  2496. local rngm = Instance.new("SpecialMesh", rng)
  2497. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2498. rngm.Scale = scale
  2499. local scaler2 = 1
  2500. if type == "Add" then
  2501. scaler2 = 1 * value
  2502. elseif type == "Divide" then
  2503. scaler2 = 1 / value
  2504. end
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0, 10, 0.1 do
  2507. swait()
  2508. if type == "Add" then
  2509. scaler2 = scaler2 - 0.01 * value
  2510. elseif type == "Divide" then
  2511. scaler2 = scaler2 - 0.01 / value
  2512. end
  2513. rng.Transparency = rng.Transparency + 0.01
  2514. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2515. end
  2516. rng:Destroy()
  2517. end))
  2518. end
  2519. function wave(type, pos, scale, value)
  2520. local type = type
  2521. local rng = Instance.new("Part", char)
  2522. rng.Anchored = true
  2523. rng.BrickColor = origcolor
  2524. rng.CanCollide = false
  2525. rng.FormFactor = 3
  2526. rng.Name = "Ring"
  2527. rng.Size = Vector3.new(1, 1, 1)
  2528. rng.Transparency = 0
  2529. rng.TopSurface = 0
  2530. rng.BottomSurface = 0
  2531. rng.CFrame = pos
  2532. local rngm = Instance.new("SpecialMesh", rng)
  2533. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2534. rngm.Scale = scale
  2535. local scaler2 = 1
  2536. if type == "Add" then
  2537. scaler2 = 1 * value
  2538. elseif type == "Divide" then
  2539. scaler2 = 1 / value
  2540. end
  2541. coroutine.resume(coroutine.create(function()
  2542. for i = 0, 10, 0.1 do
  2543. swait()
  2544. if type == "Add" then
  2545. scaler2 = scaler2 - 0.01 * value
  2546. elseif type == "Divide" then
  2547. scaler2 = scaler2 - 0.01 / value
  2548. end
  2549. rng.Transparency = rng.Transparency + 0.01
  2550. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2551. end
  2552. rng:Destroy()
  2553. end))
  2554. end
  2555. function wind(type, pos, scale, value, speed)
  2556. local type = type
  2557. local rng = Instance.new("Part", char)
  2558. rng.Anchored = true
  2559. rng.BrickColor = origcolor
  2560. rng.CanCollide = false
  2561. rng.FormFactor = 3
  2562. rng.Name = "Ring"
  2563. rng.Size = Vector3.new(1, 1, 1)
  2564. rng.Transparency = 0
  2565. rng.TopSurface = 0
  2566. rng.BottomSurface = 0
  2567. rng.CFrame = pos
  2568. local rngm = Instance.new("SpecialMesh", rng)
  2569. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2570. rngm.Scale = scale
  2571. local scaler2 = 1
  2572. if type == "Add" then
  2573. scaler2 = 1 * value
  2574. elseif type == "Divide" then
  2575. scaler2 = 1 / value
  2576. end
  2577. coroutine.resume(coroutine.create(function()
  2578. for i = 0, 10, 0.1 do
  2579. swait()
  2580. if type == "Add" then
  2581. scaler2 = scaler2 - 0.01 * value
  2582. elseif type == "Divide" then
  2583. scaler2 = scaler2 - 0.01 / value
  2584. end
  2585. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2586. rng.Transparency = rng.Transparency + 0.01
  2587. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2588. end
  2589. rng:Destroy()
  2590. end))
  2591. end
  2592. function groundwind(type, pos, scale, value, speed)
  2593. local type = type
  2594. local rng = Instance.new("Part", char)
  2595. rng.Anchored = true
  2596. rng.BrickColor = origcolor
  2597. rng.CanCollide = false
  2598. rng.FormFactor = 3
  2599. rng.Name = "Ring"
  2600. rng.Size = Vector3.new(1, 1, 1)
  2601. rng.Transparency = 0
  2602. rng.TopSurface = 0
  2603. rng.BottomSurface = 0
  2604. rng.CFrame = pos
  2605. local rngm = Instance.new("SpecialMesh", rng)
  2606. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2607. rngm.Scale = scale
  2608. local scaler2 = 1
  2609. if type == "Add" then
  2610. scaler2 = 1 * value
  2611. elseif type == "Divide" then
  2612. scaler2 = 1 / value
  2613. end
  2614. coroutine.resume(coroutine.create(function()
  2615. for i = 0, 10, 0.1 do
  2616. swait()
  2617. if type == "Add" then
  2618. scaler2 = scaler2 - 0.01 * value
  2619. elseif type == "Divide" then
  2620. scaler2 = scaler2 - 0.01 / value
  2621. end
  2622. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2623. rng.Transparency = rng.Transparency + 0.01
  2624. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2625. end
  2626. rng:Destroy()
  2627. end))
  2628. end
  2629. function CameraManager()
  2630. if TwoD and not CamInterrupt then
  2631. if Humanoid.Health > 0 then
  2632. Camera.CameraSubject = Humanoid
  2633. Camera.CameraType = "Scriptable"
  2634. Humanoid.AutoRotate = false
  2635. if Booleans.GyroUse then
  2636. Directer.MaxTorque = Vec3(0, huge, 0)
  2637. else
  2638. Directer.MaxTorque = Vec3(0, 0, 0)
  2639. end
  2640. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2641. if Booleans.CamFollow then
  2642. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2643. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2644. else
  2645. CPart.Position = RootPart.Position
  2646. end
  2647. else
  2648. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2649. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2650. end
  2651. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2652. else
  2653. Camera.CameraSubject = Humanoid
  2654. Camera.CameraType = "Custom"
  2655. Controller.Disabled = false
  2656. end
  2657. end
  2658. end
  2659. function sphere(bonuspeed, type, pos, scale, value, color)
  2660. local type = type
  2661. local rng = Instance.new("Part", char)
  2662. rng.Anchored = true
  2663. rng.BrickColor = color
  2664. rng.CanCollide = false
  2665. rng.FormFactor = 3
  2666. rng.Name = "Ring"
  2667. rng.Material = "Neon"
  2668. rng.Size = Vector3.new(1, 1, 1)
  2669. rng.Transparency = 0
  2670. rng.TopSurface = 0
  2671. rng.BottomSurface = 0
  2672. rng.CFrame = pos
  2673. local rngm = Instance.new("SpecialMesh", rng)
  2674. rngm.MeshType = "Sphere"
  2675. rngm.Scale = scale
  2676. if rainbowmode == true then
  2677. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2678. end
  2679. local scaler2 = 1
  2680. if type == "Add" then
  2681. scaler2 = 1 * value
  2682. elseif type == "Divide" then
  2683. scaler2 = 1 / value
  2684. end
  2685. coroutine.resume(coroutine.create(function()
  2686. for i = 0, 10 / bonuspeed, 0.1 do
  2687. swait()
  2688. if rainbowmode == true then
  2689. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2690. end
  2691. if type == "Add" then
  2692. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2693. elseif type == "Divide" then
  2694. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2695. end
  2696. if chaosmode == true then
  2697. rng.BrickColor = BrickColor.random()
  2698. end
  2699. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2700. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2701. end
  2702. rng:Destroy()
  2703. end))
  2704. end
  2705. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2706. local type = type
  2707. local rng = Instance.new("Part", char)
  2708. rng.Anchored = true
  2709. rng.BrickColor = color
  2710. rng.CanCollide = false
  2711. rng.FormFactor = 3
  2712. rng.Name = "Ring"
  2713. rng.Material = "Neon"
  2714. rng.Size = Vector3.new(1, 1, 1)
  2715. rng.Transparency = 0
  2716. rng.TopSurface = 0
  2717. rng.BottomSurface = 0
  2718. rng.CFrame = pos
  2719. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2720. local rngm = Instance.new("SpecialMesh", rng)
  2721. rngm.MeshType = "Sphere"
  2722. rngm.Scale = vt(x1, y1, z1)
  2723. if rainbowmode == true then
  2724. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2725. end
  2726. local scaler2 = 1
  2727. local speeder = FastSpeed
  2728. if type == "Add" then
  2729. scaler2 = 1 * value
  2730. elseif type == "Divide" then
  2731. scaler2 = 1 / value
  2732. end
  2733. coroutine.resume(coroutine.create(function()
  2734. for i = 0, 10 / bonuspeed, 0.1 do
  2735. swait()
  2736. if rainbowmode == true then
  2737. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2738. end
  2739. if type == "Add" then
  2740. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2741. elseif type == "Divide" then
  2742. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2743. end
  2744. if chaosmode == true then
  2745. rng.BrickColor = BrickColor.random()
  2746. end
  2747. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2748. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2749. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2750. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2751. end
  2752. rng:Destroy()
  2753. end))
  2754. end
  2755. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2756. local type = type
  2757. local rng = Instance.new("Part", char)
  2758. rng.Anchored = true
  2759. rng.BrickColor = color
  2760. rng.CanCollide = false
  2761. rng.FormFactor = 3
  2762. rng.Name = "Ring"
  2763. rng.Material = "Neon"
  2764. rng.Size = Vector3.new(1, 1, 1)
  2765. rng.Transparency = 1
  2766. rng.TopSurface = 0
  2767. rng.BottomSurface = 0
  2768. rng.CFrame = pos
  2769. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2770. local rngm = Instance.new("SpecialMesh", rng)
  2771. rngm.MeshType = "Sphere"
  2772. rngm.Scale = vt(x1, y1, z1)
  2773. if rainbowmode == true then
  2774. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2775. end
  2776. local scaler2 = 1
  2777. local speeder = FastSpeed
  2778. if type == "Add" then
  2779. scaler2 = 1 * value
  2780. elseif type == "Divide" then
  2781. scaler2 = 1 / value
  2782. end
  2783. coroutine.resume(coroutine.create(function()
  2784. for i = 0, 10 / bonuspeed, 0.1 do
  2785. swait()
  2786. if rainbowmode == true then
  2787. rng.Color = Color3.fromRGB(0, kan.PlaybackLoudness -4, 0)
  2788. end
  2789. if type == "Add" then
  2790. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2791. elseif type == "Divide" then
  2792. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2793. end
  2794. if chaosmode == true then
  2795. rng.BrickColor = BrickColor.random()
  2796. end
  2797. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2798. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2799. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2800. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2801. end
  2802. rng:Destroy()
  2803. end))
  2804. end
  2805. function dmg(dude)
  2806. if dude.Name ~= Character then
  2807. local bgf = Instance.new("BodyGyro", dude.Head)
  2808. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2809. local val = Instance.new("BoolValue", dude)
  2810. val.Name = "IsHit"
  2811. local ds = coroutine.wrap(function()
  2812. dude:WaitForChild("Head"):BreakJoints()
  2813. wait(0.5)
  2814. targetted = nil
  2815. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2816. coroutine.resume(coroutine.create(function()
  2817. for i, v in pairs(dude:GetChildren()) do
  2818. if v:IsA("Accessory") then
  2819. v:Destroy()
  2820. end
  2821. if v:IsA("Humanoid") then
  2822. v:Destroy()
  2823. end
  2824. if v:IsA("CharacterMesh") then
  2825. v:Destroy()
  2826. end
  2827. if v:IsA("Model") then
  2828. v:Destroy()
  2829. end
  2830. if v:IsA("Part") or v:IsA("MeshPart") then
  2831. for x, o in pairs(v:GetChildren()) do
  2832. if o:IsA("Decal") then
  2833. o:Destroy()
  2834. end
  2835. end
  2836. coroutine.resume(coroutine.create(function()
  2837. v.Material = "Neon"
  2838. v.CanCollide = false
  2839. local bld = Instance.new("ParticleEmitter", v)
  2840. bld.LightEmission = 1
  2841. bld.Texture = "rbxassetid://284205403"
  2842. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2843. bld.Rate = 50
  2844. bld.Lifetime = NumberRange.new(1)
  2845. bld.Size = NumberSequence.new({
  2846. NumberSequenceKeypoint.new(0, 0.75, 0),
  2847. NumberSequenceKeypoint.new(1, 0, 0)
  2848. })
  2849. bld.Transparency = NumberSequence.new({
  2850. NumberSequenceKeypoint.new(0, 0, 0),
  2851. NumberSequenceKeypoint.new(1, 1, 0)
  2852. })
  2853. bld.Speed = NumberRange.new(0, 0)
  2854. bld.VelocitySpread = 50000
  2855. bld.Rotation = NumberRange.new(-500, 500)
  2856. bld.RotSpeed = NumberRange.new(-500, 500)
  2857. local sbs = Instance.new("BodyPosition", v)
  2858. sbs.P = 3000
  2859. sbs.D = 1000
  2860. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2861. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2862. v.Color = Color3.new(1, 1, 1)
  2863. coroutine.resume(coroutine.create(function()
  2864. for i = 0, 49 do
  2865. swait(1)
  2866. v.Transparency = v.Transparency + 0.02
  2867. end
  2868. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2869. bld.Speed = NumberRange.new(1, 5)
  2870. bld.Acceleration = vt(0, 10, 0)
  2871. wait(0.5)
  2872. bld.Enabled = false
  2873. wait(3)
  2874. v:Destroy()
  2875. dude:Destroy()
  2876. end))
  2877. end))
  2878. end
  2879. end
  2880. end))
  2881. end)
  2882. ds()
  2883. end
  2884. end
  2885. function FindNearestHead(Position, Distance, SinglePlayer)
  2886. if SinglePlayer then
  2887. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2888. end
  2889. local List = {}
  2890. for i, v in pairs(workspace:GetChildren()) do
  2891. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2892. table.insert(List, v)
  2893. end
  2894. end
  2895. return List
  2896. end
  2897. function FaceMouse()
  2898. Cam = workspace.CurrentCamera
  2899. return {
  2900. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2901. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2902. }
  2903. end
  2904. function FaceMouse2()
  2905. Cam = workspace.CurrentCamera
  2906. return {
  2907. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2908. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2909. }
  2910. end
  2911. local ModeOfGlitch = 1
  2912. local storehumanoidWS = 16
  2913. function ExtinctiveHeartbreak()
  2914. local targetted
  2915. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2916. targetted = mouse.Target.Parent
  2917. end
  2918. if targetted ~= nil then
  2919. attack = true
  2920. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  2921. for i = 0, 9 do
  2922. 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("Pink"), 0)
  2923. end
  2924. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Pink"))
  2925. local originalpos = root.CFrame
  2926. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  2927. for i = 0, 9 do
  2928. 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("Pink"), 0)
  2929. end
  2930. hum.WalkSpeed = 0
  2931. targetted.Head.Anchored = true
  2932. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Pink"))
  2933. for i = 0, 2, 0.1 do
  2934. swait()
  2935. 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)
  2936. 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)
  2937. 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)
  2938. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  2939. 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)
  2940. 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)
  2941. end
  2942. coroutine.resume(coroutine.create(function()
  2943. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  2944. bld.LightEmission = 0.1
  2945. bld.Texture = "rbxassetid://284205403"
  2946. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2947. bld.Rate = 500
  2948. bld.Lifetime = NumberRange.new(1)
  2949. bld.Size = NumberSequence.new({
  2950. NumberSequenceKeypoint.new(0, 2, 0),
  2951. NumberSequenceKeypoint.new(1, 0, 0)
  2952. })
  2953. bld.Acceleration = vt(0, -25, 0)
  2954. bld.Transparency = NumberSequence.new({
  2955. NumberSequenceKeypoint.new(0, 0, 0),
  2956. NumberSequenceKeypoint.new(1, 0, 0)
  2957. })
  2958. bld.Speed = NumberRange.new(10, 50)
  2959. bld.EmissionDirection = "Front"
  2960. bld.VelocitySpread = 25
  2961. bld.Rotation = NumberRange.new(-500, 500)
  2962. bld.RotSpeed = NumberRange.new(-500, 500)
  2963. end))
  2964. coroutine.resume(coroutine.create(function()
  2965. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  2966. bld.LightEmission = 0.1
  2967. bld.Texture = "rbxassetid://284205403"
  2968. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  2969. bld.Rate = 500
  2970. bld.Lifetime = NumberRange.new(1)
  2971. bld.Size = NumberSequence.new({
  2972. NumberSequenceKeypoint.new(0, 2, 0),
  2973. NumberSequenceKeypoint.new(1, 0, 0)
  2974. })
  2975. bld.Acceleration = vt(0, -25, 0)
  2976. bld.Transparency = NumberSequence.new({
  2977. NumberSequenceKeypoint.new(0, 0, 0),
  2978. NumberSequenceKeypoint.new(1, 0, 0)
  2979. })
  2980. bld.Speed = NumberRange.new(10, 50)
  2981. bld.EmissionDirection = "Front"
  2982. bld.VelocitySpread = 25
  2983. bld.Rotation = NumberRange.new(-500, 500)
  2984. bld.RotSpeed = NumberRange.new(-500, 500)
  2985. end))
  2986. CameraEnshaking(5, 5)
  2987. game:GetService("Debris"):AddItem(bld, 3)
  2988. dmg(targetted)
  2989. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  2990. for i = 0, 1, 0.1 do
  2991. swait()
  2992. 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)
  2993. 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)
  2994. 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)
  2995. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  2996. 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)
  2997. 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)
  2998. end
  2999. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  3000. for i = 0, 9 do
  3001. 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("Pink"), 0)
  3002. end
  3003. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Pink"))
  3004. root.CFrame = originalpos
  3005. for i = 0, 9 do
  3006. 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("Pink"), 0)
  3007. end
  3008. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Pink"))
  3009. bld.Enabled = false
  3010. attack = false
  3011. hum.WalkSpeed = storehumanoidWS
  3012. end
  3013. end
  3014. function PureBomb()
  3015. attack = true
  3016. local orb = Instance.new("Part", char)
  3017. orb.Anchored = true
  3018. orb.BrickColor = BrickColor.new("Toothpaste")
  3019. orb.CanCollide = false
  3020. orb.FormFactor = 3
  3021. orb.Name = "Ring"
  3022. orb.Material = "Neon"
  3023. orb.Size = Vector3.new(1, 1, 1)
  3024. orb.Transparency = 0
  3025. orb.TopSurface = 0
  3026. orb.BottomSurface = 0
  3027. local orbm = Instance.new("SpecialMesh", orb)
  3028. orbm.MeshType = "Sphere"
  3029. orbm.Name = "SizeMesh"
  3030. orbm.Scale = vt(0, 0, 0)
  3031. local scaled = 0.1
  3032. local posid = 0
  3033. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  3034. for i = 0, 5, 0.1 do
  3035. swait()
  3036. scaled = scaled - 0.001
  3037. posid = posid - scaled
  3038. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3039. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  3040. 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)
  3041. 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)
  3042. 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)
  3043. 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)
  3044. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3045. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  3046. 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)
  3047. end
  3048. for i = 0, 2, 0.1 do
  3049. swait()
  3050. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3051. 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)
  3052. 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)
  3053. 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)
  3054. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  3055. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  3056. 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)
  3057. end
  3058. coroutine.resume(coroutine.create(function()
  3059. orb.Anchored = false
  3060. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  3061. local a = Instance.new("Part", workspace)
  3062. a.Name = "Direction"
  3063. a.Anchored = true
  3064. a.BrickColor = bc("Bright red")
  3065. a.Material = "Neon"
  3066. a.Transparency = 1
  3067. a.CanCollide = false
  3068. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  3069. local ignore = orb
  3070. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3071. a.BottomSurface = 10
  3072. a.TopSurface = 10
  3073. local distance = (orb.CFrame.p - position).magnitude
  3074. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3075. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3076. orb.CFrame = a.CFrame
  3077. a:Destroy()
  3078. local bv = Instance.new("BodyVelocity")
  3079. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3080. bv.velocity = orb.CFrame.lookVector * 125
  3081. bv.Parent = orb
  3082. local hitted = false
  3083. game:GetService("Debris"):AddItem(orb, 15)
  3084. wait()
  3085. local hit = orb.Touched:connect(function(hit)
  3086. if hitted == false then
  3087. hitted = true
  3088. CameraEnshaking(10, 2.5)
  3089. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  3090. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  3091. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  3092. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  3093. for i = 0, 9 do
  3094. 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)
  3095. 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)
  3096. end
  3097. orb.Anchored = true
  3098. orb.Transparency = 1
  3099. wait(8)
  3100. orb:Destroy()
  3101. end
  3102. end)
  3103. end))
  3104. for i = 0, 1, 0.1 do
  3105. swait()
  3106. 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)
  3107. 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)
  3108. 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)
  3109. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  3110. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  3111. 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)
  3112. end
  3113. attack = false
  3114. end
  3115. function ChaosGroundStrike()
  3116. attack = true
  3117. for i = 0, 2, 0.1 do
  3118. swait()
  3119. 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)
  3120. 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)
  3121. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3122. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3123. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3124. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3125. end
  3126. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  3127. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  3128. CameraEnshaking(4, 12)
  3129. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3130. if v:FindFirstChild("Head") then
  3131. dmg(v)
  3132. end
  3133. end
  3134. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  3135. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  3136. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  3137. for i = 0, 2, 0.1 do
  3138. swait()
  3139. 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)
  3140. 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)
  3141. 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)
  3142. 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)
  3143. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3144. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3145. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3146. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3147. end
  3148. attack = false
  3149. end
  3150. function ChaosBegone()
  3151. attack = true
  3152. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  3153. for i = 0, 10, 0.1 do
  3154. swait()
  3155. 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)
  3156. 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)
  3157. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3158. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3159. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3160. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3161. end
  3162. chatfunc("DIE!!", BrickColor.random().Color)
  3163. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3164. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3165. CameraEnshaking(5, 25)
  3166. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3167. if v:FindFirstChild("Head") then
  3168. dmg(v)
  3169. end
  3170. end
  3171. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3172. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3173. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3174. for i = 0, 3, 0.1 do
  3175. swait()
  3176. 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)
  3177. 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)
  3178. 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)
  3179. 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)
  3180. 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)
  3181. 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)
  3182. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3183. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3184. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3185. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3186. end
  3187. attack = false
  3188. end
  3189. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3190. local orb = Instance.new("Part", char)
  3191. orb.Anchored = true
  3192. orb.BrickColor = color
  3193. orb.CanCollide = false
  3194. orb.FormFactor = 3
  3195. orb.Name = "Ring"
  3196. orb.Material = "Neon"
  3197. orb.Size = Vector3.new(1, 1, 1)
  3198. orb.Transparency = 0
  3199. orb.TopSurface = 0
  3200. orb.BottomSurface = 0
  3201. local orbm = Instance.new("SpecialMesh", orb)
  3202. orbm.MeshType = "Sphere"
  3203. orb.CFrame = positted
  3204. orbm.Name = "SizeMesh"
  3205. orbm.Scale = vt(1, 1, 1)
  3206. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3207. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3208. coroutine.resume(coroutine.create(function()
  3209. wait(timer)
  3210. CameraEnshaking(3, ShakePower)
  3211. orb.Transparency = 1
  3212. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3213. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3214. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3215. wait(3)
  3216. orb:Destroy()
  3217. end))
  3218. end
  3219. function orb_spawn(positted, timer)
  3220. local randomcol = math.random(1, 2)
  3221. local orb = Instance.new("Part", char)
  3222. orb.Anchored = true
  3223. if randomcol == 1 then
  3224. orb.BrickColor = BrickColor.new("White")
  3225. elseif randomcol == 2 then
  3226. orb.BrickColor = BrickColor.new("Really black")
  3227. end
  3228. orb.CanCollide = false
  3229. orb.FormFactor = 3
  3230. orb.Name = "Ring"
  3231. orb.Material = "Neon"
  3232. orb.Size = Vector3.new(1, 1, 1)
  3233. orb.Transparency = 0
  3234. orb.TopSurface = 0
  3235. orb.BottomSurface = 0
  3236. local orbm = Instance.new("SpecialMesh", orb)
  3237. orbm.MeshType = "Sphere"
  3238. orb.CFrame = positted
  3239. orbm.Name = "SizeMesh"
  3240. orbm.Scale = vt(1, 1, 1)
  3241. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3242. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3243. for i = 0, 2 do
  3244. 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)
  3245. end
  3246. coroutine.resume(coroutine.create(function()
  3247. wait(timer)
  3248. CameraEnshaking(3, 2)
  3249. orb.Transparency = 1
  3250. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3251. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3252. for i = 0, 4 do
  3253. 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)
  3254. end
  3255. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3256. wait(3)
  3257. orb:Destroy()
  3258. end))
  3259. end
  3260. function scattercorrupt()
  3261. attack = true
  3262. local rot = 0
  3263. local randomrotations = math.random(1, 2)
  3264. local lookv = 2.5
  3265. local power = 5
  3266. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, MAINRUINCOLOR)
  3267. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, MAINRUINCOLOR)
  3268. for i = 0, 9 do
  3269. 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, MAINRUINCOLOR, 0)
  3270. end
  3271. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3272. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3273. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3274. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3275. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3276. local hite = Instance.new("Part", char)
  3277. hite.Anchored = true
  3278. hite.CanCollide = false
  3279. hite.FormFactor = 3
  3280. hite.Name = "Ring"
  3281. hite.Material = "Neon"
  3282. hite.Size = Vector3.new(1, 1, 1)
  3283. hite.Transparency = 1
  3284. hite.TopSurface = 0
  3285. hite.BottomSurface = 0
  3286. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3287. local rem = Instance.new("Part", char)
  3288. rem.Anchored = true
  3289. rem.CanCollide = false
  3290. rem.FormFactor = 3
  3291. rem.Name = "Ring"
  3292. rem.Material = "Neon"
  3293. rem.Size = Vector3.new(1, 1, 1)
  3294. rem.Transparency = 1
  3295. rem.TopSurface = 0
  3296. rem.BottomSurface = 0
  3297. rem.CFrame = hite.CFrame
  3298. local rem2 = rem:Clone()
  3299. rem2.Parent = char
  3300. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3301. local rem3 = rem:Clone()
  3302. rem3.Parent = char
  3303. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3304. local rem4 = rem:Clone()
  3305. rem4.Parent = char
  3306. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3307. hite:Destroy()
  3308. coroutine.resume(coroutine.create(function()
  3309. for i = 0, 24 do
  3310. swait(1)
  3311. if randomrotations == 1 then
  3312. rot = rot + 1
  3313. elseif randomrotations == 2 then
  3314. rot = rot - 1
  3315. end
  3316. power = power + 0.5
  3317. lookv = lookv + 7.5
  3318. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3319. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3320. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3321. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3322. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, MAINRUINCOLOR, power, 25, 75, 10, power / 5, 7.5)
  3323. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, MAINRUINCOLOR, power, 25, 75, 10, power / 5, 7.5)
  3324. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, MAINRUINCOLOR, power, 25, 75, 10, power / 5, 7.5)
  3325. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, MAINRUINCOLOR, power, 25, 75, 10, power / 5, 7.5)
  3326. end
  3327. end))
  3328. attack = false
  3329. end
  3330. function yinyangi()
  3331. attack = true
  3332. for i = 0, 2, 0.1 do
  3333. swait()
  3334. 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)
  3335. 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)
  3336. 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)
  3337. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3338. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3339. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3340. end
  3341. local bv = Instance.new("BodyVelocity")
  3342. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3343. bv.velocity = root.CFrame.lookVector * 175
  3344. bv.Parent = root
  3345. for Rotations = 0, 9 do
  3346. for i = 0, 1, 0.5 do
  3347. swait()
  3348. bv.velocity = root.CFrame.lookVector * 175
  3349. 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)
  3350. 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)
  3351. 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)
  3352. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3353. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3354. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3355. end
  3356. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3357. for i = 0, 1, 0.5 do
  3358. swait()
  3359. bv.velocity = root.CFrame.lookVector * 175
  3360. 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)
  3361. 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)
  3362. 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)
  3363. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3364. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3365. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3366. end
  3367. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3368. for i = 0, 1, 0.5 do
  3369. swait()
  3370. bv.velocity = root.CFrame.lookVector * 175
  3371. 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)
  3372. 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)
  3373. 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)
  3374. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3375. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3376. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3377. end
  3378. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3379. for i = 0, 1, 0.5 do
  3380. swait()
  3381. bv.velocity = root.CFrame.lookVector * 175
  3382. 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)
  3383. 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)
  3384. 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)
  3385. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3386. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3387. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3388. end
  3389. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3390. end
  3391. bv:Destroy()
  3392. attack = false
  3393. end
  3394. local shielding = false
  3395. function HolyBarrier()
  3396. attack = true
  3397. for i = 0, 2, 0.1 do
  3398. swait()
  3399. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3400. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3401. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  3402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  3403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  3404. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  3405. end
  3406. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  3407. stash = Instance.new("Model",workspace)
  3408. local barrier = Instance.new("Part",stash)
  3409. barrier.Anchored = true
  3410. barrier.CanCollide = false
  3411. barrier.Size = Vector3.new(20,20,20)
  3412. barrier.CFrame = root.CFrame
  3413. barrier.Transparency = 0.6
  3414. barrier.BrickColor = MAINRUINCOLOR
  3415. barrier.Material = Enum.Material.Neon
  3416. barrier.Shape = Enum.PartType.Ball
  3417. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  3418. Torso.Anchored = true
  3419. shielding = true
  3420. for i=1,50 do
  3421. local p = Instance.new("Part",stash)
  3422. p.Anchored = true
  3423. p.Transparency = 1
  3424. p.Size = Vector3.new(11,11,11)
  3425. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  3426. end
  3427. end
  3428. mouse.KeyUp:connect(function(k)
  3429. if k == "f" and ModeOfGlitch == 5 then
  3430. stash:Remove()
  3431. attack = false
  3432. Torso.Anchored = false
  3433. shielding = false
  3434. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  3435. end
  3436. end)
  3437. function Wip()
  3438. attack = true
  3439. local rngb = Instance.new("Part", char)
  3440. rngb.Anchored = true
  3441. rngb.BrickColor = origcolor
  3442. rngb.CanCollide = false
  3443. rngb.FormFactor = 3
  3444. rngb.Name = "Ring"
  3445. rngb.Material = "Neon"
  3446. rngb.Size = Vector3.new(1, 0.05, 1)
  3447. rngb.Transparency = 1
  3448. rngb.TopSurface = 0
  3449. rngb.BottomSurface = 0
  3450. local rngmb = Instance.new("SpecialMesh", rngb)
  3451. rngmb.MeshType = "Brick"
  3452. rngmb.Name = "SizeMesh"
  3453. rngmb.Scale = vt(0, 1, 0)
  3454. local orb = rngb:Clone()
  3455. orb.Parent = char
  3456. orb.Transparency = 0
  3457. orb.BrickColor = BrickColor.new("White")
  3458. orb.Size = vt(1, 1, 1)
  3459. local orbmish = orb.SizeMesh
  3460. orbmish.Scale = vt(0, 0, 0)
  3461. orbmish.MeshType = "Sphere"
  3462. local orbe = rngb:Clone()
  3463. orbe.Parent = char
  3464. orbe.Transparency = 0.5
  3465. orbe.BrickColor = BrickColor.new("New Yeller")
  3466. orbe.Size = vt(1, 1, 1)
  3467. local orbmish2 = orbe.SizeMesh
  3468. orbmish2.Scale = vt(0, 0, 0)
  3469. orbmish2.MeshType = "Sphere"
  3470. if COLOURSANALSHIT == 3 then
  3471. orbe.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3472. elseif COLOURSANALSHIT == 2 then
  3473. orbe.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3474. elseif COLOURSANALSHIT == 1 then
  3475. orbe.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3476. end
  3477. rngb:Destroy()
  3478. for i = 0, 5, 0.1 do
  3479. swait()
  3480. if rainbowmode == true then
  3481. if COLOURSANALSHIT == 3 then
  3482. orbe.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3483. elseif COLOURSANALSHIT == 2 then
  3484. orbe.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3485. elseif COLOURSANALSHIT == 1 then
  3486. orbe.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3487. end
  3488. end
  3489. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3490. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3491. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  3492. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  3493. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  3494. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  3495. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  3496. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  3497. RootPart.CFrame = FaceMouse()[1]
  3498. end
  3499. orbe.Transparency = 1
  3500. orb.Transparency = 1
  3501. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3502. CFuncs.Sound.Create("rbxassetid://1079408535", char, 1, 1)
  3503. local a = Instance.new("Part", Character)
  3504. a.Name = "Direction"
  3505. a.Anchored = true
  3506. a.BrickColor = bc("White")
  3507. a.Material = "Neon"
  3508. a.Transparency = 0
  3509. a.Shape = "Cylinder"
  3510. a.CanCollide = false
  3511. local a2 = Instance.new("Part", Character)
  3512. a2.Name = "Direction"
  3513. a2.Anchored = true
  3514. if COLOURSANALSHIT == 3 then
  3515. a2.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3516. elseif COLOURSANALSHIT == 2 then
  3517. a2.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3518. elseif COLOURSANALSHIT == 1 then
  3519. a2.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3520. end
  3521. a2.Material = "Neon"
  3522. a2.Transparency = 0
  3523. a2.Shape = "Block"
  3524. a2.CanCollide = false
  3525. local ba = Instance.new("Part", Character)
  3526. ba.Name = "HitDirect"
  3527. ba.Anchored = true
  3528. ba.BrickColor = bc("Cool yellow")
  3529. ba.Material = "Neon"
  3530. ba.Transparency = 1
  3531. ba.CanCollide = false
  3532. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3533. local ignore = Character
  3534. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3535. a.BottomSurface = 10
  3536. a.TopSurface = 10
  3537. a2.BottomSurface = 10
  3538. a2.TopSurface = 10
  3539. local distance = (orb.CFrame.p - position).magnitude
  3540. a.Size = Vector3.new(distance, 1, 0.5)
  3541. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3542. a2.Size = Vector3.new(distance, 1, 0.5)
  3543. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3544. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3545. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3546. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3547. game:GetService("Debris"):AddItem(a, 20)
  3548. game:GetService("Debris"):AddItem(a2, 20)
  3549. game:GetService("Debris"):AddItem(ba, 20)
  3550. local msh = Instance.new("SpecialMesh", a)
  3551. msh.MeshType = "Cylinder"
  3552. msh.Scale = vt(1, 25, 25)
  3553. local msh2 = Instance.new("SpecialMesh", a2)
  3554. msh2.MeshType = "Cylinder"
  3555. msh2.Scale = vt(1, 30, 30)
  3556. for i = 0, 10, 0.1 do
  3557. swait()
  3558. CameraEnshaking(1, 5)
  3559. if COLOURSANALSHIT == 3 then
  3560. a2.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3561. elseif COLOURSANALSHIT == 2 then
  3562. a2.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3563. elseif COLOURSANALSHIT == 1 then
  3564. a2.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3565. end
  3566. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3567. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3568. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3569. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3570. distance = (orb.CFrame.p - position).magnitude
  3571. if typrot == 1 then
  3572. rotation = rotation + 2.5
  3573. elseif typrot == 2 then
  3574. rotation = rotation - 2.5
  3575. end
  3576. RootPart.CFrame = FaceMouse()[1]
  3577. a.Size = Vector3.new(distance, 1, 0.5)
  3578. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3579. a2.Size = Vector3.new(distance, 1, 1)
  3580. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3581. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3582. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3583. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3584. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3585. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  3586. 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)
  3587. 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)
  3588. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3589. end
  3590. a:Destroy()
  3591. a2:Destroy()
  3592. ba:Destroy()
  3593. orb:Destroy()
  3594. orbe:Destroy()
  3595. attack = false
  3596. end
  3597. function UniversalSpark()
  3598. attack = true
  3599. local rngb = Instance.new("Part", char)
  3600. rngb.Anchored = true
  3601. rngb.BrickColor = origcolor
  3602. rngb.CanCollide = false
  3603. rngb.FormFactor = 3
  3604. rngb.Name = "Ring"
  3605. rngb.Material = "Neon"
  3606. rngb.Size = Vector3.new(1, 0.05, 1)
  3607. rngb.Transparency = 1
  3608. rngb.TopSurface = 0
  3609. rngb.BottomSurface = 0
  3610. local rngmb = Instance.new("SpecialMesh", rngb)
  3611. rngmb.MeshType = "Brick"
  3612. rngmb.Name = "SizeMesh"
  3613. rngmb.Scale = vt(0, 1, 0)
  3614. local orb = rngb:Clone()
  3615. orb.Parent = char
  3616. orb.Transparency = 0
  3617. orb.BrickColor = BrickColor.new("White")
  3618. orb.Size = vt(1, 1, 1)
  3619. local orbmish = orb.SizeMesh
  3620. orbmish.Scale = vt(0, 0, 0)
  3621. orbmish.MeshType = "Sphere"
  3622. local orbe = rngb:Clone()
  3623. orbe.Parent = char
  3624. orbe.Transparency = 0.5
  3625. orbe.BrickColor = BrickColor.new("New Yeller")
  3626. orbe.Size = vt(1, 1, 1)
  3627. local orbmish2 = orbe.SizeMesh
  3628. orbmish2.Scale = vt(0, 0, 0)
  3629. orbmish2.MeshType = "Sphere"
  3630. if COLOURSANALSHIT == 3 then
  3631. orbe.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3632. elseif COLOURSANALSHIT == 2 then
  3633. orbe.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3634. elseif COLOURSANALSHIT == 1 then
  3635. orbe.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3636. end
  3637. rngb:Destroy()
  3638. for i = 0, 5, 0.1 do
  3639. swait()
  3640. if rainbowmode == true then
  3641. if COLOURSANALSHIT == 3 then
  3642. orbe.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  3643. elseif COLOURSANALSHIT == 2 then
  3644. orbe.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  3645. elseif COLOURSANALSHIT == 1 then
  3646. orbe.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0,0)
  3647. end
  3648. end
  3649. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3650. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3651. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3652. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3655. 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)
  3656. 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)
  3657. RootPart.CFrame = FaceMouse()[1]
  3658. end
  3659. orbe.Transparency = 1
  3660. orb.Transparency = 1
  3661. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3662. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3663. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  3664. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  3665. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  3666. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  3667. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  3668. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  3669. local xd = Instance.new("Sound", char)
  3670. xd.SoundId = "rbxassetid://445796828"
  3671. xd.Pitch = 0.75
  3672. xd.Looped = true
  3673. xd.Volume = 1.25
  3674. xd:Play()
  3675. local a = Instance.new("Part", Character)
  3676. a.Name = "Direction"
  3677. a.Anchored = true
  3678. a.BrickColor = bc("Alder")
  3679. a.Color = MAINRUINCOLOR.Color
  3680. a.Material = "Neon"
  3681. a.Transparency = 0.5
  3682. a.Shape = "Cylinder"
  3683. a.CanCollide = false
  3684. local a2 = Instance.new("Part", Character)
  3685. a2.Name = "Direction"
  3686. a2.Anchored = true
  3687. a2.BrickColor = bc("New Yeller")
  3688. a2.Color = MAINRUINCOLOR.Color
  3689. a2.Material = "Neon"
  3690. a2.Transparency = 0.5
  3691. a2.Shape = "Cylinder"
  3692. a2.CanCollide = false
  3693. local ba = Instance.new("Part", Character)
  3694. ba.Name = "HitDirect"
  3695. ba.Anchored = true
  3696. ba.BrickColor = bc("Cool yellow")
  3697. ba.Material = "Neon"
  3698. ba.Transparency = 1
  3699. ba.CanCollide = false
  3700. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3701. local ignore = Character
  3702. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3703. a.BottomSurface = 10
  3704. a.TopSurface = 10
  3705. a2.BottomSurface = 10
  3706. a2.TopSurface = 10
  3707. local distance = (orb.CFrame.p - position).magnitude
  3708. a.Size = Vector3.new(distance, 1, 1)
  3709. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3710. a2.Size = Vector3.new(distance, 1, 1)
  3711. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3712. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3713. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3714. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3715. game:GetService("Debris"):AddItem(a, 60)
  3716. game:GetService("Debris"):AddItem(a2, 60)
  3717. game:GetService("Debris"):AddItem(ba, 60)
  3718. local outerscale = 0
  3719. local msh = Instance.new("SpecialMesh", a)
  3720. msh.MeshType = "Cylinder"
  3721. msh.Scale = vt(1, 0, 0)
  3722. local msh2 = Instance.new("SpecialMesh", a2)
  3723. msh2.MeshType = "Cylinder"
  3724. msh2.Scale = vt(1, 0, 0)
  3725. for i = 0, 2, 0.1 do
  3726. swait()
  3727. CameraEnshaking(1, 1)
  3728. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3729. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3730. outerscale = outerscale - 0.015
  3731. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3732. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3733. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3734. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3735. distance = (orb.CFrame.p - position).magnitude
  3736. if typrot == 1 then
  3737. rotation = rotation + 2.5
  3738. elseif typrot == 2 then
  3739. rotation = rotation - 2.5
  3740. end
  3741. RootPart.CFrame = FaceMouse()[1]
  3742. a.Size = Vector3.new(distance, 1, 1)
  3743. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3744. a2.Size = Vector3.new(distance, 1, 1)
  3745. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3746. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3747. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3748. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3749. 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)
  3750. 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)
  3751. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3752. end
  3753. for z = 0, 2 do
  3754. for i = 0, 4, 0.1 do
  3755. swait()
  3756. CameraEnshaking(1, 1)
  3757. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3758. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3759. outerscale = outerscale + 0.015
  3760. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3761. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3762. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3763. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3764. distance = (orb.CFrame.p - position).magnitude
  3765. if typrot == 1 then
  3766. rotation = rotation + 2.5
  3767. elseif typrot == 2 then
  3768. rotation = rotation - 2.5
  3769. end
  3770. RootPart.CFrame = FaceMouse()[1]
  3771. a.Size = Vector3.new(distance, 1, 1)
  3772. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3773. a2.Size = Vector3.new(distance, 1, 1)
  3774. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3775. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3776. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3777. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3778. 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)
  3779. 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)
  3780. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3781. end
  3782. for i = 0, 4, 0.1 do
  3783. swait()
  3784. CameraEnshaking(1, 1)
  3785. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3786. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3787. outerscale = outerscale - 0.015
  3788. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3789. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3790. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3791. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3792. distance = (orb.CFrame.p - position).magnitude
  3793. if typrot == 1 then
  3794. rotation = rotation + 2.5
  3795. elseif typrot == 2 then
  3796. rotation = rotation - 2.5
  3797. end
  3798. RootPart.CFrame = FaceMouse()[1]
  3799. a.Size = Vector3.new(distance, 1, 1)
  3800. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3801. a2.Size = Vector3.new(distance, 1, 1)
  3802. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3803. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3804. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3805. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3806. 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)
  3807. 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)
  3808. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3809. end
  3810. end
  3811. for i = 0, 4, 0.1 do
  3812. swait()
  3813. CameraEnshaking(1, 1)
  3814. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3815. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3816. xd.Volume = xd.Volume - 0.025
  3817. a.Transparency = a.Transparency + 0.025
  3818. a2.Transparency = a2.Transparency + 0.025
  3819. outerscale = outerscale - 0.015
  3820. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3821. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3822. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3823. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3824. distance = (orb.CFrame.p - position).magnitude
  3825. if typrot == 1 then
  3826. rotation = rotation + 2.5
  3827. elseif typrot == 2 then
  3828. rotation = rotation - 2.5
  3829. end
  3830. RootPart.CFrame = FaceMouse()[1]
  3831. a.Size = Vector3.new(distance, 1, 1)
  3832. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3833. a2.Size = Vector3.new(distance, 1, 1)
  3834. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3835. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3836. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3837. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3838. 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)
  3839. 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)
  3840. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3841. end
  3842. xd:Destroy()
  3843. a:Destroy()
  3844. a2:Destroy()
  3845. ba:Destroy()
  3846. orb:Destroy()
  3847. orbe:Destroy()
  3848. attack = false
  3849. end
  3850. function resetmode()
  3851. rainbowmode = false
  3852. chaosmode = false
  3853. bigblack = false
  3854. blueftw = false
  3855. RecolorTextAndRename("Lovely~", Color3.new(0, 0, 0), Color3.fromRGB(255, 152, 220))
  3856. ModeOfGlitch = 1
  3857. storehumanoidWS = 16
  3858. for i, v in pairs(mw2:GetChildren()) do
  3859. if v:IsA("Part") then
  3860. v.BrickColor = BrickColor.new("Pink")
  3861. v.Material = "Neon"
  3862. end
  3863. end
  3864. for i, v in pairs(mw1:GetChildren()) do
  3865. if v:IsA("Part") then
  3866. v.Transparency = 1
  3867. v.BrickColor = BrickColor.new("Pink")
  3868. v.Material = "Neon"
  3869. end
  3870. end
  3871. MAINRUINCOLOR = BrickColor.new("Pink")
  3872. hum.WalkSpeed = 16
  3873. newTheme("rbxassetid://1835397846", 48.6, 1, 1)
  3874. for i, v in pairs(m:GetChildren()) do
  3875. if v:IsA("Part") then
  3876. v.BrickColor = BrickColor.new("Really black")
  3877. v.Material = "Glass"
  3878. end
  3879. end
  3880. for i, v in pairs(m2:GetChildren()) do
  3881. if v:IsA("Part") then
  3882. v.BrickColor = BrickColor.new("Crimson")
  3883. v.Material = "Granite"
  3884. end
  3885. end
  3886. for i, v in pairs(m3:GetChildren()) do
  3887. if v:IsA("Part") then
  3888. v.BrickColor = BrickColor.new("Pink")
  3889. v.Material = "Neon"
  3890. end
  3891. end
  3892. for i, v in pairs(extrawingmod1:GetChildren()) do
  3893. if v:IsA("Part") then
  3894. v.Transparency = 1
  3895. v.BrickColor = BrickColor.new("White")
  3896. v.Material = "Neon"
  3897. end
  3898. end
  3899. for i, v in pairs(extrawingmod2:GetChildren()) do
  3900. if v:IsA("Part") then
  3901. v.Transparency = 1
  3902. v.BrickColor = BrickColor.new("White")
  3903. v.Material = "Neon"
  3904. end
  3905. end
  3906. end
  3907. function attackone()
  3908. attack = true
  3909. for i = 0, 1, 0.1 do
  3910. swait()
  3911. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3912. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3913. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3914. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3915. 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)
  3916. 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)
  3917. end
  3918. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3919. local hitb = Instance.new("Part", char)
  3920. hitb.Anchored = true
  3921. hitb.CanCollide = false
  3922. hitb.FormFactor = 3
  3923. hitb.Name = "Ring"
  3924. hitb.Material = "Neon"
  3925. hitb.Size = Vector3.new(1, 1, 1)
  3926. hitb.Transparency = 1
  3927. hitb.TopSurface = 0
  3928. hitb.BottomSurface = 0
  3929. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3930. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3931. hitb:Destroy()
  3932. for i = 0, 1, 0.1 do
  3933. swait()
  3934. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3935. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3936. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3937. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3938. 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)
  3939. 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)
  3940. end
  3941. attack = false
  3942. end
  3943. function attacktwo()
  3944. attack = true
  3945. for i = 0, 1, 0.1 do
  3946. swait()
  3947. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3948. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3949. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3950. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3951. 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)
  3952. 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)
  3953. end
  3954. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3955. local hitb = Instance.new("Part", char)
  3956. hitb.Anchored = true
  3957. hitb.CanCollide = false
  3958. hitb.FormFactor = 3
  3959. hitb.Name = "Ring"
  3960. hitb.Material = "Neon"
  3961. hitb.Size = Vector3.new(1, 1, 1)
  3962. hitb.Transparency = 1
  3963. hitb.TopSurface = 0
  3964. hitb.BottomSurface = 0
  3965. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3966. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3967. hitb:Destroy()
  3968. for i = 0, 1, 0.1 do
  3969. swait()
  3970. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3971. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3972. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3973. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3974. 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)
  3975. 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)
  3976. end
  3977. attack = false
  3978. end
  3979. function attackthree()
  3980. attack = true
  3981. for i = 0, 1, 0.1 do
  3982. swait()
  3983. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3984. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3985. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3987. 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)
  3988. 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)
  3989. end
  3990. local distlook = 5
  3991. for i = 0, 4 do
  3992. swait(2)
  3993. CameraEnshaking(2, 3)
  3994. local hite = Instance.new("Part", char)
  3995. hite.Anchored = true
  3996. hite.CanCollide = false
  3997. hite.FormFactor = 3
  3998. hite.Name = "Ring"
  3999. hite.Material = "Neon"
  4000. hite.Size = Vector3.new(1, 1, 1)
  4001. hite.Transparency = 1
  4002. hite.TopSurface = 0
  4003. hite.BottomSurface = 0
  4004. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  4005. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  4006. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  4007. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  4008. for i = 0, 2 do
  4009. 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)
  4010. 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)
  4011. 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)
  4012. end
  4013. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  4014. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4015. game:GetService("Debris"):AddItem(hite, 5)
  4016. distlook = distlook + 10
  4017. end
  4018. attack = false
  4019. end
  4020. local attacktype = 1
  4021. mouse.Button1Down:connect(function()
  4022. if attack == false and attacktype == 1 then
  4023. attacktype = 2
  4024. attackone()
  4025. elseif attack == false and attacktype == 2 then
  4026. attacktype = 3
  4027. attacktwo()
  4028. elseif attack == false and attacktype == 3 then
  4029. attacktype = 1
  4030. attackthree()
  4031. elseif attack == false and attacktype == 4 then
  4032. attacktype = 1
  4033. end
  4034. end)
  4035. mouse.KeyDown:connect(function(k)
  4036. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  4037. ModeOfGlitch = 2
  4038. storehumanoidWS = 16
  4039. hum.WalkSpeed = 50
  4040. rainbowmode = false
  4041. chaosmode = false
  4042. bigblack = false
  4043. blueftw = true
  4044. RecolorTextAndRename("Rave Party", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  4045. newTheme("rbxassetid://252917863", 20.25, 1, 1)
  4046. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  4047.  
  4048. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  4049. resetmode()
  4050. end
  4051. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  4052. ModeOfGlitch = 3
  4053. storehumanoidWS = 16
  4054. hum.WalkSpeed = 16
  4055. rainbowmode = false
  4056. chaosmode = false
  4057. bigblack = false
  4058. blueftw = false
  4059. RecolorTextAndRename(""..game.Players.LocalPlayer.Name.." The Zorua", Color3.new(0, 0, 0), Color3.fromRGB(9, 137, 207))
  4060. MAINRUINCOLOR = BrickColor.new("Electric blue")
  4061. newTheme("rbxassetid://1283869370", 58.15, 0.98, 1.25)
  4062. if game.Players.LocalPlayer.Name == "Nebula_Zorua" then
  4063. MAINRUINCOLOR = BrickColor.new("Dark indigo")
  4064. RecolorTextAndRename("Nebula The Purest Zorua", Color3.new(0, 0, 0), Color3.fromRGB(61, 21, 133))
  4065. newTheme("rbxassetid://1274310715", 58.15, 0.98, 1.25)
  4066. elseif game.Players.LocalPlayer.Name == "Tcgc121212" then
  4067. MAINRUINCOLOR = BrickColor.new("Crimson")
  4068. RecolorTextAndRename("Tcgc121212 The Dark Zorua", Color3.new(0, 0, 0), Color3.fromRGB(151, 0, 0))
  4069. newTheme("rbxassetid://1478419503", 58.15, 0.98, 1.25)
  4070. elseif game.Players.LocalPlayer.Name == "2003boobear" then
  4071. MAINRUINCOLOR = BrickColor.new("Pastel blue-green")
  4072. RecolorTextAndRename("2003boobear The Arcane Zorua", Color3.new(0, 0, 0), Color3.fromRGB(159, 243, 233))
  4073. newTheme("rbxassetid://699703714", 58.15, 0.98, 1.25)
  4074. elseif game.Players.LocalPlayer.Name == "Creterisk" then
  4075. MAINRUINCOLOR = BrickColor.new("CGA brown")
  4076. RecolorTextAndRename("Creterisk The Risky Zorua", Color3.new(0, 0, 0), Color3.fromRGB(170, 85, 0))
  4077. newTheme("rbxassetid://225715889", 58.15, 0.98, 1.25)
  4078. end
  4079. for i, v in pairs(mw2:GetChildren()) do
  4080. if v:IsA("Part") then
  4081. v.BrickColor = MAINRUINCOLOR
  4082. v.Material = "Neon"
  4083. end
  4084. end
  4085. for i, v in pairs(mw1:GetChildren()) do
  4086. if v:IsA("Part") then
  4087. v.Transparency = 1
  4088. v.BrickColor = MAINRUINCOLOR
  4089. v.Material = "Neon"
  4090. end
  4091. end
  4092. for i, v in pairs(m:GetChildren()) do
  4093. if v:IsA("Part") then
  4094. v.BrickColor = BrickColor.new("Black")
  4095. v.Material = "Ice"
  4096. end
  4097. end
  4098. for i, v in pairs(m2:GetChildren()) do
  4099. if v:IsA("Part") then
  4100. v.BrickColor = MAINRUINCOLOR
  4101. v.Material = "Glass"
  4102. end
  4103. end
  4104. for i, v in pairs(m3:GetChildren()) do
  4105. if v:IsA("Part") then
  4106. v.BrickColor = MAINRUINCOLOR
  4107. v.Material = "Neon"
  4108. end
  4109. end
  4110. for i, v in pairs(extrawingmod1:GetChildren()) do
  4111. if v:IsA("Part") then
  4112. v.Transparency = 1
  4113. v.BrickColor = BrickColor.new("White")
  4114. v.Material = "Neon"
  4115. end
  4116. end
  4117. for i, v in pairs(extrawingmod2:GetChildren()) do
  4118. if v:IsA("Part") then
  4119. v.Transparency = 1
  4120. v.BrickColor = BrickColor.new("White")
  4121. v.Material = "Neon"
  4122. end
  4123. end
  4124. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  4125. resetmode()
  4126. end
  4127. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  4128. ModeOfGlitch = 4
  4129. storehumanoidWS = 16
  4130. hum.WalkSpeed = 16
  4131. rainbowmode = false
  4132. chaosmode = true
  4133. blueftw = false
  4134. RecolorTextAndRename("CHAOTICALLY FAILED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4135. newTheme("rbxassetid://937618940", 48.6, 1, 1)
  4136. MAINRUINCOLOR = BrickColor.new("Black")
  4137. for i, v in pairs(mw2:GetChildren()) do
  4138. if v:IsA("Part") then
  4139. v.BrickColor = MAINRUINCOLOR
  4140. v.Material = "Neon"
  4141. end
  4142. end
  4143. for i, v in pairs(mw1:GetChildren()) do
  4144. if v:IsA("Part") then
  4145. v.Transparency = 0.75
  4146. v.BrickColor = BrickColor.random()
  4147. v.Material = "Neon"
  4148. end
  4149. end
  4150. for i, v in pairs(m:GetChildren()) do
  4151. if v:IsA("Part") then
  4152. v.BrickColor = BrickColor.new("Black")
  4153. v.Material = "Neon"
  4154. end
  4155. end
  4156. for i, v in pairs(m2:GetChildren()) do
  4157. if v:IsA("Part") then
  4158. v.BrickColor = BrickColor.random()
  4159. v.Material = "Neon"
  4160. end
  4161. end
  4162. for i, v in pairs(m3:GetChildren()) do
  4163. if v:IsA("Part") then
  4164. v.BrickColor = BrickColor.new("Black")
  4165. v.Material = "Neon"
  4166. end
  4167. end
  4168. for i, v in pairs(extrawingmod1:GetChildren()) do
  4169. if v:IsA("Part") then
  4170. v.Transparency = 1
  4171. v.BrickColor = BrickColor.new("White")
  4172. v.Material = "Neon"
  4173. end
  4174. end
  4175. for i, v in pairs(extrawingmod2:GetChildren()) do
  4176. if v:IsA("Part") then
  4177. v.Transparency = 1
  4178. v.BrickColor = BrickColor.new("White")
  4179. v.Material = "Neon"
  4180. end
  4181. end
  4182. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  4183. resetmode()
  4184. end
  4185. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  4186. ModeOfGlitch = 5
  4187. storehumanoidWS = 16
  4188. hum.WalkSpeed = 16
  4189. rainbowmode = false
  4190. chaosmode = false
  4191. bigblack = false
  4192. blueftw = false
  4193. RecolorTextAndRename("Too Hawt~", Color3.new(1, 1, 1), Color3.fromRGB(213, 115, 61))
  4194. newTheme("rbxassetid://342725145", 0, 1.02, 10)
  4195. MAINRUINCOLOR = BrickColor.new("Neon orange")
  4196. for i, v in pairs(mw2:GetChildren()) do
  4197. if v:IsA("Part") then
  4198. v.BrickColor = MAINRUINCOLOR
  4199. v.Material = "Neon"
  4200. end
  4201. end
  4202. for i, v in pairs(mw1:GetChildren()) do
  4203. if v:IsA("Part") then
  4204. v.Transparency = 0
  4205. v.BrickColor = MAINRUINCOLOR
  4206. v.Material = "Neon"
  4207. end
  4208. end
  4209. for i, v in pairs(m:GetChildren()) do
  4210. if v:IsA("Part") then
  4211. v.BrickColor = BrickColor.new("Neon orange")
  4212. v.Material = "Ice"
  4213. end
  4214. end
  4215. for i, v in pairs(m2:GetChildren()) do
  4216. if v:IsA("Part") then
  4217. v.BrickColor = BrickColor.new("Neon orange")
  4218. v.Material = "Ice"
  4219. end
  4220. end
  4221. for i, v in pairs(m3:GetChildren()) do
  4222. if v:IsA("Part") then
  4223. v.BrickColor = BrickColor.new("Neon orange")
  4224. v.Material = "Neon"
  4225. end
  4226. end
  4227. for i, v in pairs(extrawingmod1:GetChildren()) do
  4228. if v:IsA("Part") then
  4229. v.Transparency = 1
  4230. v.BrickColor = BrickColor.new("White")
  4231. v.Material = "Neon"
  4232. end
  4233. end
  4234. for i, v in pairs(extrawingmod2:GetChildren()) do
  4235. if v:IsA("Part") then
  4236. v.Transparency = 1
  4237. v.BrickColor = BrickColor.new("White")
  4238. v.Material = "Neon"
  4239. end
  4240. end
  4241. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  4242. resetmode()
  4243. end
  4244.  
  4245. function balls()
  4246. local ball = Instance.new("Part", workspace)
  4247. ball.Shape = "Ball"
  4248. ball.Transparency = 0
  4249. ball.Material = "Neon"
  4250. ball.Size = Vector3.new(5,5,5)
  4251. ball.Color = Color3.fromRGB(0,0,0)
  4252. ball.CanCollide = false
  4253. ball.Anchored = true
  4254. ball.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  4255. for i = 1,25 do
  4256. ball.Size = ball.Size + Vector3.new(1,1,1)
  4257. ball.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  4258. ball.Transparency = ball.Transparency + 0.04
  4259. game:GetService("RunService").RenderStepped:wait()
  4260. end
  4261. end
  4262. function balls2()
  4263. local ball = Instance.new("Part", workspace)
  4264. ball.Shape = "Ball"
  4265. ball.Transparency = 0
  4266. ball.Material = "Neon"
  4267. ball.Size = Vector3.new(0.1,0.1,0.1)
  4268. ball.Color = Color3.fromRGB(0,0,0)
  4269. ball.CanCollide = false
  4270. ball.Anchored = true
  4271. ball.CFrame = LeftArm.CFrame
  4272. for i = 1,25 do
  4273. ball.Size = ball.Size + Vector3.new(0.1,0.1,0.1)
  4274. ball.CFrame = LeftArm.CFrame
  4275. ball.Transparency = ball.Transparency + 0.04
  4276. game:GetService("RunService").RenderStepped:wait()
  4277. end
  4278. end
  4279. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  4280. attack = true
  4281. for i = 0,1 , 0.03 do
  4282. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0) * angles(Rad(30 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4283. RW.C0 = clerp(RW.C0, cf(1.5, 0.67, 0) * angles(math.rad(0), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  4284. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  4285. game:GetService("RunService").RenderStepped:wait()
  4286. end
  4287. kan:Stop()
  4288. newTheme("rbxassetid://183142252", 0, 1, 1)
  4289. kan:Play()
  4290. chatfunc("riddle me this", BrickColor.new("Really black").Color)
  4291. for i = 0,1 , 0.03 do
  4292. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0) * angles(Rad(30 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4293. RW.C0 = clerp(RW.C0, cf(1.5, 0.67, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4294. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-40)), 0.1)
  4295. game:GetService("RunService").RenderStepped:wait()
  4296. end
  4297. wait(2.2)
  4298. chatfunc("riddle me that", BrickColor.new("Really black").Color)
  4299. for i = 0,1 , 0.03 do
  4300. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0) * angles(Rad(30 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4301. RW.C0 = clerp(RW.C0, cf(1.5, 0.67, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4302. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(40)), 0.1)
  4303. game:GetService("RunService").RenderStepped:wait()
  4304. end
  4305. wait(1.97)
  4306. chatfunc("whos afraid of the Big Black-", BrickColor.new("Really black").Color)
  4307. for i = 0,1 , 0.03 do
  4308. 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(-10)), 0.1)
  4309. 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(10)), 0.1)
  4310. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  4311. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4312. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4313. RW.C0 = clerp(RW.C0, cf(0.9, 0.87, -0.7) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  4314. LW.C0 = clerp(LW.C0, cf(-0.9, 0.25, -0.7) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  4315. game:GetService("RunService").RenderStepped:wait()
  4316. end
  4317. wait(1)
  4318. balls()
  4319. attack = false
  4320. ModeOfGlitch = 6
  4321. storehumanoidWS = 75
  4322. hum.WalkSpeed = 75
  4323. rainbowmode = false
  4324. chaosmode = false
  4325. blueftw = false
  4326. RecolorTextAndRename("Big Black", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  4327. bigblack = true
  4328. coroutine.resume(coroutine.create(function()
  4329. while true do
  4330. swait(2)
  4331. if bigblack == true then
  4332. balls2()
  4333. end
  4334. end
  4335. end))
  4336.  
  4337. MAINRUINCOLOR = BrickColor.new("Really black")
  4338. for i, v in pairs(mw2:GetChildren()) do
  4339. if v:IsA("Part") then
  4340. v.BrickColor = MAINRUINCOLOR
  4341. v.Material = "Neon"
  4342. end
  4343. end
  4344. for i, v in pairs(mw1:GetChildren()) do
  4345. if v:IsA("Part") then
  4346. v.Transparency = 0
  4347. v.BrickColor = MAINRUINCOLOR
  4348. v.Material = "Neon"
  4349. end
  4350. end
  4351. for i, v in pairs(m:GetChildren()) do
  4352. if v:IsA("Part") then
  4353. v.BrickColor = BrickColor.new("Really black")
  4354. v.Material = "Ice"
  4355. end
  4356. end
  4357. for i, v in pairs(m2:GetChildren()) do
  4358. if v:IsA("Part") then
  4359. v.BrickColor = BrickColor.new("Really black")
  4360. v.Material = "Ice"
  4361. end
  4362. end
  4363. for i, v in pairs(m3:GetChildren()) do
  4364. if v:IsA("Part") then
  4365. v.BrickColor = BrickColor.new("Really black")
  4366. v.Material = "Neon"
  4367. end
  4368. end
  4369. for i, v in pairs(extrawingmod1:GetChildren()) do
  4370. if v:IsA("Part") then
  4371. v.Transparency = 1
  4372. v.BrickColor = BrickColor.new("Really black")
  4373. v.Material = "Neon"
  4374. end
  4375. end
  4376. for i, v in pairs(extrawingmod2:GetChildren()) do
  4377. if v:IsA("Part") then
  4378. v.Transparency = 1
  4379. v.BrickColor = BrickColor.new("Really black")
  4380. v.Material = "Neon"
  4381. end
  4382. end
  4383. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4384. resetmode()
  4385. end
  4386. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4387. ModeOfGlitch = 6127843
  4388. storehumanoidWS = 50
  4389. hum.WalkSpeed = 50
  4390. rainbowmode = true
  4391. chaosmode = false
  4392. bigblack = false
  4393. blueftw = false
  4394. RecolorTextAndRename("Nature", Color3.fromRGB(0, kan.PlaybackLoudness -4, 0), Color3.fromRGB(0, kan.PlaybackLoudness -4, 0))
  4395. newTheme("rbxassetid://147372923", 0, 1, 1)
  4396. MAINRUINCOLOR = BrickColor.new("White")
  4397. for i, v in pairs(mw2:GetChildren()) do
  4398. if v:IsA("Part") then
  4399. v.BrickColor = MAINRUINCOLOR
  4400. v.Material = "Neon"
  4401. end
  4402. end
  4403. for i, v in pairs(mw1:GetChildren()) do
  4404. if v:IsA("Part") then
  4405. v.Transparency = 0
  4406. v.BrickColor = MAINRUINCOLOR
  4407. v.Material = "Neon"
  4408. end
  4409. end
  4410. for i, v in pairs(m:GetChildren()) do
  4411. if v:IsA("Part") then
  4412. v.BrickColor = BrickColor.new("White")
  4413. v.Material = "Neon"
  4414. end
  4415. end
  4416. for i, v in pairs(m2:GetChildren()) do
  4417. if v:IsA("Part") then
  4418. v.BrickColor = BrickColor.new("White")
  4419. v.Material = "Neon"
  4420. end
  4421. end
  4422. for i, v in pairs(m3:GetChildren()) do
  4423. if v:IsA("Part") then
  4424. v.BrickColor = BrickColor.new("White")
  4425. v.Material = "Neon"
  4426. end
  4427. end
  4428. for i, v in pairs(extrawingmod1:GetChildren()) do
  4429. if v:IsA("Part") then
  4430. v.Transparency = 1
  4431. v.BrickColor = BrickColor.new("White")
  4432. v.Material = "Neon"
  4433. end
  4434. end
  4435. for i, v in pairs(extrawingmod2:GetChildren()) do
  4436. if v:IsA("Part") then
  4437. v.Transparency = 1
  4438. v.BrickColor = BrickColor.new("White")
  4439. v.Material = "Neon"
  4440. end
  4441. end
  4442. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4443. resetmode()
  4444. end
  4445. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4446. ModeOfGlitch = 1000000
  4447. storehumanoidWS = 100
  4448. hum.WalkSpeed = 100
  4449. rainbowmode = false
  4450. chaosmode = false
  4451. bigblack = false
  4452. blueftw = false
  4453. RecolorTextAndRename("Calamity", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4454. newTheme("rbxassetid://1359036559", 0, 1, 1)
  4455. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4456. for i, v in pairs(mw2:GetChildren()) do
  4457. if v:IsA("Part") then
  4458. v.BrickColor = MAINRUINCOLOR
  4459. v.Material = "Neon"
  4460. end
  4461. end
  4462. for i, v in pairs(mw1:GetChildren()) do
  4463. if v:IsA("Part") then
  4464. v.Transparency = 0
  4465. v.BrickColor = MAINRUINCOLOR
  4466. v.Material = "Neon"
  4467. end
  4468. end
  4469. for i, v in pairs(m:GetChildren()) do
  4470. if v:IsA("Part") then
  4471. v.BrickColor = BrickColor.random()
  4472. v.Material = "Neon"
  4473. end
  4474. end
  4475. for i, v in pairs(m2:GetChildren()) do
  4476. if v:IsA("Part") then
  4477. v.Color = Color3.new(0.25, 0, 1)
  4478. v.Material = "Neon"
  4479. end
  4480. end
  4481. for i, v in pairs(m3:GetChildren()) do
  4482. if v:IsA("Part") then
  4483. v.Color = Color3.new(0.45, 0, 1)
  4484. v.Material = "Neon"
  4485. end
  4486. end
  4487. for i, v in pairs(extrawingmod1:GetChildren()) do
  4488. if v:IsA("Part") then
  4489. v.Transparency = 0
  4490. v.Color = Color3.new(0.25, 0, 1)
  4491. v.Material = "Neon"
  4492. end
  4493. end
  4494. for i, v in pairs(extrawingmod2:GetChildren()) do
  4495. if v:IsA("Part") then
  4496. v.Transparency = 0
  4497. v.Color = Color3.new(0.5, 0, 1)
  4498. v.Material = "Neon"
  4499. end
  4500. end
  4501. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4502. resetmode()
  4503. end
  4504. if k == "l" and toggleTag == false then
  4505. toggleTag = true
  4506. text.TextTransparency = 0
  4507. text.TextStrokeTransparency = 0
  4508. elseif k == "l" and toggleTag == true then
  4509. toggleTag = false
  4510. text.TextTransparency = 1
  4511. text.TextStrokeTransparency = 1
  4512. end
  4513. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  4514. local NEWSOUND = nil
  4515. coroutine.resume(coroutine.create(function()
  4516. NEWSOUND = S:Clone()
  4517. NEWSOUND.Parent = PARENT
  4518. NEWSOUND.Volume = VOLUME
  4519. NEWSOUND.Pitch = PITCH
  4520. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  4521. NEWSOUND:play()
  4522. if DOESLOOP == true then
  4523. NEWSOUND.Looped = true
  4524. else
  4525. repeat wait(1) until NEWSOUND.Playing == false
  4526. NEWSOUND:remove()
  4527. end
  4528. end))
  4529. return NEWSOUND
  4530. end
  4531. local SIZE = 1
  4532. function Swait(NUMBER)
  4533. if NUMBER == 0 or NUMBER == nil then
  4534. ArtificialHB.Event:wait()
  4535. else
  4536. for i = 1, NUMBER do
  4537. ArtificialHB.Event:wait()
  4538. end
  4539. end
  4540. end
  4541.  
  4542. function Taunt()
  4543. attack = true
  4544. local LAUGH = nil
  4545. coroutine.resume(coroutine.create(function()
  4546. repeat
  4547. Swait()
  4548. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  4549. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  4550. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4551. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4552. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4553. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4554. until LAUGH ~= nil
  4555. repeat
  4556. Swait()
  4557. LAUGH.Parent = Head
  4558. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  4559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  4560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4561. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4562. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4563. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  4564. until LAUGH.Playing == false
  4565. attack = false
  4566. end))
  4567. wait(0.1)
  4568. kan:Pause()
  4569. LAUGH = CreateSound(525166232, Head, 10, 1, false)
  4570. wait(1)
  4571. kan:Resume()
  4572. end
  4573. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4574. ExtinctiveHeartbreak()
  4575. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4576. PureBomb()
  4577. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4578. scattercorrupt()
  4579. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4580. ChaosGroundStrike()
  4581. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4582. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4583. UniversalSpark()
  4584. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4585. yinyangi()
  4586. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4587. Wip()
  4588. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  4589. HolyBarrier()
  4590. elseif k == "1" and attack == false and ModeOfGlitch == 6127843 then
  4591. notanotherone()
  4592. end
  4593. if k == "e" and attack == false and ModeOfGlitch == 4 and plr.Name == "SomeBitch" then
  4594. ChaosBegone()
  4595. elseif k == "wip" and attack == false and ModeOfGlitch == 6127843 then
  4596. Taunt()
  4597. end
  4598. end)
  4599. coroutine.resume(coroutine.create(function()
  4600. while true do
  4601. swait(2)
  4602. if rainbowmode == true or ModeOfGlitch == 6 then
  4603. 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)
  4604. end
  4605. end
  4606. end))
  4607. coroutine.resume(coroutine.create(function()
  4608. while true do
  4609. swait(0.5)
  4610. if ModeOfGlitch == 1000000 then
  4611. 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)
  4612. end
  4613. end
  4614. end))
  4615. coroutine.resume(coroutine.create(function()
  4616. while true do
  4617. swait(2)
  4618. if chaosmode == true then
  4619. RecolorTextAndRename("CHAOTICALLY FAILED", Color3.new(0, 0, 0), BrickColor.random().Color)
  4620. for i, v in pairs(mw1:GetChildren()) do
  4621. if v:IsA("Part") then
  4622. v.Transparency = 0.75
  4623. v.BrickColor = BrickColor.random()
  4624. v.Material = "Neon"
  4625. end
  4626. end
  4627. for i, v in pairs(m2:GetChildren()) do
  4628. if v:IsA("Part") then
  4629. v.BrickColor = BrickColor.random()
  4630. v.Material = "Neon"
  4631. end
  4632. end
  4633. end
  4634. end
  4635. end))
  4636. coroutine.resume(coroutine.create(function()
  4637. while true do
  4638. swait(0.1)
  4639. if blueftw == true then
  4640. for i, v in pairs(mw2:GetChildren()) do
  4641. if v:IsA("Part") then
  4642. RecolorTextAndRename("Rave Party", Color3.new(1, 1, 1), Color3.new(Sanic.Color))
  4643. Sanic = SanicScreams[math.random(1,#SanicScreams)]
  4644. v.BrickColor = BrickColor.new(Sanic)
  4645. v.Material = "Neon"
  4646. end
  4647. end
  4648. for i, v in pairs(mw1:GetChildren()) do
  4649. if v:IsA("Part") then
  4650. v.Transparency = 1
  4651. v.BrickColor = BrickColor.new(Sanic)
  4652. v.Material = "Neon"
  4653. end
  4654. end
  4655. for i, v in pairs(m:GetChildren()) do
  4656. if v:IsA("Part") then
  4657. v.BrickColor = BrickColor.new(Sanic)
  4658. v.Material = "Ice"
  4659. end
  4660. end
  4661. for i, v in pairs(m2:GetChildren()) do
  4662. if v:IsA("Part") then
  4663. v.BrickColor = BrickColor.new(Sanic)
  4664. v.Material = "Glass"
  4665. end
  4666. end
  4667. for i, v in pairs(m3:GetChildren()) do
  4668. if v:IsA("Part") then
  4669. v.BrickColor = BrickColor.new(Sanic)
  4670. v.Material = "Neon"
  4671. end
  4672. end
  4673. for i, v in pairs(extrawingmod1:GetChildren()) do
  4674. if v:IsA("Part") then
  4675. v.Transparency = 1
  4676. v.BrickColor = BrickColor.new(Sanic)
  4677. v.Material = "Neon"
  4678. end
  4679. end
  4680. for i, v in pairs(extrawingmod2:GetChildren()) do
  4681. if v:IsA("Part") then
  4682. v.Transparency = 1
  4683. v.BrickColor = BrickColor.new("White")
  4684. v.Material = "Neon"
  4685. end
  4686. end
  4687. end
  4688. end
  4689. end))
  4690. Humanoid.Name = "STARGLITCHER"
  4691. Humanoid.MaxHealth = math.huge
  4692. Humanoid.Health = math.huge
  4693. Instance.new("ForceField", char).Visible = false
  4694. Humanoid.Animator.Parent = nil
  4695. idleanim = 0.4
  4696. while true do
  4697. plr.Chatted:connect(function(message)
  4698. if message:sub(1,4) == "play" then
  4699. kan:Stop()
  4700. newTheme("rbxassetid://"..message:sub(6), 0, 1, 1)
  4701. kan:Play()
  4702. end
  4703. end)
  4704. local ohmy = "hai"
  4705. plr.Chatted:connect(function(message)
  4706. if message:sub(1,4) == "Color" then
  4707. local ohmy = message:sub(6)
  4708. COLOURSANALSHIT = ohmy
  4709. end
  4710. end)
  4711. if rainbowmode == true then
  4712. discord = true
  4713. MAINRUINCOLOR = BrickColor.new("Medium blue")
  4714. if COLOURSANALSHIT == 3 then
  4715. RecolorTextAndRename("Nature", Color3.fromRGB(0, kan.PlaybackLoudness -4, 0), Color3.fromRGB(0, kan.PlaybackLoudness -4, 0))
  4716. for i, v in pairs(m:GetChildren()) do
  4717. if v:IsA("Part") then
  4718. v.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  4719. end
  4720. end
  4721. for i, v in pairs(m2:GetChildren()) do
  4722. if v:IsA("Part") then
  4723. v.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  4724. end
  4725. end
  4726. for i, v in pairs(m3:GetChildren()) do
  4727. if v:IsA("Part") then
  4728. v.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  4729. end
  4730. end
  4731. for i, v in pairs(mw1:GetChildren()) do
  4732. if v:IsA("Part") then
  4733. v.Color = Color3.fromRGB(0, kan.PlaybackLoudness/10, 0)
  4734. v.Material = "Neon"
  4735. end
  4736. end
  4737. for i, v in pairs(mw2:GetChildren()) do
  4738. if v:IsA("Part") then
  4739. v.Color = Color3.fromRGB(0,kan.PlaybackLoudness/10, 0)
  4740. v.Material = "Neon"
  4741. end
  4742. end
  4743. elseif COLOURSANALSHIT == 2 then
  4744. RecolorTextAndRename("Water", Color3.fromRGB(0, 0, kan.PlaybackLoudness/10), Color3.fromRGB(0, 0, kan.PlaybackLoudness/10))
  4745. for i, v in pairs(m:GetChildren()) do
  4746. if v:IsA("Part") then
  4747. v.Color = Color3.fromRGB(0, 0, kan.PlaybackLoudness/10)
  4748. end
  4749. end
  4750. for i, v in pairs(m2:GetChildren()) do
  4751. if v:IsA("Part") then
  4752. v.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  4753. end
  4754. end
  4755. for i, v in pairs(m3:GetChildren()) do
  4756. if v:IsA("Part") then
  4757. v.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  4758. end
  4759. end
  4760. for i, v in pairs(mw1:GetChildren()) do
  4761. if v:IsA("Part") then
  4762. v.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  4763. v.Material = "Neon"
  4764. end
  4765. end
  4766. for i, v in pairs(mw2:GetChildren()) do
  4767. if v:IsA("Part") then
  4768. v.Color = Color3.fromRGB(0,0, kan.PlaybackLoudness/10)
  4769. v.Material = "Neon"
  4770. end
  4771. end
  4772. elseif COLOURSANALSHIT == 1 then
  4773. RecolorTextAndRename("Flames", Color3.fromRGB(kan.PlaybackLoudness/10, 0, 0), Color3.fromRGB(kan.PlaybackLoudness/10, 0, 0))
  4774. for i, v in pairs(m:GetChildren()) do
  4775. if v:IsA("Part") then
  4776. v.Color = Color3.fromRGB(kan.PlaybackLoudness/10, 0, 0)
  4777. end
  4778. end
  4779. for i, v in pairs(m2:GetChildren()) do
  4780. if v:IsA("Part") then
  4781. v.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0, 0)
  4782. end
  4783. end
  4784. for i, v in pairs(m3:GetChildren()) do
  4785. if v:IsA("Part") then
  4786. v.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0, 0)
  4787. end
  4788. end
  4789. for i, v in pairs(mw1:GetChildren()) do
  4790. if v:IsA("Part") then
  4791. v.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0, 0)
  4792. v.Material = "Neon"
  4793. end
  4794. end
  4795. for i, v in pairs(mw2:GetChildren()) do
  4796. if v:IsA("Part") then
  4797. v.Color = Color3.fromRGB(kan.PlaybackLoudness/10,0, 0)
  4798. v.Material = "Neon"
  4799. end
  4800. end
  4801. elseif rainbowmode == false then
  4802. discord = false
  4803. end
  4804. end
  4805.  
  4806.  
  4807. CameraManager()
  4808. swait()
  4809. lwing1weld.C1 = clerp(lwing1weld.C1, cf(2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(12.5 + 5 * math.cos(sine / 32))), 0.3)
  4810. lwing2weld.C1 = clerp(lwing2weld.C1, cf(3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(25 + 7.5 * math.cos(sine / 32))), 0.3)
  4811. lwing3weld.C1 = clerp(lwing3weld.C1, cf(3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(37.5 + 10 * math.cos(sine / 32))), 0.3)
  4812. lwing4weld.C1 = clerp(lwing4weld.C1, cf(4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(50 + 12.5 * math.cos(sine / 32))), 0.3)
  4813. lwing5weld.C1 = clerp(lwing5weld.C1, cf(5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(62.5 + 15 * math.cos(sine / 32))), 0.3)
  4814. lwing6weld.C1 = clerp(lwing6weld.C1, cf(6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(75 + 17.5 * math.cos(sine / 32))), 0.3)
  4815. rwing1weld.C1 = clerp(rwing1weld.C1, cf(-2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(-12.5 - 5 * math.cos(sine / 32))), 0.3)
  4816. rwing2weld.C1 = clerp(rwing2weld.C1, cf(-3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(-25 - 7.5 * math.cos(sine / 32))), 0.3)
  4817. rwing3weld.C1 = clerp(rwing3weld.C1, cf(-3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(-37.5 - 10 * math.cos(sine / 32))), 0.3)
  4818. rwing4weld.C1 = clerp(rwing4weld.C1, cf(-4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(-50 - 12.5 * math.cos(sine / 32))), 0.3)
  4819. rwing5weld.C1 = clerp(rwing5weld.C1, cf(-5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(-62.5 - 15 * math.cos(sine / 32))), 0.3)
  4820. rwing6weld.C1 = clerp(rwing6weld.C1, cf(-6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(-75 - 17.5 * math.cos(sine / 32))), 0.3)
  4821. sine = sine + change
  4822. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4823. local velderp = RootPart.Velocity.y
  4824. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4825. if equipped == true or equipped == false then
  4826. if attack == false then
  4827. idle = idle + 1
  4828. else
  4829. idle = 0
  4830. end
  4831. if not (idle >= 500) or attack == false then
  4832. end
  4833. if RootPart.Velocity.y > 1 and hitfloor == nil then
  4834. Anim = "Jump"
  4835. if attack == false then
  4836. 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)
  4837. 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)
  4838. 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)
  4839. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  4840. 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)
  4841. 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)
  4842. end
  4843. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  4844. Anim = "Fall"
  4845. if attack == false then
  4846. 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)
  4847. 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)
  4848. 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)
  4849. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4850. 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)
  4851. 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)
  4852. end
  4853. elseif torvel < 1 and hitfloor ~= nil then
  4854. Anim = "Idle"
  4855. if attack == false then
  4856. if ModeOfGlitch == 1 then
  4857. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(10)), 0.15)
  4858. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 30)), Rad(0), Rad(-10)), 0.3)
  4859. RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15)
  4860. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15)
  4861. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(13 - 2.5 * Sin(sine / 20))), 0.1)
  4862. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-13 + 2.5 * Sin(sine / 20))), 0.1)
  4863. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  4864. 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(-7.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  4865. 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 + 1 * math.cos(sine / 34))), 0.1)
  4866. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  4867. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  4868. RW.C0 = clerp(RW.C0, cf(0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(30 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-100 - 2.5 * math.cos(sine / 28))), 0.1)
  4869. LW.C0 = clerp(LW.C0, cf(-0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(40 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(90 + 2.5 * math.cos(sine / 28))), 0.1)
  4870. elseif ModeOfGlitch == 6127843 then
  4871. 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(-7.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  4872. 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 + 1 * math.cos(sine / 34))), 0.1)
  4873. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  4874. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  4875. RW.C0 = clerp(RW.C0, cf(0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(30 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-100 - 2.5 * math.cos(sine / 28))), 0.1)
  4876. LW.C0 = clerp(LW.C0, cf(-0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(40 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(90 + 2.5 * math.cos(sine / 28))), 0.1)
  4877. elseif ModeOfGlitch == 3 then
  4878. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08)
  4879. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.08)
  4880. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.08)
  4881. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.08)
  4882. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(25 + 10.5 * Sin(sine / 20))), 0.08)
  4883. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-25 - 10.5 * Sin(sine / 20))), 0.08)
  4884. elseif ModeOfGlitch == 4 then
  4885. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.2 + 0.1 * Cos(sine / 7)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  4886. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45), Rad(0), Rad(-20)), 0.3)
  4887. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 7)) * angles(Rad(10 + Mrandom(-6,6)), Rad(0), Rad(Mrandom(-6,6))), 0.15)
  4888. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4889. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(180 + Mrandom(-35,35)), Rad(35 + Mrandom(-35,35)), Rad(-50 - 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1)
  4890. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(15 + Mrandom(-35,35)), Rad(Mrandom(-35,35)), Rad(-15 + 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1)
  4891. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 7), -.2 + 0.025 * Cos(sine / 7)) * RHCF * angles(Rad(-5 + Mrandom(-6,6)), Rad(0), Rad(10 + Mrandom(-6,6))), 0.15)
  4892. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 7), 0.025 * Cos(sine / 7)) * LHCF * angles(Rad(-5 + Mrandom(-6,6)), Rad(0), Rad(-10 + Mrandom(-6,6))), 0.15)
  4893. elseif ModeOfGlitch == 5 then
  4894. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  4895. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  4896. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  4897. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  4898. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4899. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-76), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4900. RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(180), math.rad(0), math.rad(-30)), 0.1)
  4901. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(180), math.rad(0), math.rad(30)), 0.1)
  4902. elseif ModeOfGlitch == 6 then
  4903. 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(-10)), 0.1)
  4904. 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(10)), 0.1)
  4905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  4906. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4907. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1)
  4908. RW.C0 = clerp(RW.C0, cf(1.5, 0.67, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  4909. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(200), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  4910. elseif ModeOfGlitch == 1000000 then
  4911. 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(-10)), 0.1)
  4912. 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(10)), 0.1)
  4913. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  4914. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  4915. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  4916. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  4917. end
  4918. end
  4919. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4920. Anim = "Walk"
  4921. if attack == false then
  4922. if ModeOfGlitch == 1 or ModeOfGlitch == 3 then
  4923. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, 2 + 0.3 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15)
  4924. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  4925. RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15)
  4926. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15)
  4927. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
  4928. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1)
  4929. elseif ModeOfGlitch == 2 then
  4930. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  4931. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4932. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4933. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4934. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  4935. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  4936. elseif ModeOfGlitch == 4 then
  4937. tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(55 + Mrandom(-20,20)), Rad(Mrandom(-20,20)), Rad(-0 + Mrandom(-20,20))), 1)
  4938. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(0)), 0.15)
  4939. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(55), Rad(0), Rad(-0)), 0.3)
  4940. RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + Mrandom(-23,23)), Rad(0 + Mrandom(-23,23)), Rad(35 + Mrandom(-23,23))), 0.15)
  4941. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + Mrandom(-23,23)), Rad(0 + Mrandom(-23,23)), Rad(-35 + Mrandom(-23,23))), 0.15)
  4942. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(35 + Mrandom(-23,23)), Rad(-10 + Mrandom(-23,23)), Rad(15 + Mrandom(-23,23))), 0.1)
  4943. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(35 + Mrandom(-23,23)), Rad(10 + Mrandom(-23,23)), Rad(-15 + Mrandom(-23,23))), 0.1)
  4944. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  4945. RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  4946. LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  4947. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1)
  4948. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 5 * math.cos(sine / 8))), 0.1)
  4949. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1)
  4950. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 8)), math.rad(0), math.rad(-10 + 10 * math.cos(sine / 4))), 0.1)
  4951. end
  4952. end
  4953. elseif torvel >= 22 and hitfloor ~= nil then
  4954. Anim = "Run"
  4955. if attack == false then
  4956. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  4957. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  4958. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4959. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4960. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4961. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  4962. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  4963. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  4964. 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)
  4965. 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)
  4966. 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)
  4967. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4968. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30 + 2.5 * math.cos(sine / 28))), 0.2)
  4969. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30 - 2.5 * math.cos(sine / 28))), 0.2)
  4970. end
  4971. end
  4972. end
  4973. end
  4974. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement