Advertisement
MaxNutellaOML

starglitcher

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