Advertisement
EARTHWORM_SALLY

Starglitcher

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