Advertisement
Leodu41

star glitch or

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