Advertisement
Guest User

Untitled

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