Advertisement
UiiN2IPCEO

star glitcher

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