Advertisement
Diamond_Nicholas

test 6

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