Advertisement
Gummi_Shark

Untitled

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