Advertisement
Guest User

no why the sun is a deadly laser

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