Advertisement
UnknownZealot

Star Glitcher - NON FE

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