Advertisement
DaOMEGAa32

edit

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