Advertisement
Guest User

Untitled

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