Advertisement
TheStarGlitcher007

Untitled

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