Advertisement
5325325325

Untitled

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