Advertisement
SlySlixty

Untitled

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