Advertisement
Christoffer07700Extr

sdasd

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