Advertisement
DerpzDeNugget

Derpz Glitcher [FINAL & RELEASED]

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