Advertisement
gdgrg

rerererer

Aug 30th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.53 KB | None | 0 0
  1. wait(4)
  2. local Player = game:GetService("Players").LocalPlayer
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  61. end
  62.  
  63.  
  64.  
  65. warn([[Derpz's Gun Loaded.
  66. Pew Pew, Your dead.
  67.  
  68. Base by Noobygames12, Made by DerpzDeNugget_YT
  69. ]])
  70.  
  71.  
  72. ------------- ORIGINAL WIELDER: DerpzDeNugget_YT
  73. print([[Icons:
  74. ! = New
  75. ? = Spoilers
  76. * = Exclusivity
  77. C = Changes
  78.  
  79. ]])
  80. warn([[V 0.1 Update Log:
  81. ! - Started!]])
  82. --- its obs smooth af do not touch
  83. ---- Sources and functions might be taken from others
  84. plr = game:GetService("Players").LocalPlayer
  85. char = plr.Character
  86. hum = char.Humanoid
  87. local cam = game.Workspace.CurrentCamera
  88. Camera = cam
  89. local CamInterrupt = false
  90. local TwoD = false
  91. local TargetInfo = {nil, nil}
  92. cam.CameraType = "Custom"
  93. t = char.Torso
  94. h = char.Head
  95. ra = char["Right Arm"]
  96. la = char["Left Arm"]
  97. rl = char["Right Leg"]
  98. ll = char["Left Leg"]
  99. tors = char.Torso
  100. lleg = char["Left Leg"]
  101. root = char.HumanoidRootPart
  102. hed = char.Head
  103. rleg = char["Right Leg"]
  104. rarm = char["Right Arm"]
  105. larm = char["Left Arm"]
  106. radian = math.rad
  107. random = math.random
  108. Vec3 = Vector3.new
  109. Inst = Instance.new
  110. cFrame = CFrame.new
  111. Euler = CFrame.fromEulerAnglesXYZ
  112. vt = Vector3.new
  113. bc = BrickColor.new
  114. br = BrickColor.random
  115. it = Instance.new
  116. cf = CFrame.new
  117.  
  118. local Booleans = {
  119. CamFollow = true,
  120. GyroUse = true
  121. }
  122.  
  123. function lerp(object, newCFrame, alpha)
  124. return object:lerp(newCFrame, alpha)
  125. end
  126.  
  127. local Directer = Inst("BodyGyro", root)
  128. Directer.MaxTorque = Vec3(0, 0, 0)
  129. Directer.P = 600000
  130. local CPart = Inst("Part")
  131. CPart.Anchored = true
  132. CPart.CanCollide = false
  133. CPart.Locked = true
  134. CPart.Transparency = 1
  135.  
  136. local rainbowmode = false
  137. local chaosmode = false
  138.  
  139. local ORGID = 1537276744
  140. local ORVOL = 10
  141. local ORPIT = 1.02
  142. local kan = Instance.new("Sound",tors)
  143. kan.Volume = 1.15
  144. kan.TimePosition = 0
  145. kan.PlaybackSpeed = 1.01
  146. kan.Pitch = 1.01
  147. kan.SoundId = "rbxassetid://0"
  148. kan.Name = "Derpz's Music"
  149. kan.Looped = true
  150. kan:Play()
  151.  
  152. local currentThemePlaying = kan.SoundId
  153. local currentPitch = kan.Pitch
  154. local currentVol = kan.Volume
  155. function newTheme(ID,timepos,pitch,vol)
  156. local kanz = kan
  157. --kanz:Stop()
  158. kanz.Volume = vol
  159. --kanz.TimePosition = timepos
  160. kanz.PlaybackSpeed = pitch
  161. kanz.Pitch = pitch
  162. kanz.SoundId = ID
  163. kanz.Name = "wrecked"
  164. kanz.Looped = true
  165. currentThemePlaying = kanz.SoundId
  166. currentVol = kanz.Volume
  167. currentPitch = kanz.Pitch
  168. --kanz:Play()
  169. --coroutine.resume(coroutine.create(function()
  170. --wait(0.05)
  171. --end))
  172. end
  173.  
  174.  
  175. function newThemeCust(ID,timepos,pitch,vol)
  176. local kanz = kan
  177. kanz:Stop()
  178. kanz.Volume = vol
  179. kanz.TimePosition = timepos
  180. kanz.PlaybackSpeed = pitch
  181. kanz.Pitch = pitch
  182. kanz.SoundId = ID
  183. kanz.Name = "wrecked"
  184. kanz.Looped = true
  185. currentThemePlaying = kanz.SoundId
  186. currentVol = kanz.Volume
  187. currentPitch = kanz.Pitch
  188. kanz:Play()
  189. coroutine.resume(coroutine.create(function()
  190. wait(0.05)
  191. end))
  192. end
  193.  
  194. local mutedtog = false
  195.  
  196. function CameraEnshaking(power,length)
  197. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  198. local var = script.Shaker:Clone()
  199. var.Parent = v.Character
  200. local pw = var.Shakeval
  201. local lgth = var.MultLength
  202. pw.Value = power
  203. lgth.Value = length
  204. var.Disabled = false
  205. end
  206. end
  207.  
  208. local toggleTag = true
  209. local bilguit = Instance.new("BillboardGui", hed)
  210. bilguit.Adornee = nil
  211. bilguit.Name = "ModeName"
  212. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  213. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  214. local modet = Instance.new("TextLabel", bilguit)
  215. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  216. modet.FontSize = "Size8"
  217. modet.TextScaled = true
  218. modet.TextTransparency = 0
  219. modet.BackgroundTransparency = 1
  220. modet.TextTransparency = 0
  221. modet.TextStrokeTransparency = 0
  222. modet.Font = "Arcade"
  223. modet.TextStrokeColor3 = bc("Navy blue").Color
  224. modet.TextColor3 = bc("Really blue").Color
  225. modet.Text = "Derpz."
  226.  
  227. function chatfunc(text,color,typet,font,timeex)
  228. local chat = coroutine.wrap(function()
  229. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  230. Character:FindFirstChild("TalkingBillBoard"):destroy()
  231. end
  232. local naeeym2 = Instance.new("BillboardGui",Character)
  233. naeeym2.Size = UDim2.new(0,100,0,40)
  234. naeeym2.StudsOffset = Vector3.new(0,3,0)
  235. naeeym2.Adornee = Character.Head
  236. naeeym2.Name = "TalkingBillBoard"
  237. local tecks2 = Instance.new("TextLabel",naeeym2)
  238. tecks2.BackgroundTransparency = 1
  239. tecks2.BorderSizePixel = 0
  240. tecks2.Text = ""
  241. tecks2.Font = font
  242. tecks2.TextSize = 30
  243. tecks2.TextStrokeTransparency = 0
  244. tecks2.TextColor3 = color
  245. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  246. tecks2.Size = UDim2.new(1,0,0.5,0)
  247. local tecks3 = Instance.new("TextLabel",naeeym2)
  248. tecks3.BackgroundTransparency = 1
  249. tecks3.BorderSizePixel = 0
  250. tecks3.Text = ""
  251. tecks3.Font = font
  252. tecks3.TextSize = 30
  253. tecks3.TextStrokeTransparency = 0
  254. if typet == "Inverted" then
  255. tecks3.TextColor3 = Color3.new(0,0,0)
  256. tecks3.TextStrokeColor3 = color
  257. elseif typet == "Normal" then
  258. tecks3.TextColor3 = color
  259. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  260. end
  261. tecks3.Size = UDim2.new(1,0,0.5,0)
  262. coroutine.resume(coroutine.create(function()
  263. while true do
  264. swait(1)
  265. if chaosmode == true then
  266. tecks2.TextColor3 = BrickColor.random().Color
  267. tecks3.TextStrokeColor3 = BrickColor.random().Color
  268. end
  269. end
  270. end))
  271. for i = 0, 74*timeex do
  272. swait()
  273. tecks2.Text = text
  274. tecks3.Text = text
  275. end
  276. local randomrot = math.random(1,2)
  277. if randomrot == 1 then
  278. for i = 1, 50 do
  279. swait()
  280. tecks2.Text = text
  281. tecks3.Text = text
  282. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  283. tecks2.TextTransparency = tecks2.TextTransparency + .04
  284. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  285. tecks3.TextTransparency = tecks2.TextTransparency + .04
  286. end
  287. elseif randomrot == 2 then
  288. for i = 1, 50 do
  289. swait()
  290. tecks2.Text = text
  291. tecks3.Text = text
  292. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  293. tecks2.TextTransparency = tecks2.TextTransparency + .04
  294. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  295. tecks3.TextTransparency = tecks2.TextTransparency + .04
  296. end
  297. end
  298. if toggleTag == false then
  299. end
  300. naeeym2:Destroy()
  301. end)
  302. chat()
  303. end
  304.  
  305. function bosschatfunc(text,color,watval)
  306. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  307. coroutine.resume(coroutine.create(function()
  308. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  309. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  310. end
  311. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  312. local NEWSOUND = Instance.new("Sound")
  313. NEWSOUND.Parent = scrg
  314. NEWSOUND.Volume = 1
  315. NEWSOUND.Pitch = 1
  316. NEWSOUND.SoundId = "rbxassetid://523194796"
  317. NEWSOUND:play()
  318. scrg.Name = "Dialog"
  319. local txtlb = Instance.new("TextLabel",scrg)
  320. txtlb.Text = ""
  321. txtlb.Font = "Highway"
  322. txtlb.TextColor3 = Color3.new(0,0,0)
  323. txtlb.TextStrokeTransparency = 0
  324. txtlb.BackgroundTransparency = 0.50
  325. txtlb.BackgroundColor3 = Color3.new(0,0,1)
  326. txtlb.TextStrokeColor3 = color
  327. txtlb.TextScaled = true
  328. txtlb.Size = UDim2.new(1,0,0.25,0)
  329. txtlb.TextXAlignment = "Left"
  330. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  331. local txtlb2 = Instance.new("TextLabel",scrg)
  332. txtlb2.Text = "Derpz:"
  333. txtlb2.Font = "Antique"
  334. txtlb2.TextColor3 = Color3.new(0,0,0)
  335. txtlb2.TextStrokeTransparency = 0
  336. txtlb2.BackgroundTransparency = 1
  337. txtlb.BackgroundColor3 = Color3.new(0,0,0.5)
  338. txtlb2.TextStrokeColor3 = color
  339. txtlb2.TextSize = 40
  340. txtlb2.Size = UDim2.new(1,0,0.25,0)
  341. txtlb2.TextXAlignment = "Left"
  342. txtlb2.Position = UDim2.new(0,0,1,0)
  343. local fvalen = 0.55
  344. local fval = -0.49
  345. coroutine.resume(coroutine.create(function()
  346. while true do
  347. swait()
  348. if chaosmode == true then
  349. txtlb.Rotation = math.random(-1,1)
  350. txtlb2.Rotation = math.random(-1,1)
  351. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  352. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  353. txtlb.TextStrokeColor3 = BrickColor.random().Color
  354. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  355. end
  356. end
  357. end))
  358. coroutine.resume(coroutine.create(function()
  359. while true do
  360. swait()
  361. if scrg.Parent ~= nil then
  362. fvalen = fvalen - 0.0001
  363. elseif scrg.Parent == nil then
  364. break
  365. end
  366. end
  367. end))
  368. local flol = 1.75
  369. local flil = 1.6
  370. coroutine.resume(coroutine.create(function()
  371. for i = 0, 9 do
  372. swait()
  373. fval = fval + 0.05
  374. flol = flol - 0.1
  375. flil = flil - 0.1
  376. txtlb.Text = ""
  377. txtlb.Position = UDim2.new(0,0,flol,0)
  378. txtlb2.Position = UDim2.new(0,0,flil,0)
  379. end
  380. for i = 1,string.len(text),1 do
  381. txtlb.Text = string.sub(text,1,i)
  382. wait(0.05)
  383. end
  384. wait(watval)
  385. local valinc = 0
  386. for i = 0, 99 do
  387. swait()
  388. valinc = valinc + 0.0001
  389. flol = flol + valinc
  390. flil = flil + valinc
  391. txtlb.Rotation = txtlb.Rotation + valinc*20
  392. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  393. txtlb.Position = UDim2.new(0,0,flol,0)
  394. txtlb2.Position = UDim2.new(0,0,flil,0)
  395. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  396. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  397. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  398. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  399. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  400. end
  401. scrg:Destroy()
  402. end))
  403. end))
  404. end
  405. end
  406.  
  407.  
  408. local Create = LoadLibrary("RbxUtility").Create
  409.  
  410. CFuncs = {
  411. ["Part"] = {
  412. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  413. local Part = Create("Part"){
  414. Parent = Parent,
  415. Reflectance = Reflectance,
  416. Transparency = Transparency,
  417. CanCollide = false,
  418. Locked = true,
  419. BrickColor = BrickColor.new(tostring(BColor)),
  420. Name = Name,
  421. Size = Size,
  422. Material = Material,
  423. }
  424. RemoveOutlines(Part)
  425. return Part
  426. end;
  427. };
  428.  
  429. ["Mesh"] = {
  430. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  431. local Msh = Create(Mesh){
  432. Parent = Part,
  433. Offset = OffSet,
  434. Scale = Scale,
  435. }
  436. if Mesh == "SpecialMesh" then
  437. Msh.MeshType = MeshType
  438. Msh.MeshId = MeshId
  439. end
  440. return Msh
  441. end;
  442. };
  443.  
  444. ["Mesh"] = {
  445. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  446. local Msh = Create(Mesh){
  447. Parent = Part,
  448. Offset = OffSet,
  449. Scale = Scale,
  450. }
  451. if Mesh == "SpecialMesh" then
  452. Msh.MeshType = MeshType
  453. Msh.MeshId = MeshId
  454. end
  455. return Msh
  456. end;
  457. };
  458.  
  459. ["Weld"] = {
  460. Create = function(Parent, Part0, Part1, C0, C1)
  461. local Weld = Create("Weld"){
  462. Parent = Parent,
  463. Part0 = Part0,
  464. Part1 = Part1,
  465. C0 = C0,
  466. C1 = C1,
  467. }
  468. return Weld
  469. end;
  470. };
  471.  
  472. ["Sound"] = {
  473. Create = function(id, par, vol, pit)
  474. coroutine.resume(coroutine.create(function()
  475. local S = Create("Sound"){
  476. Volume = vol,
  477. Name = "EffectSoundo",
  478. Pitch = pit or 1,
  479. SoundId = id,
  480. Parent = par or workspace,
  481. }
  482. wait()
  483. S:play()
  484. game:GetService("Debris"):AddItem(S, 10)
  485. end))
  486. end;
  487. };
  488.  
  489. ["TimeSound"] = {
  490. Create = function(id, par, vol, pit, timepos)
  491. coroutine.resume(coroutine.create(function()
  492. local S = Create("Sound"){
  493. Volume = vol,
  494. Name = "EffectSoundo",
  495. Pitch = pit or 1,
  496. SoundId = id,
  497. TimePosition = timepos,
  498. Parent = par or workspace,
  499. }
  500. wait()
  501. S:play()
  502. game:GetService("Debris"):AddItem(S, 10)
  503. end))
  504. end;
  505. };
  506. ["EchoSound"] = {
  507. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  508. coroutine.resume(coroutine.create(function()
  509. local Sas = Create("Sound"){
  510. Volume = vol,
  511. Name = "EffectSoundo",
  512. Pitch = pit or 1,
  513. SoundId = id,
  514. TimePosition = timepos,
  515. Parent = par or workspace,
  516. }
  517. local E = Create("EchoSoundEffect"){
  518. Delay = echodelay,
  519. Name = "Echo",
  520. Feedback = fedb,
  521. DryLevel = dryl,
  522. Parent = Sas,
  523. }
  524. wait()
  525. Sas:play()
  526. game:GetService("Debris"):AddItem(Sas, delays)
  527. end))
  528. end;
  529. };
  530.  
  531. ["LongSound"] = {
  532. Create = function(id, par, vol, pit)
  533. coroutine.resume(coroutine.create(function()
  534. local S = Create("Sound"){
  535. Volume = vol,
  536. Pitch = pit or 1,
  537. SoundId = id,
  538. Parent = par or workspace,
  539. }
  540. wait()
  541. S:play()
  542. game:GetService("Debris"):AddItem(S, 60)
  543. end))
  544. end;
  545. };
  546.  
  547. ["ParticleEmitter"] = {
  548. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  549. local fp = Create("ParticleEmitter"){
  550. Parent = Parent,
  551. Color = ColorSequence.new(Color1, Color2),
  552. LightEmission = LightEmission,
  553. Size = Size,
  554. Texture = Texture,
  555. Transparency = Transparency,
  556. ZOffset = ZOffset,
  557. Acceleration = Accel,
  558. Drag = Drag,
  559. LockedToPart = LockedToPart,
  560. VelocityInheritance = VelocityInheritance,
  561. EmissionDirection = EmissionDirection,
  562. Enabled = Enabled,
  563. Lifetime = LifeTime,
  564. Rate = Rate,
  565. Rotation = Rotation,
  566. RotSpeed = RotSpeed,
  567. Speed = Speed,
  568. VelocitySpread = VelocitySpread,
  569. }
  570. return fp
  571. end;
  572. };
  573.  
  574. CreateTemplate = {
  575.  
  576. };
  577. }
  578.  
  579.  
  580.  
  581. New = function(Object, Parent, Name, Data)
  582. local Object = Instance.new(Object)
  583. for Index, Value in pairs(Data or {}) do
  584. Object[Index] = Value
  585. end
  586. Object.Parent = Parent
  587. Object.Name = Name
  588. return Object
  589. end
  590. local halocolor = BrickColor.new("Pastel light blue")
  591. local halocolor2 = BrickColor.new("Cool yellow")
  592. local starcolor = BrickColor.new("Bright yellow")
  593. local lunacolor = BrickColor.new("Navy blue")
  594. local lunacolor2 = BrickColor.new("Bright blue")
  595. local wepcolor = BrickColor.new("Really black")
  596. local maincolor = BrickColor.new("Really black")
  597. local m = Instance.new("Model",char)
  598. local m2 = Instance.new("Model",char)
  599. local m3 = Instance.new("Model",char)
  600. local mw1 = Instance.new("Model",char)
  601. local mw2 = Instance.new("Model",char)
  602.  
  603.  
  604. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  605. local gui = it(GuiType)
  606. gui.Parent = parent
  607. gui.Text = text
  608. gui.BackgroundTransparency = backtrans
  609. gui.BackgroundColor3 = backcol
  610. gui.SizeConstraint = "RelativeXY"
  611. gui.TextXAlignment = "Center"
  612. gui.TextYAlignment = "Center"
  613. gui.Position = pos
  614. gui.Size = size
  615. gui.Font = "SourceSans"
  616. gui.FontSize = "Size14"
  617. gui.TextWrapped = false
  618. gui.TextStrokeTransparency = 0
  619. gui.TextColor = BrickColor.new("White")
  620. return gui
  621. end
  622. --------------------------- GUI STUFF
  623. local basgui = it("GuiMain")
  624. basgui.Parent = plr.PlayerGui
  625. basgui.Name = "VISgui"
  626. local fullscreenz = it("Frame")
  627. fullscreenz.Parent = basgui
  628. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  629. fullscreenz.BackgroundTransparency = 1
  630. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  631. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  632. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  633. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  634. imgl2.BackgroundTransparency = 1
  635. imgl2.BorderSizePixel = 0
  636. imgl2.ImageTransparency = 0.5
  637. imgl2.ImageColor3 = Color3.new(0,0,0.5)
  638. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  639. imgl2.Size = UDim2.new(0,1000,0,1000)
  640. imgl2.Image = "rbxassetid://2325939897"
  641. local techc = imgl2:Clone()
  642. techc.Parent = fullscreenz
  643. techc.ImageTransparency = 0
  644. techc.Size = UDim2.new(0,900,0,900)
  645. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  646. techc.ImageColor3 = Color3.new(0,0,0.5)
  647. techc.Image = "rbxassetid://2273224484"
  648. local circl = imgl2:Clone()
  649. circl.Parent = fullscreenz
  650. circl.ImageTransparency = 0
  651. circl.Size = UDim2.new(0,550,0,550)
  652. circl.Position = UDim2.new(0.75,25,0.55,25)
  653. circl.ImageColor3 = Color3.new(0,0,0)
  654. circl.Image = "rbxassetid://2109045978"
  655. local circl2 = imgl2:Clone()
  656. circl2.Parent = fullscreenz
  657. circl2.ImageTransparency = 0
  658. circl2.Size = UDim2.new(0,700,0,700)
  659. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  660. circl2.ImageColor3 = Color3.new(0,0,0.5)
  661. circl2.Image = "rbxassetid://2109045978"
  662. local imgl2b = imgl2:Clone()
  663. imgl2b.Parent = fullscreenz
  664. imgl2b.ImageTransparency = 0
  665. imgl2b.Size = UDim2.new(0,800,0,800)
  666. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  667. imgl2b.ImageColor3 = Color3.new(0,0,0)
  668. local ned = Instance.new("TextLabel",fullscreenz)
  669. ned.ZIndex = 2
  670. ned.Font = "Antique"
  671. ned.BackgroundTransparency = 1
  672. ned.BorderSizePixel = 0.65
  673. ned.Size = UDim2.new(0.3,0,0.2,0)
  674. ned.Position = UDim2.new(0.7,0,0.8,0)
  675. ned.TextColor3 = BrickColor.new("Really black").Color
  676. ned.TextStrokeColor3 = BrickColor.new("Really blue").Color
  677. ned.TextScaled = true
  678. ned.TextStrokeTransparency = 0
  679. ned.Text = plr.Name.. " Is the current holder."
  680. ned.TextSize = 24
  681. ned.Rotation = 1
  682. ned.TextXAlignment = "Right"
  683. ned.TextYAlignment = "Bottom"
  684.  
  685. local extrawingmod1 = Instance.new("Model",char)
  686. local extrawingmod2 = Instance.new("Model",char)
  687.  
  688. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  689. local p = Instance.new("Part")
  690. p.TopSurface = 0
  691. p.BottomSurface = 0
  692. p.Parent = parent
  693. p.Size = Vector3.new(0.1,0.1,0.1)
  694. p.Transparency = transparency
  695. p.Reflectance = reflectance
  696. p.CanCollide = false
  697. p.Locked = true
  698. p.BrickColor = brickcolor
  699. p.Material = material
  700. return p
  701. end
  702.  
  703. function CreateMesh(parent,meshtype,x1,y1,z1)
  704. local mesh = Instance.new("SpecialMesh",parent)
  705. mesh.MeshType = meshtype
  706. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  707. return mesh
  708. end
  709.  
  710. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  711. local mesh = Instance.new("SpecialMesh",parent)
  712. mesh.MeshType = "FileMesh"
  713. mesh.MeshId = meshid
  714. mesh.Scale = Vector3.new(x1,y1,z1)
  715. return mesh
  716. end
  717.  
  718.  
  719. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  720. local mesh = Instance.new("SpecialMesh",parent)
  721. mesh.MeshType = "FileMesh"
  722. mesh.MeshId = meshid
  723. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  724. mesh.Scale = Vector3.new(x1,y1,z1)
  725. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  726. return mesh
  727. end
  728.  
  729. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  730. local weld = Instance.new("Weld")
  731. weld.Parent = parent
  732. weld.Part0 = part0
  733. weld.Part1 = part1
  734. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  735. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  736. return weld
  737. end
  738.  
  739.  
  740. --------------
  741. --------------
  742.  
  743. --- The gun.
  744.  
  745. local handle = CreateParta(char,0,0,"SmoothPlastic",BrickColor.new("Black"))
  746. CreateMesh(handle,"Brick",0.75,0.4,0.4)
  747. CreateWeld(handle,larm,handle,-0.1,1,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  748.  
  749. local barrel = CreateParta(char,0,0,"SmoothPlastic",BrickColor.new("Navy blue"))
  750. CreateMesh(barrel,"Brick",0.45,1,0.45)
  751. CreateWeld(barrel,handle,barrel,-0.25,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  752. local barrelglow = CreateParta(char,0,0,"Neon",BrickColor.new("Really blue"))
  753. CreateMesh(barrelglow,"Brick",0.375,0.965,0.375)
  754. CreateWeld(barrelglow,handle,barrelglow,-0.25,0.55,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  755. local barrelup = CreateParta(char,0,0,"SmoothPlastic",BrickColor.new("Navy blue"))
  756. CreateMesh(barrelup,"Brick",0.385,0.535,0.4625)
  757. CreateWeld(barrelup,barrel,barrelup,-0.065,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  758. local barrelupglow = CreateParta(char,0,0,"Neon",BrickColor.new("Really blue"))
  759. CreateMesh(barrelupglow,"Brick",0.325,0.585,0.455)
  760. CreateWeld(barrelupglow,barrel,barrelupglow,-0.065,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  761. local barrel2 = CreateParta(char,0,0,"SmoothPlastic",BrickColor.new("Navy blue"))
  762. CreateMesh(barrel2,"Brick",0.325,1.5,0.325)
  763. CreateWeld(barrel2,handle,barrel2,-0.25,1.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  764. local barrelhole = CreateParta(char,0,0,"SmoothPlastic",BrickColor.new("Navy blue"))
  765. CreateMesh(barrelhole,"Brick",0.25,0.25,0.25)
  766. CreateWeld(barrelhole,barrel2,barrelhole,0,0.65,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  767. ---
  768.  
  769. ------
  770.  
  771. function RemoveOutlines(part)
  772. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  773. end
  774. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  775. local Part = Create("Part")({
  776. Parent = Parent,
  777. Reflectance = Reflectance,
  778. Transparency = Transparency,
  779. CanCollide = false,
  780. Locked = true,
  781. BrickColor = BrickColor.new(tostring(BColor)),
  782. Name = Name,
  783. Size = Size,
  784. Material = Material
  785. })
  786. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  787. RemoveOutlines(Part)
  788. return Part
  789. end
  790. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  791. local Msh = Create(Mesh)({
  792. Parent = Part,
  793. Offset = OffSet,
  794. Scale = Scale
  795. })
  796. if Mesh == "SpecialMesh" then
  797. Msh.MeshType = MeshType
  798. Msh.MeshId = MeshId
  799. end
  800. return Msh
  801. end
  802. function CreateWeld(Parent, Part0, Part1, C0, C1)
  803. local Weld = Create("Weld")({
  804. Parent = Parent,
  805. Part0 = Part0,
  806. Part1 = Part1,
  807. C0 = C0,
  808. C1 = C1
  809. })
  810. return Weld
  811. end
  812.  
  813. Character=Player.Character
  814. PlayerGui=Player.PlayerGui
  815. Backpack=Player.Backpack
  816. Torso=Character.Torso
  817. Head=Character.Head
  818. Humanoid=Character.Humanoid
  819. m=Instance.new('Model',Character)
  820. LeftArm=Character["Left Arm"]
  821. LeftLeg=Character["Left Leg"]
  822. RightArm=Character["Right Arm"]
  823. RightLeg=Character["Right Leg"]
  824. LS=Torso["Left Shoulder"]
  825. LH=Torso["Left Hip"]
  826. RS=Torso["Right Shoulder"]
  827. RH=Torso["Right Hip"]
  828. Face = Head.face
  829. Neck=Torso.Neck
  830. it=Instance.new
  831. attacktype=1
  832. vt=Vector3.new
  833. cf=CFrame.new
  834. euler=CFrame.fromEulerAnglesXYZ
  835. angles=CFrame.Angles
  836. cloaked=false
  837. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  838. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  839. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  840. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  841. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  842. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  843. RootPart=Character.HumanoidRootPart
  844. RootJoint=RootPart.RootJoint
  845. RootCF=euler(-1.57,0,3.14)
  846. attack = false
  847. attackdebounce = false
  848. deb=false
  849. equipped=true
  850. hand=false
  851. MMouse=nil
  852. combo=0
  853. mana=0
  854. trispeed=.2
  855. attackmode='none'
  856. local idle=0
  857. local Anim="Idle"
  858. local Effects={}
  859. local gun=false
  860. local shoot=false
  861. local sine = 0
  862. local change = 1
  863.  
  864.  
  865. function warnedpeople(text,represfont,color,color2)
  866. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  867. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  868. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  869. coroutine.resume(coroutine.create(function()
  870. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  871. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  872. end
  873. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  874. scrg.Name = "Spinny"
  875. local frm = Instance.new("Frame",scrg)
  876. frm.BackgroundTransparency = 0.25
  877. frm.BackgroundColor3 = color
  878. frm.BorderSizePixel = 0
  879. frm.Rotation = 45
  880. frm.Size = UDim2.new(3,0,0,100)
  881. frm.Position = UDim2.new(-4,0,0,0)
  882. local frm2 = frm:Clone()
  883. frm2.Parent = scrg
  884. frm2.BackgroundColor3 = color2
  885. frm2.Position = UDim2.new(-4.05,0,0,0)
  886. local imlb = Instance.new("ImageLabel",scrg)
  887. imlb.BackgroundTransparency = 1
  888. imlb.BackgroundColor3 = Color3.new(0,0,0)
  889. imlb.Image = "rbxassetid://2344851144"
  890. imlb.Size = UDim2.new(0,750,0,750)
  891. imlb.ImageColor3 = color2
  892. imlb.ImageTransparency = 0.25
  893. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  894. local imlb2 = imlb:Clone()
  895. imlb2.Image = "rbxassetid://2325939897"
  896. imlb2.Size = UDim2.new(1,0,1,0)
  897. imlb2.ImageColor3 = color
  898. imlb2.ImageTransparency = 0
  899. imlb2.Position = UDim2.new(0,0,0,0)
  900. local imlb3 = imlb:Clone()
  901. imlb3.Image = "rbxassetid://2344830904"
  902. imlb3.Size = UDim2.new(1,0,1,0)
  903. imlb3.ImageColor3 = color2
  904. imlb3.ImageTransparency = 0
  905. imlb3.Position = UDim2.new(0,0,0,0)
  906. local imlb4 = imlb:Clone()
  907. imlb4.Image = "rbxassetid://2344870656"
  908. imlb4.Size = UDim2.new(1,0,1,0)
  909. imlb4.ImageColor3 = Color3.new(1,1,1)
  910. imlb4.ImageTransparency = 0
  911. imlb4.Position = UDim2.new(0,0,0,0)
  912. imlb2.Parent = imlb
  913. imlb3.Parent = imlb
  914. imlb4.Parent = imlb
  915. local txtlb2 = Instance.new("TextLabel",imlb)
  916. txtlb2.Text = text
  917. txtlb2.Font = represfont
  918. txtlb2.TextColor3 = color
  919. txtlb2.TextStrokeTransparency = 0
  920. txtlb2.BackgroundTransparency = 1
  921. txtlb2.TextStrokeColor3 = color2
  922. txtlb2.TextScaled = true
  923. txtlb2.Size = UDim2.new(1,0,1,0)
  924. txtlb2.Position = UDim2.new(0,0,0,0)
  925. local fvalen = 0.55
  926. local fval = -0.49
  927. coroutine.resume(coroutine.create(function()
  928. while true do
  929. swait()
  930. if chaosmode == true then
  931. txtlb2.Rotation = math.random(-1,1)
  932. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  933. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  934. imlb.ImageColor3 = BrickColor.random().Color
  935. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  936. end
  937. end
  938. end))
  939. coroutine.resume(coroutine.create(function()
  940. while true do
  941. swait()
  942. if scrg.Parent ~= nil then
  943. fvalen = fvalen - 0.0001
  944. elseif scrg.Parent == nil then
  945. break
  946. end
  947. end
  948. end))
  949. local flol = -5
  950. local flil = 1.6
  951. coroutine.resume(coroutine.create(function()
  952. for i = 0, 49 do
  953. swait()
  954. flol = flol + 0.125
  955. flil = flil - 0.1
  956. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  957. frm.Rotation = frm.Rotation - 0.25
  958. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  959. frm2.Rotation = frm.Rotation + 0.325
  960. imlb3.Rotation = imlb3.Rotation - 10
  961. imlb2.Rotation = imlb.Rotation + 7.5
  962. imlb.Rotation = imlb.Rotation + 5
  963. txtlb2.Rotation = txtlb2.Rotation - 5.125
  964. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  965. end
  966. for i = 0, 99 do
  967. swait()
  968. fval = fval + 0.05
  969. flol = flol + 0.005
  970. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  971. frm.Rotation = frm.Rotation - 0.075
  972. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  973. frm2.Rotation = frm2.Rotation + 0.125
  974. imlb3.Rotation = imlb3.Rotation - 2
  975. imlb2.Rotation = imlb.Rotation + 1.5
  976. imlb.Rotation = imlb.Rotation + 1
  977. txtlb2.Rotation = txtlb2.Rotation - 1.125
  978. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  979. end
  980. local valinc = 0
  981. local vinc2 = 1
  982. for i = 0, 99 do
  983. swait()
  984. vinc2 = vinc2 + 0.25
  985. valinc = valinc + 0.0001
  986. flol = flol + valinc
  987. flil = flil + valinc
  988. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  989. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  990. imlb.Rotation = imlb.Rotation + 1*vinc2
  991. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  992. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  993. frm.Rotation = frm.Rotation + 0.1*vinc2
  994. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  995. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  996. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  997. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  998. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  999. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  1000. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  1001. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  1002. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  1003. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  1004. end
  1005. scrg:Destroy()
  1006. end))
  1007. end))
  1008. end
  1009. end
  1010.  
  1011.  
  1012.  
  1013. --save shoulders
  1014. RSH, LSH=nil, nil
  1015. --welds
  1016. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1017. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1018. LH=Torso["Left Hip"]
  1019. RH=Torso["Right Hip"]
  1020. TorsoColor=Torso.BrickColor
  1021. function NoOutline(Part)
  1022. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1023. end
  1024. ch=Character
  1025. RSH=ch.Torso["Right Shoulder"]
  1026. LSH=ch.Torso["Left Shoulder"]
  1027. --
  1028. RSH.Parent=nil
  1029. LSH.Parent=nil
  1030. --
  1031. RW.Name="Right Shoulder"
  1032. RW.Part0=ch.Torso
  1033. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1034. RW.C1=cf(0, 0.5, 0)
  1035. RW.Part1=ch["Right Arm"]
  1036. RW.Parent=ch.Torso
  1037. --
  1038. LW.Name="Left Shoulder"
  1039. LW.Part0=ch.Torso
  1040. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1041. LW.C1=cf(0, 0.5, 0)
  1042. LW.Part1=ch["Left Arm"]
  1043. LW.Parent=ch.Torso
  1044.  
  1045. local Stats=Instance.new("BoolValue")
  1046. Stats.Name="Stats"
  1047. Stats.Parent=Character
  1048. local Atk=Instance.new("NumberValue")
  1049. Atk.Name="Damage"
  1050. Atk.Parent=Stats
  1051. Atk.Value=1
  1052. local Def=Instance.new("NumberValue")
  1053. Def.Name="Defense"
  1054. Def.Parent=Stats
  1055. Def.Value=1
  1056. local Speed=Instance.new("NumberValue")
  1057. Speed.Name="Speed"
  1058. Speed.Parent=Stats
  1059. Speed.Value=1
  1060. local Mvmt=Instance.new("NumberValue")
  1061. Mvmt.Name="Movement"
  1062. Mvmt.Parent=Stats
  1063. Mvmt.Value=1
  1064.  
  1065. local donum=0
  1066.  
  1067.  
  1068. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1069. local fp=it("Part")
  1070. fp.formFactor=formfactor
  1071. fp.Parent=parent
  1072. fp.Reflectance=reflectance
  1073. fp.Transparency=transparency
  1074. fp.CanCollide=false
  1075. fp.Locked=true
  1076. fp.BrickColor=brickcolor
  1077. fp.Name=name
  1078. fp.Size=size
  1079. fp.Position=Torso.Position
  1080. NoOutline(fp)
  1081. fp.Material="SmoothPlastic"
  1082. fp:BreakJoints()
  1083. return fp
  1084. end
  1085.  
  1086. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1087. local mesh=it(Mesh)
  1088. mesh.Parent=part
  1089. if Mesh=="SpecialMesh" then
  1090. mesh.MeshType=meshtype
  1091. if meshid~="nil" then
  1092. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1093. end
  1094. end
  1095. mesh.Offset=offset
  1096. mesh.Scale=scale
  1097. return mesh
  1098. end
  1099.  
  1100. function weld(parent,part0,part1,c0)
  1101. local weld=it("Weld")
  1102. weld.Parent=parent
  1103. weld.Part0=part0
  1104. weld.Part1=part1
  1105. weld.C0=c0
  1106. return weld
  1107. end
  1108.  
  1109. local Color1=Torso.BrickColor
  1110.  
  1111. local bodvel=Instance.new("BodyVelocity")
  1112. local bg=Instance.new("BodyGyro")
  1113.  
  1114. --------- SazEreno's Artificial HB --------------
  1115. ArtificialHB = Instance.new("BindableEvent", script)
  1116. ArtificialHB.Name = "ArtificialHB"
  1117.  
  1118. script:WaitForChild("ArtificialHB")
  1119. Frame_Speed = 1 / 60
  1120. frame = Frame_Speed
  1121. tf = 0
  1122. allowframeloss = false
  1123. tossremainder = false
  1124. lastframe = tick()
  1125. script.ArtificialHB:Fire()
  1126.  
  1127. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1128. tf = tf + s
  1129. if tf >= frame then
  1130. if allowframeloss then
  1131. script.ArtificialHB:Fire()
  1132. lastframe = tick()
  1133. else
  1134. for i = 1, math.floor(tf / frame) do
  1135. script.ArtificialHB:Fire()
  1136. end
  1137. lastframe = tick()
  1138. end
  1139. if tossremainder then
  1140. tf = 0
  1141. else
  1142. tf = tf - frame * math.floor(tf / frame)
  1143. end
  1144. end
  1145. end)
  1146.  
  1147. ------------------
  1148. function swait(num)
  1149. if num == 0 or num == nil then
  1150. ArtificialHB.Event:wait()
  1151. else
  1152. for i = 1, num do
  1153. ArtificialHB.Event:wait()
  1154. end
  1155. end
  1156. end
  1157. -------- RAINBOW LEAVE IT TO ME
  1158. local r = 255
  1159. local g = 0
  1160. local b = 0
  1161. coroutine.resume(coroutine.create(function()
  1162. while wait() do
  1163. for i = 0, 254/5 do
  1164. swait()
  1165. g = g + 5
  1166. end
  1167. for i = 0, 254/5 do
  1168. swait()
  1169. r = r - 5
  1170. end
  1171. for i = 0, 254/5 do
  1172. swait()
  1173. b = b + 5
  1174. end
  1175. for i = 0, 254/5 do
  1176. swait()
  1177. g = g - 5
  1178. end
  1179. for i = 0, 254/5 do
  1180. swait()
  1181. r = r + 5
  1182. end
  1183. for i = 0, 254/5 do
  1184. swait()
  1185. b = b - 5
  1186. end
  1187. end
  1188. end))
  1189.  
  1190.  
  1191. so = function(id,par,vol,pit)
  1192. coroutine.resume(coroutine.create(function()
  1193. local sou = Instance.new("Sound",par or workspace)
  1194. sou.Volume=vol
  1195. sou.Pitch=pit or 1
  1196. sou.SoundId=id
  1197. swait()
  1198. sou:play()
  1199. game:GetService("Debris"):AddItem(sou,6)
  1200. end))
  1201. end
  1202.  
  1203. function clerp(a,b,t)
  1204. local qa = {QuaternionFromCFrame(a)}
  1205. local qb = {QuaternionFromCFrame(b)}
  1206. local ax, ay, az = a.x, a.y, a.z
  1207. local bx, by, bz = b.x, b.y, b.z
  1208. local _t = 1-t
  1209. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1210. end
  1211.  
  1212. function QuaternionFromCFrame(cf)
  1213. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1214. local trace = m00 + m11 + m22
  1215. if trace > 0 then
  1216. local s = math.sqrt(1 + trace)
  1217. local recip = 0.5/s
  1218. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1219. else
  1220. local i = 0
  1221. if m11 > m00 then
  1222. i = 1
  1223. end
  1224. if m22 > (i == 0 and m00 or m11) then
  1225. i = 2
  1226. end
  1227. if i == 0 then
  1228. local s = math.sqrt(m00-m11-m22+1)
  1229. local recip = 0.5/s
  1230. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1231. elseif i == 1 then
  1232. local s = math.sqrt(m11-m22-m00+1)
  1233. local recip = 0.5/s
  1234. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1235. elseif i == 2 then
  1236. local s = math.sqrt(m22-m00-m11+1)
  1237. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1238. end
  1239. end
  1240. end
  1241.  
  1242. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1243. local xs, ys, zs = x + x, y + y, z + z
  1244. local wx, wy, wz = w*xs, w*ys, w*zs
  1245. local xx = x*xs
  1246. local xy = x*ys
  1247. local xz = x*zs
  1248. local yy = y*ys
  1249. local yz = y*zs
  1250. local zz = z*zs
  1251. 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))
  1252. end
  1253.  
  1254. function QuaternionSlerp(a, b, t)
  1255. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1256. local startInterp, finishInterp;
  1257. if cosTheta >= 0.0001 then
  1258. if (1 - cosTheta) > 0.0001 then
  1259. local theta = math.acos(cosTheta)
  1260. local invSinTheta = 1/math.sin(theta)
  1261. startInterp = math.sin((1-t)*theta)*invSinTheta
  1262. finishInterp = math.sin(t*theta)*invSinTheta
  1263. else
  1264. startInterp = 1-t
  1265. finishInterp = t
  1266. end
  1267. else
  1268. if (1+cosTheta) > 0.0001 then
  1269. local theta = math.acos(-cosTheta)
  1270. local invSinTheta = 1/math.sin(theta)
  1271. startInterp = math.sin((t-1)*theta)*invSinTheta
  1272. finishInterp = math.sin(t*theta)*invSinTheta
  1273. else
  1274. startInterp = t-1
  1275. finishInterp = t
  1276. end
  1277. end
  1278. 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
  1279. end
  1280.  
  1281. local function CFrameFromTopBack(at, top, back)
  1282. local right = top:Cross(back)
  1283. return CFrame.new(at.x, at.y, at.z,
  1284. right.x, top.x, back.x,
  1285. right.y, top.y, back.y,
  1286. right.z, top.z, back.z)
  1287. end
  1288.  
  1289. function Triangle(a, b, c)
  1290. local edg1 = (c-a):Dot((b-a).unit)
  1291. local edg2 = (a-b):Dot((c-b).unit)
  1292. local edg3 = (b-c):Dot((a-c).unit)
  1293. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1294. a, b, c = a, b, c
  1295. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1296. a, b, c = b, c, a
  1297. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1298. a, b, c = c, a, b
  1299. else
  1300. assert(false, "unreachable")
  1301. end
  1302.  
  1303. local len1 = (c-a):Dot((b-a).unit)
  1304. local len2 = (b-a).magnitude - len1
  1305. local width = (a + (b-a).unit*len1 - c).magnitude
  1306.  
  1307. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1308.  
  1309. local list = {}
  1310.  
  1311. if len1 > 0.01 then
  1312. local w1 = Instance.new('WedgePart', m)
  1313. game:GetService("Debris"):AddItem(w1,5)
  1314. w1.Material = "SmoothPlastic"
  1315. w1.FormFactor = 'Custom'
  1316. w1.BrickColor = BrickColor.new("Really red")
  1317. w1.Transparency = 0
  1318. w1.Reflectance = 0
  1319. w1.Material = "SmoothPlastic"
  1320. w1.CanCollide = false
  1321. local l1 = Instance.new("PointLight",w1)
  1322. l1.Color = Color3.new(170,0,0)
  1323. NoOutline(w1)
  1324. local sz = Vector3.new(0.2, width, len1)
  1325. w1.Size = sz
  1326. local sp = Instance.new("SpecialMesh",w1)
  1327. sp.MeshType = "Wedge"
  1328. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1329. w1:BreakJoints()
  1330. w1.Anchored = true
  1331. w1.Parent = workspace
  1332. w1.Transparency = 0.7
  1333. table.insert(Effects,{w1,"Disappear",.01})
  1334. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1335. table.insert(list,w1)
  1336. end
  1337.  
  1338. if len2 > 0.01 then
  1339. local w2 = Instance.new('WedgePart', m)
  1340. game:GetService("Debris"):AddItem(w2,5)
  1341. w2.Material = "SmoothPlastic"
  1342. w2.FormFactor = 'Custom'
  1343. w2.BrickColor = BrickColor.new("Really red")
  1344. w2.Transparency = 0
  1345. w2.Reflectance = 0
  1346. w2.Material = "SmoothPlastic"
  1347. w2.CanCollide = false
  1348. local l2 = Instance.new("PointLight",w2)
  1349. l2.Color = Color3.new(170,0,0)
  1350. NoOutline(w2)
  1351. local sz = Vector3.new(0.2, width, len2)
  1352. w2.Size = sz
  1353. local sp = Instance.new("SpecialMesh",w2)
  1354. sp.MeshType = "Wedge"
  1355. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1356. w2:BreakJoints()
  1357. w2.Anchored = true
  1358. w2.Parent = workspace
  1359. w2.Transparency = 0.7
  1360. table.insert(Effects,{w2,"Disappear",.01})
  1361. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1362. table.insert(list,w2)
  1363. end
  1364. return unpack(list)
  1365. end
  1366.  
  1367.  
  1368. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1369. if hit.Parent == nil then
  1370. return
  1371. end
  1372. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1373. for _, v in pairs(hit.Parent:children()) do
  1374. if v:IsA("Humanoid") then
  1375. h = v
  1376. end
  1377. end
  1378. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1379. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1380. return
  1381. end
  1382. local c = Create("ObjectValue")({
  1383. Name = "creator",
  1384. Value = game:GetService("Players").LocalPlayer,
  1385. Parent = h
  1386. })
  1387. game:GetService("Debris"):AddItem(c, 0.5)
  1388. if HitSound ~= nil and HitPitch ~= nil then
  1389. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1390. end
  1391. local Damage = math.random(minim, maxim)
  1392. local blocked = false
  1393. local block = hit.Parent:findFirstChild("Block")
  1394. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1395. blocked = true
  1396. block.Value = block.Value - 1
  1397. print(block.Value)
  1398. end
  1399. if blocked == false then
  1400. HitHealth = h.Health
  1401. h.MaxHealth = 100
  1402. h.Health = h.Health - Damage
  1403. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1404. print("gained kill")
  1405. dmg(h.Parent)
  1406. end
  1407. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1408. else
  1409. h.Health = h.Health - Damage / 2
  1410. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1411. end
  1412. if Type == "Knockdown" then
  1413. local hum = hit.Parent.Humanoid
  1414. hum.PlatformStand = true
  1415. coroutine.resume(coroutine.create(function(HHumanoid)
  1416. swait(1)
  1417. HHumanoid.PlatformStand = false
  1418. end), hum)
  1419. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1420. local bodvol = Create("BodyVelocity")({
  1421. velocity = angle * knockback,
  1422. P = 5000,
  1423. maxForce = Vector3.new(8000, 8000, 8000),
  1424. Parent = hit
  1425. })
  1426. local rl = Create("BodyAngularVelocity")({
  1427. P = 3000,
  1428. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1429. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1430. Parent = hit
  1431. })
  1432. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1433. game:GetService("Debris"):AddItem(rl, 0.5)
  1434. elseif Type == "Normal" then
  1435. local vp = Create("BodyVelocity")({
  1436. P = 500,
  1437. maxForce = Vector3.new(math.huge, 0, math.huge),
  1438. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1439. })
  1440. if knockback > 0 then
  1441. vp.Parent = hit.Parent.Head
  1442. end
  1443. game:GetService("Debris"):AddItem(vp, 0.5)
  1444. elseif Type == "Up" then
  1445. local bodyVelocity = Create("BodyVelocity")({
  1446. velocity = Vector3.new(0, 20, 0),
  1447. P = 5000,
  1448. maxForce = Vector3.new(8000, 8000, 8000),
  1449. Parent = hit
  1450. })
  1451. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1452. local bodyVelocity = Create("BodyVelocity")({
  1453. velocity = Vector3.new(0, 20, 0),
  1454. P = 5000,
  1455. maxForce = Vector3.new(8000, 8000, 8000),
  1456. Parent = hit
  1457. })
  1458. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1459. elseif Type == "Leech" then
  1460. local hum = hit.Parent.Humanoid
  1461. if hum ~= nil then
  1462. for i = 0, 2 do
  1463. 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)
  1464. end
  1465. Humanoid.Health = Humanoid.Health + 10
  1466. end
  1467. elseif Type == "UpKnock" then
  1468. local hum = hit.Parent.Humanoid
  1469. hum.PlatformStand = true
  1470. if hum ~= nil then
  1471. hitr = true
  1472. end
  1473. coroutine.resume(coroutine.create(function(HHumanoid)
  1474. swait(5)
  1475. HHumanoid.PlatformStand = false
  1476. hitr = false
  1477. end), hum)
  1478. local bodyVelocity = Create("BodyVelocity")({
  1479. velocity = Vector3.new(0, 20, 0),
  1480. P = 5000,
  1481. maxForce = Vector3.new(8000, 8000, 8000),
  1482. Parent = hit
  1483. })
  1484. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1485. local bodyVelocity = Create("BodyVelocity")({
  1486. velocity = Vector3.new(0, 20, 0),
  1487. P = 5000,
  1488. maxForce = Vector3.new(8000, 8000, 8000),
  1489. Parent = hit
  1490. })
  1491. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1492. elseif Type == "Snare" then
  1493. local bp = Create("BodyPosition")({
  1494. P = 2000,
  1495. D = 100,
  1496. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1497. position = hit.Parent.Torso.Position,
  1498. Parent = hit.Parent.Torso
  1499. })
  1500. game:GetService("Debris"):AddItem(bp, 1)
  1501. elseif Type == "Slashnare" then
  1502. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1503. for i = 1, math.random(4, 5) do
  1504. 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)
  1505. end
  1506. local bp = Create("BodyPosition")({
  1507. P = 2000,
  1508. D = 100,
  1509. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1510. position = hit.Parent.Torso.Position,
  1511. Parent = hit.Parent.Torso
  1512. })
  1513. game:GetService("Debris"):AddItem(bp, 1)
  1514. elseif Type == "Spike" then
  1515. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1516. local bp = Create("BodyPosition")({
  1517. P = 2000,
  1518. D = 100,
  1519. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1520. position = hit.Parent.Torso.Position,
  1521. Parent = hit.Parent.Torso
  1522. })
  1523. game:GetService("Debris"):AddItem(bp, 1)
  1524. elseif Type == "Freeze" then
  1525. local BodPos = Create("BodyPosition")({
  1526. P = 50000,
  1527. D = 1000,
  1528. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1529. position = hit.Parent.Torso.Position,
  1530. Parent = hit.Parent.Torso
  1531. })
  1532. local BodGy = Create("BodyGyro")({
  1533. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1534. P = 20000,
  1535. Parent = hit.Parent.Torso,
  1536. cframe = hit.Parent.Torso.CFrame
  1537. })
  1538. hit.Parent.Torso.Anchored = true
  1539. coroutine.resume(coroutine.create(function(Part)
  1540. swait(1.5)
  1541. Part.Anchored = false
  1542. end), hit.Parent.Torso)
  1543. game:GetService("Debris"):AddItem(BodPos, 3)
  1544. game:GetService("Debris"):AddItem(BodGy, 3)
  1545. end
  1546. local debounce = Create("BoolValue")({
  1547. Name = "DebounceHit",
  1548. Parent = hit.Parent,
  1549. Value = true
  1550. })
  1551. game:GetService("Debris"):AddItem(debounce, Delay)
  1552. c = Instance.new("ObjectValue")
  1553. c.Name = "creator"
  1554. c.Value = Player
  1555. c.Parent = h
  1556. game:GetService("Debris"):AddItem(c, 0.5)
  1557. end
  1558. end
  1559. function ShowDamage(Pos, Text, Time, Color)
  1560. local Rate = 0.03333333333333333
  1561. local Pos = Pos or Vector3.new(0, 0, 0)
  1562. local Text = Text or ""
  1563. local Time = Time or 2
  1564. local Color = Color or Color3.new(1, 0, 1)
  1565. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1566. EffectPart.Anchored = true
  1567. local BillboardGui = Create("BillboardGui")({
  1568. Size = UDim2.new(3, 0, 3, 0),
  1569. Adornee = EffectPart,
  1570. Parent = EffectPart
  1571. })
  1572. local TextLabel = Create("TextLabel")({
  1573. BackgroundTransparency = 1,
  1574. Size = UDim2.new(1, 0, 1, 0),
  1575. Text = Text,
  1576. TextColor3 = Color,
  1577. TextScaled = true,
  1578. Font = Enum.Font.ArialBold,
  1579. Parent = BillboardGui
  1580. })
  1581. game.Debris:AddItem(EffectPart, Time + 0.1)
  1582. EffectPart.Parent = game:GetService("Workspace")
  1583. delay(0, function()
  1584. local Frames = Time / Rate
  1585. for Frame = 1, Frames do
  1586. wait(Rate)
  1587. local Percent = Frame / Frames
  1588. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1589. TextLabel.TextTransparency = Percent
  1590. end
  1591. if EffectPart and EffectPart.Parent then
  1592. EffectPart:Destroy()
  1593. end
  1594. end)
  1595. end
  1596. function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
  1597. for _, c in pairs(workspace:children()) do
  1598. local hum = c:findFirstChildOfClass("Humanoid")
  1599. if hum ~= nil then
  1600. local head = c:findFirstChild("Torso")
  1601. if head ~= nil then
  1602. local targ = head.Position - Part.Position
  1603. local mag = targ.magnitude
  1604. if magni >= mag and c.Name ~= Player.Name then
  1605. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  1606. end
  1607. end
  1608. local head = c:findFirstChild("UpperTorso")
  1609. if head ~= nil then
  1610. local targ = head.Position - Part.Position
  1611. local mag = targ.magnitude
  1612. if magni >= mag and c.Name ~= Player.Name then
  1613. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
  1614. end
  1615. end
  1616. end
  1617. end
  1618. end
  1619.  
  1620.  
  1621. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1622. for _, c in pairs(workspace:children()) do
  1623. local hum = c:findFirstChild("Humanoid")
  1624. if hum ~= nil then
  1625. local head = c:findFirstChild("Torso")
  1626. if head ~= nil then
  1627. local targ = head.Position - Part.Position
  1628. local mag = targ.magnitude
  1629. if magni >= mag and c.Name ~= Player.Name then
  1630. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1631. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1632. end
  1633. end
  1634. end
  1635. end
  1636. end
  1637.  
  1638. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1639. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1640. end
  1641.  
  1642. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1643. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1644. prt.Anchored=true
  1645. prt.CFrame=cframe
  1646. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1647. --http://www.roblox.com/asset/?id=4770560
  1648. game:GetService("Debris"):AddItem(prt,2)
  1649. CF=prt.CFrame
  1650. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1651. for i=0,1,0.2 do
  1652. wait()
  1653. Part.CFrame=CF*cf(0,0,-0.4)
  1654. end
  1655. for i=0,1,delay do
  1656. wait()
  1657. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1658. Mesh.Scale=Mesh.Scale
  1659. end
  1660. for i=0,1,0.1 do
  1661. wait()
  1662. Part.Transparency=i
  1663. end
  1664. Part.Parent=nil
  1665. end),prt,msh,CF)
  1666. end
  1667.  
  1668. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1669. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1670. prt.Anchored=true
  1671. prt.Material = "Neon"
  1672. prt.CFrame=cframe
  1673. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1674. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1675. game:GetService("Debris"):AddItem(prt,5)
  1676. coroutine.resume(coroutine.create(function(Part,Mesh)
  1677. for i=0,1,delay do
  1678. swait()
  1679. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1680. Part.Transparency=i
  1681. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1682. end
  1683. Part.Parent=nil
  1684. end),prt,msh)
  1685. end
  1686.  
  1687. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1688. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1689. prt.Anchored=true
  1690. prt.Material = "Neon"
  1691. prt.CFrame=cframe
  1692. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1693. game:GetService("Debris"):AddItem(prt,5)
  1694. coroutine.resume(coroutine.create(function(Part,Mesh)
  1695. local rtype = rottype
  1696. for i=0,1,delay do
  1697. swait()
  1698. if rtype == 1 then
  1699. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1700. elseif rtype == 2 then
  1701. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1702. end
  1703. Part.Transparency=i
  1704. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1705. end
  1706. Part.Parent=nil
  1707. end),prt,msh)
  1708. end
  1709.  
  1710. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1711. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1712. prt.Anchored=true
  1713. prt.CFrame=cframe
  1714. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1715. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1716. game:GetService("Debris"):AddItem(prt,5)
  1717. coroutine.resume(coroutine.create(function(Part,Mesh)
  1718. for i=0,1,delay do
  1719. wait()
  1720. Part.Transparency=i
  1721. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1722. end
  1723. Part.Parent=nil
  1724. end),prt,msh)
  1725. end
  1726.  
  1727. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1728. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1729. prt.Anchored=true
  1730. prt.Material = "Neon"
  1731. prt.CFrame=cframe
  1732. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1733. game:GetService("Debris"):AddItem(prt,5)
  1734. coroutine.resume(coroutine.create(function(Part,Mesh)
  1735. local rtype = rottype
  1736. for i=0,1,delay do
  1737. swait()
  1738. if rtype == 1 then
  1739. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1740. elseif rtype == 2 then
  1741. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1742. end
  1743. Part.Transparency=i
  1744. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1745. end
  1746. Part.Parent=nil
  1747. end),prt,msh)
  1748. end
  1749.  
  1750. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1751. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1752. prt.Anchored=true
  1753. prt.Material = "Neon"
  1754. prt.CFrame=cframe
  1755. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1756. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1757. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1758. game:GetService("Debris"):AddItem(prt,5)
  1759. coroutine.resume(coroutine.create(function(Part,Mesh)
  1760. local rtype = rottype
  1761. for i=0,1,delay do
  1762. swait()
  1763. if rtype == 1 then
  1764. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1765. elseif rtype == 2 then
  1766. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1767. end
  1768. dec.Transparency=i
  1769. dec2.Transparency=i
  1770. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1771. end
  1772. Part.Parent=nil
  1773. end),prt,msh)
  1774. end
  1775.  
  1776. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1777. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1778. prt.Anchored=true
  1779. prt.Material = "Neon"
  1780. prt.CFrame=cframe
  1781. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1782. game:GetService("Debris"):AddItem(prt,5)
  1783. coroutine.resume(coroutine.create(function(Part,Mesh)
  1784. local rtype = rottype
  1785. for i=0,1,delay do
  1786. swait()
  1787. if rtype == 1 then
  1788. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1789. elseif rtype == 2 then
  1790. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1791. end
  1792. prt.Transparency=i
  1793. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1794. end
  1795. Part.Parent=nil
  1796. end),prt,msh)
  1797. end
  1798.  
  1799. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1800. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1801. prt.Anchored=true
  1802. prt.Material = "Neon"
  1803. prt.CFrame=cframe
  1804. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1805. game:GetService("Debris"):AddItem(prt,5)
  1806. coroutine.resume(coroutine.create(function(Part,Mesh)
  1807. local rtype = rottype
  1808. for i=0,1,delay do
  1809. swait()
  1810. if rtype == 1 then
  1811. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1812. elseif rtype == 2 then
  1813. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1814. end
  1815. prt.Transparency=i
  1816. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1817. end
  1818. Part.Parent=nil
  1819. end),prt,msh)
  1820. end
  1821.  
  1822. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1823. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1824. prt.Anchored=true
  1825. prt.Material = "Neon"
  1826. prt.CFrame=cframe
  1827. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1828. game:GetService("Debris"):AddItem(prt,5)
  1829. coroutine.resume(coroutine.create(function(Part,Mesh)
  1830. local rtype = rottype
  1831. for i=0,1,delay do
  1832. swait()
  1833. if rtype == 1 then
  1834. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1835. elseif rtype == 2 then
  1836. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1837. end
  1838. prt.Transparency=i
  1839. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1840. end
  1841. Part.Parent=nil
  1842. end),prt,msh)
  1843. end
  1844.  
  1845. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1846. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1847. prt.Anchored=true
  1848. prt.Material = "Neon"
  1849. prt.CFrame=cframe
  1850. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1851. game:GetService("Debris"):AddItem(prt,5)
  1852. coroutine.resume(coroutine.create(function(Part,Mesh)
  1853. local rtype = rottype
  1854. for i=0,1,delay do
  1855. swait()
  1856. if rtype == 1 then
  1857. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1858. elseif rtype == 2 then
  1859. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1860. end
  1861. prt.Transparency=i
  1862. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1863. end
  1864. Part.Parent=nil
  1865. end),prt,msh)
  1866. end
  1867.  
  1868. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1869. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1870. prt.Anchored=false
  1871. prt.CFrame=cframe
  1872. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1873. local wld=weld(prt,prt,Parent,cframe)
  1874. game:GetService("Debris"):AddItem(prt,5)
  1875. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1876. for i=0,1,delay do
  1877. wait()
  1878. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1879. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1880. Part.Transparency=i
  1881. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1882. end
  1883. Part.Parent=nil
  1884. end),prt,msh,wld)
  1885. end
  1886.  
  1887. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1888. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1889. prt.Anchored=false
  1890. prt.CFrame=cframe
  1891. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1892. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1893. game:GetService("Debris"):AddItem(prt,5)
  1894. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1895. for i=0,1,delay do
  1896. wait()
  1897. Weld.C0=euler(i*20,0,0)
  1898. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1899. Part.Transparency=i
  1900. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1901. end
  1902. Part.Parent=nil
  1903. end),prt,msh,wld)
  1904. end
  1905.  
  1906. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1907. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1908. prt.Anchored=true
  1909. prt.CFrame=cframe
  1910. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1911. game:GetService("Debris"):AddItem(prt,2)
  1912. coroutine.resume(coroutine.create(function(Part,Mesh)
  1913. for i=0,1,delay do
  1914. wait()
  1915. Part.CFrame=Part.CFrame
  1916. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1917. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1918. prt2.Anchored=true
  1919. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1920. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1921. game:GetService("Debris"):AddItem(prt2,2)
  1922. coroutine.resume(coroutine.create(function(Part,Mesh)
  1923. for i=0,1,0.1 do
  1924. wait()
  1925. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1926. end
  1927. Part.Parent=nil
  1928. end),prt2,msh2)
  1929. end
  1930. for i=0,1,delay*2 do
  1931. wait()
  1932. Part.CFrame=Part.CFrame
  1933. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1934. end
  1935. Part.Parent=nil
  1936. end),prt,msh)
  1937. end
  1938.  
  1939. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1940. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1941. prt.Anchored=true
  1942. prt.CFrame=cframe
  1943. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1944. game:GetService("Debris"):AddItem(prt,2)
  1945. coroutine.resume(coroutine.create(function(Part,Mesh)
  1946. for i=0,1,delay do
  1947. wait()
  1948. Part.CFrame=Part.CFrame
  1949. Part.Transparency=i
  1950. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1951. end
  1952. Part.Parent=nil
  1953. end),prt,msh)
  1954. end
  1955.  
  1956. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1957. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1958. prt.Anchored=true
  1959. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1960. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1961. game:GetService("Debris"):AddItem(prt,2)
  1962. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1963. CF=Part.CFrame
  1964. Numbb=0
  1965. randnumb=math.random()/10
  1966. rand1=math.random()/10
  1967. for i=0,1,rand1 do
  1968. wait()
  1969. CF=CF*cf(0,math.random()/2,0)
  1970. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1971. Part.CFrame=CF*euler(Numbb,0,0)
  1972. Part.Transparency=i
  1973. Numbb=Numbb+randnumb
  1974. end
  1975. Part.Parent=nil
  1976. end),prt,CF,Numbb,randnumb)
  1977. end
  1978.  
  1979. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1980. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1981. prt.Anchored=true
  1982. prt.CFrame=cframe
  1983. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1984. game:GetService("Debris"):AddItem(prt,5)
  1985. coroutine.resume(coroutine.create(function(Part,Mesh)
  1986. for i=0,1,delay do
  1987. wait()
  1988. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1989. Part.Transparency=i
  1990. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1991. end
  1992. Part.Parent=nil
  1993. end),prt,msh)
  1994. end
  1995.  
  1996. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1997. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1998. prt.Anchored=true
  1999. prt.CFrame=cframe
  2000. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2001. game:GetService("Debris"):AddItem(prt,2)
  2002. coroutine.resume(coroutine.create(function(Part,Mesh)
  2003. for i=0,1,delay do
  2004. wait()
  2005. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2006. Part.Transparency=i
  2007. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2008. end
  2009. Part.Parent=nil
  2010. end),prt,msh)
  2011. end
  2012.  
  2013. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2014. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2015. prt.Anchored=true
  2016. prt.CFrame=cframe*cf(x,y,z)
  2017. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2018. game:GetService("Debris"):AddItem(prt,5)
  2019. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2020. local num=math.random()
  2021. local num2=math.random(-3,2)+math.random()
  2022. local numm=0
  2023. for i=0,1,delay*2 do
  2024. swait()
  2025. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2026. Part.Transparency=i
  2027. numm=numm+0.01
  2028. end
  2029. Part.Parent=nil
  2030. Mesh.Parent=nil
  2031. end),prt,msh,x,y,z)
  2032. end
  2033.  
  2034. function dmgstart(dmg,what)
  2035. hitcon = what.Touched:connect(function(hit)
  2036. local hum = hit.Parent:FindFirstChild("Humanoid")
  2037. if hum and not hum:IsDescendantOf(Character) then
  2038. hum:TakeDamage(dmg)
  2039. end
  2040. end)
  2041. end
  2042.  
  2043. function dmgstop()
  2044. hitcon:disconnect()
  2045. end
  2046.  
  2047. function Cloak()
  2048. Face.Parent=nil
  2049. cloaked=true
  2050. for _,v in pairs(Torso.Parent:children()) do
  2051. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2052. coroutine.resume(coroutine.create(function()
  2053. for i=0,1,0.2 do
  2054. wait()
  2055. v.Transparency=i
  2056. end
  2057. v.Transparency=1
  2058. end))
  2059. end
  2060. if v.className=="Hat" then
  2061. hatp=v.Handle
  2062. coroutine.resume(coroutine.create(function(derp)
  2063. for i=0,1,0.2 do
  2064. wait()
  2065. derp.Transparency=i
  2066. end
  2067. derp.Transparency=1
  2068. end),hatp)
  2069. end
  2070. end
  2071. for _,v in pairs(m:children()) do
  2072. if v.className=="Part" then
  2073. coroutine.resume(coroutine.create(function()
  2074. for i=0,1,0.2 do
  2075. wait()
  2076. v.Transparency=i
  2077. end
  2078. v.Transparency=1
  2079. end))
  2080. end
  2081. end
  2082. end
  2083.  
  2084. function UnCloak()
  2085. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2086. Face.Parent=Head
  2087. cloaked=false
  2088. for _,v in pairs(Torso.Parent:children()) do
  2089. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2090. coroutine.resume(coroutine.create(function()
  2091. for i=0,1,0.1 do
  2092. wait()
  2093. v.Transparency=v.Transparency-0.1
  2094. end
  2095. v.Transparency=0
  2096. end))
  2097. end
  2098. if v.className=="Hat" then
  2099. hatp=v.Handle
  2100. coroutine.resume(coroutine.create(function(derp)
  2101. for i=0,1,0.1 do
  2102. wait()
  2103. derp.Transparency=derp.Transparency-0.1
  2104. end
  2105. derp.Transparency=0
  2106. end),hatp)
  2107. end
  2108. end
  2109. for _,v in pairs(m:children()) do
  2110. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2111. coroutine.resume(coroutine.create(function()
  2112. for i=0,1,0.1 do
  2113. wait()
  2114. v.Transparency=v.Transparency-0.1
  2115. end
  2116. v.Transparency=0
  2117. end))
  2118. v.Transparency=0
  2119. end
  2120. end
  2121. end
  2122.  
  2123. local origcolor = BrickColor.new("Pastel light blue")
  2124. ---- This section of explosions.
  2125.  
  2126. ----
  2127.  
  2128.  
  2129. function ring(type,pos,scale,value)
  2130. local type = type
  2131. local rng = Instance.new("Part", char)
  2132. rng.Anchored = true
  2133. rng.BrickColor = origcolor
  2134. rng.CanCollide = false
  2135. rng.FormFactor = 3
  2136. rng.Name = "Ring"
  2137. rng.Size = Vector3.new(1, 1, 1)
  2138. rng.Transparency = 0
  2139. rng.TopSurface = 0
  2140. rng.BottomSurface = 0
  2141. rng.CFrame = pos
  2142. local rngm = Instance.new("SpecialMesh", rng)
  2143. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2144. rngm.Scale = scale
  2145. local scaler2 = 1
  2146. if type == "Add" then
  2147. scaler2 = 1*value
  2148. elseif type == "Divide" then
  2149. scaler2 = 1/value
  2150. end
  2151. coroutine.resume(coroutine.create(function()
  2152. for i = 0,10,0.1 do
  2153. swait()
  2154. if type == "Add" then
  2155. scaler2 = scaler2 - 0.01*value
  2156. elseif type == "Divide" then
  2157. scaler2 = scaler2 - 0.01/value
  2158. end
  2159. rng.Transparency = rng.Transparency + 0.01
  2160. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2161. end
  2162. rng:Destroy()
  2163. end))
  2164. end
  2165.  
  2166.  
  2167. function wave(type,pos,scale,value)
  2168. local type = type
  2169. local rng = Instance.new("Part", char)
  2170. rng.Anchored = true
  2171. rng.BrickColor = origcolor
  2172. rng.CanCollide = false
  2173. rng.FormFactor = 3
  2174. rng.Name = "Ring"
  2175. rng.Size = Vector3.new(1, 1, 1)
  2176. rng.Transparency = 0
  2177. rng.TopSurface = 0
  2178. rng.BottomSurface = 0
  2179. rng.CFrame = pos
  2180. local rngm = Instance.new("SpecialMesh", rng)
  2181. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2182. rngm.Scale = scale
  2183. local scaler2 = 1
  2184. if type == "Add" then
  2185. scaler2 = 1*value
  2186. elseif type == "Divide" then
  2187. scaler2 = 1/value
  2188. end
  2189. coroutine.resume(coroutine.create(function()
  2190. for i = 0,10,0.1 do
  2191. swait()
  2192. if type == "Add" then
  2193. scaler2 = scaler2 - 0.01*value
  2194. elseif type == "Divide" then
  2195. scaler2 = scaler2 - 0.01/value
  2196. end
  2197. rng.Transparency = rng.Transparency + 0.01
  2198. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2199. end
  2200. rng:Destroy()
  2201. end))
  2202. end
  2203.  
  2204. function wind(type,pos,scale,value,speed)
  2205. local type = type
  2206. local rng = Instance.new("Part", char)
  2207. rng.Anchored = true
  2208. rng.BrickColor = origcolor
  2209. rng.CanCollide = false
  2210. rng.FormFactor = 3
  2211. rng.Name = "Ring"
  2212. rng.Size = Vector3.new(1, 1, 1)
  2213. rng.Transparency = 0
  2214. rng.TopSurface = 0
  2215. rng.BottomSurface = 0
  2216. rng.CFrame = pos
  2217. local rngm = Instance.new("SpecialMesh", rng)
  2218. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2219. rngm.Scale = scale
  2220. local scaler2 = 1
  2221. if type == "Add" then
  2222. scaler2 = 1*value
  2223. elseif type == "Divide" then
  2224. scaler2 = 1/value
  2225. end
  2226. coroutine.resume(coroutine.create(function()
  2227. for i = 0,10,0.1 do
  2228. swait()
  2229. if type == "Add" then
  2230. scaler2 = scaler2 - 0.01*value
  2231. elseif type == "Divide" then
  2232. scaler2 = scaler2 - 0.01/value
  2233. end
  2234. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2235. rng.Transparency = rng.Transparency + 0.01
  2236. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2237. end
  2238. rng:Destroy()
  2239. end))
  2240. end
  2241.  
  2242. function groundwind(type,pos,scale,value,speed)
  2243. local type = type
  2244. local rng = Instance.new("Part", char)
  2245. rng.Anchored = true
  2246. rng.BrickColor = origcolor
  2247. rng.CanCollide = false
  2248. rng.FormFactor = 3
  2249. rng.Name = "Ring"
  2250. rng.Size = Vector3.new(1, 1, 1)
  2251. rng.Transparency = 0
  2252. rng.TopSurface = 0
  2253. rng.BottomSurface = 0
  2254. rng.CFrame = pos
  2255. local rngm = Instance.new("SpecialMesh", rng)
  2256. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2257. rngm.Scale = scale
  2258. local scaler2 = 1
  2259. if type == "Add" then
  2260. scaler2 = 1*value
  2261. elseif type == "Divide" then
  2262. scaler2 = 1/value
  2263. end
  2264. coroutine.resume(coroutine.create(function()
  2265. for i = 0,10,0.1 do
  2266. swait()
  2267. if type == "Add" then
  2268. scaler2 = scaler2 - 0.01*value
  2269. elseif type == "Divide" then
  2270. scaler2 = scaler2 - 0.01/value
  2271. end
  2272. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2273. rng.Transparency = rng.Transparency + 0.01
  2274. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2275. end
  2276. rng:Destroy()
  2277. end))
  2278. end
  2279.  
  2280. function CameraManager()
  2281. if TwoD and not CamInterrupt then
  2282. if Humanoid.Health > 0 then
  2283. Camera.CameraSubject = Humanoid
  2284. Camera.CameraType = "Scriptable"
  2285. Humanoid.AutoRotate = false
  2286. if Booleans.GyroUse then
  2287. Directer.MaxTorque = Vec3(0, huge, 0)
  2288. else
  2289. Directer.MaxTorque = Vec3(0, 0, 0)
  2290. end
  2291. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2292. if Booleans.CamFollow then
  2293. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2294. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2295. else
  2296. CPart.Position = RootPart.Position
  2297. end
  2298. else
  2299. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2300. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2301. end
  2302. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2303. else
  2304. Camera.CameraSubject = Humanoid
  2305. Camera.CameraType = "Custom"
  2306. end
  2307. end
  2308. end
  2309.  
  2310. function ring(type,pos,scale,value)
  2311. local type = type
  2312. local rng = Instance.new("Part", char)
  2313. rng.Anchored = true
  2314. rng.BrickColor = origcolor
  2315. rng.CanCollide = false
  2316. rng.FormFactor = 3
  2317. rng.Name = "Ring"
  2318. rng.Size = Vector3.new(1, 1, 1)
  2319. rng.Transparency = 0
  2320. rng.TopSurface = 0
  2321. rng.BottomSurface = 0
  2322. rng.CFrame = pos
  2323. local rngm = Instance.new("SpecialMesh", rng)
  2324. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2325. rngm.Scale = scale
  2326. local scaler2 = 1
  2327. if type == "Add" then
  2328. scaler2 = 1*value
  2329. elseif type == "Divide" then
  2330. scaler2 = 1/value
  2331. end
  2332. coroutine.resume(coroutine.create(function()
  2333. for i = 0,10,0.1 do
  2334. swait()
  2335. if type == "Add" then
  2336. scaler2 = scaler2 - 0.01*value
  2337. elseif type == "Divide" then
  2338. scaler2 = scaler2 - 0.01/value
  2339. end
  2340. rng.Transparency = rng.Transparency + 0.01
  2341. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2342. end
  2343. rng:Destroy()
  2344. end))
  2345. end
  2346.  
  2347.  
  2348. function wave(type,pos,scale,value)
  2349. local type = type
  2350. local rng = Instance.new("Part", char)
  2351. rng.Anchored = true
  2352. rng.BrickColor = origcolor
  2353. rng.CanCollide = false
  2354. rng.FormFactor = 3
  2355. rng.Name = "Ring"
  2356. rng.Size = Vector3.new(1, 1, 1)
  2357. rng.Transparency = 0
  2358. rng.TopSurface = 0
  2359. rng.BottomSurface = 0
  2360. rng.CFrame = pos
  2361. local rngm = Instance.new("SpecialMesh", rng)
  2362. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2363. rngm.Scale = scale
  2364. local scaler2 = 1
  2365. if type == "Add" then
  2366. scaler2 = 1*value
  2367. elseif type == "Divide" then
  2368. scaler2 = 1/value
  2369. end
  2370. coroutine.resume(coroutine.create(function()
  2371. for i = 0,10,0.1 do
  2372. swait()
  2373. if type == "Add" then
  2374. scaler2 = scaler2 - 0.01*value
  2375. elseif type == "Divide" then
  2376. scaler2 = scaler2 - 0.01/value
  2377. end
  2378. rng.Transparency = rng.Transparency + 0.01
  2379. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2380. end
  2381. rng:Destroy()
  2382. end))
  2383. end
  2384.  
  2385. function sphere(bonuspeed,type,pos,scale,value,color)
  2386. local type = type
  2387. local rng = Instance.new("Part", char)
  2388. rng.Anchored = true
  2389. if ModeOfGlitch ~= 9 then
  2390. rng.BrickColor = color
  2391. elseif ModeOfGlitch == 9 then
  2392. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2393. end
  2394. rng.CanCollide = false
  2395. rng.FormFactor = 3
  2396. rng.Name = "Ring"
  2397. rng.Material = "Neon"
  2398. rng.Size = Vector3.new(1, 1, 1)
  2399. rng.Transparency = 0
  2400. rng.TopSurface = 0
  2401. rng.BottomSurface = 0
  2402. rng.CFrame = pos
  2403. local rngm = Instance.new("SpecialMesh", rng)
  2404. rngm.MeshType = "Sphere"
  2405. rngm.Scale = scale
  2406. if rainbowmode == true then
  2407. rng.Color = Color3.new(r/255,g/255,b/255)
  2408. end
  2409. if ModeOfGlitch == 9 then
  2410. coroutine.resume(coroutine.create(function()
  2411. while true do
  2412. swait()
  2413. if rng.Parent ~= nil then
  2414. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2415. else
  2416. break
  2417. end
  2418. end
  2419. end))
  2420. end
  2421. local scaler2 = 1
  2422. if type == "Add" then
  2423. scaler2 = 1*value
  2424. elseif type == "Divide" then
  2425. scaler2 = 1/value
  2426. end
  2427. coroutine.resume(coroutine.create(function()
  2428. for i = 0,10/bonuspeed,0.1 do
  2429. swait()
  2430. if rainbowmode == true then
  2431. rng.Color = Color3.new(r/255,g/255,b/255)
  2432. end
  2433. if type == "Add" then
  2434. scaler2 = scaler2 - 0.01*value/bonuspeed
  2435. elseif type == "Divide" then
  2436. scaler2 = scaler2 - 0.01/value*bonuspeed
  2437. end
  2438. if chaosmode == true then
  2439. rng.BrickColor = BrickColor.random()
  2440. end
  2441. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2442. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2443. end
  2444. rng:Destroy()
  2445. end))
  2446. end
  2447.  
  2448. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2449. local type = type
  2450. local rng = Instance.new("Part", char)
  2451. rng.Anchored = true
  2452. if ModeOfGlitch ~= 9 then
  2453. rng.BrickColor = color
  2454. elseif ModeOfGlitch == 9 then
  2455. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2456. end
  2457. rng.CanCollide = false
  2458. rng.FormFactor = 3
  2459. rng.Name = "Ring"
  2460. rng.Material = "Neon"
  2461. rng.Size = Vector3.new(1, 1, 1)
  2462. rng.Transparency = 0
  2463. rng.TopSurface = 0
  2464. rng.BottomSurface = 0
  2465. rng.CFrame = pos
  2466. local rngm = Instance.new("SpecialMesh", rng)
  2467. rngm.MeshType = "Sphere"
  2468. rngm.Scale = scale
  2469. local scaler2 = 1
  2470. local scaler2b = 1
  2471. local scaler2c = 1
  2472. if type == "Add" then
  2473. scaler2 = 1*value
  2474. scaler2b = 1*value2
  2475. scaler2c = 1*value3
  2476. elseif type == "Divide" then
  2477. scaler2 = 1/value
  2478. scaler2b = 1/value2
  2479. scaler2c = 1/value3
  2480. end
  2481. if ModeOfGlitch == 9 then
  2482. coroutine.resume(coroutine.create(function()
  2483. while true do
  2484. swait()
  2485. if rng.Parent ~= nil then
  2486. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2487. else
  2488. break
  2489. end
  2490. end
  2491. end))
  2492. end
  2493. coroutine.resume(coroutine.create(function()
  2494. for i = 0,10/bonuspeed,0.1 do
  2495. swait()
  2496. if type == "Add" then
  2497. scaler2 = scaler2 - 0.01*value/bonuspeed
  2498. scaler2b = scaler2b - 0.01*value/bonuspeed
  2499. scaler2c = scaler2c - 0.01*value/bonuspeed
  2500. elseif type == "Divide" then
  2501. scaler2 = scaler2 - 0.01/value*bonuspeed
  2502. scaler2b = scaler2b - 0.01/value*bonuspeed
  2503. scaler2c = scaler2c - 0.01/value*bonuspeed
  2504. end
  2505. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2506. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2507. end
  2508. rng:Destroy()
  2509. end))
  2510. end
  2511.  
  2512. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2513. local type = type
  2514. local rotenable = rotatingop
  2515. local rng = Instance.new("Part", char)
  2516. rng.Anchored = true
  2517. rng.BrickColor = color
  2518. rng.CanCollide = false
  2519. rng.FormFactor = 3
  2520. rng.Name = "Ring"
  2521. rng.Material = "Neon"
  2522. rng.Size = Vector3.new(1, 1, 1)
  2523. rng.Transparency = 0
  2524. if typeoftrans == "In" then
  2525. rng.Transparency = 1
  2526. end
  2527. rng.TopSurface = 0
  2528. rng.BottomSurface = 0
  2529. rng.CFrame = pos
  2530. local rngm = Instance.new("SpecialMesh", rng)
  2531. rngm.MeshType = "FileMesh"
  2532. if typeofshape == "Normal" then
  2533. rngm.MeshId = "rbxassetid://662586858"
  2534. elseif typeofshape == "Round" then
  2535. rngm.MeshId = "rbxassetid://662585058"
  2536. end
  2537. rngm.Scale = scale
  2538. local scaler2 = 1/10
  2539. if type == "Add" then
  2540. scaler2 = 1*value/10
  2541. elseif type == "Divide" then
  2542. scaler2 = 1/value/10
  2543. end
  2544. local randomrot = math.random(1,2)
  2545. coroutine.resume(coroutine.create(function()
  2546. for i = 0,10/bonuspeed,0.1 do
  2547. swait()
  2548. if type == "Add" then
  2549. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2550. elseif type == "Divide" then
  2551. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2552. end
  2553. if rotenable == true then
  2554. if randomrot == 1 then
  2555. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2556. elseif randomrot == 2 then
  2557. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2558. end
  2559. end
  2560. if typeoftrans == "Out" then
  2561. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2562. elseif typeoftrans == "In" then
  2563. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2564. end
  2565. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2566. end
  2567. rng:Destroy()
  2568. end))
  2569. end
  2570.  
  2571. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2572. local type = type
  2573. local rng = Instance.new("Part", char)
  2574. rng.Anchored = true
  2575. rng.BrickColor = color
  2576. rng.CanCollide = false
  2577. rng.FormFactor = 3
  2578. rng.Name = "Ring"
  2579. rng.Material = "Neon"
  2580. rng.Size = Vector3.new(1, 1, 1)
  2581. rng.Transparency = 0
  2582. rng.TopSurface = 0
  2583. rng.BottomSurface = 0
  2584. rng.CFrame = pos
  2585. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2586. local rngm = Instance.new("SpecialMesh", rng)
  2587. rngm.MeshType = "Brick"
  2588. rngm.Scale = vt(x1,y1,z1)
  2589. if rainbowmode == true then
  2590. rng.Color = Color3.new(r/255,g/255,b/255)
  2591. end
  2592. local scaler2 = 1
  2593. local speeder = FastSpeed/10
  2594. if type == "Add" then
  2595. scaler2 = 1*value
  2596. elseif type == "Divide" then
  2597. scaler2 = 1/value
  2598. end
  2599. coroutine.resume(coroutine.create(function()
  2600. for i = 0,10/bonuspeed,0.1 do
  2601. swait()
  2602. if rainbowmode == true then
  2603. rng.Color = Color3.new(r/255,g/255,b/255)
  2604. end
  2605. if type == "Add" then
  2606. scaler2 = scaler2 - 0.01*value/bonuspeed
  2607. elseif type == "Divide" then
  2608. scaler2 = scaler2 - 0.01/value*bonuspeed
  2609. end
  2610. if chaosmode == true then
  2611. rng.BrickColor = BrickColor.random()
  2612. end
  2613. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2614. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2615. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2616. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2617. end
  2618. rng:Destroy()
  2619. end))
  2620. end
  2621.  
  2622. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2623. local type = type
  2624. local rng = Instance.new("Part", char)
  2625. rng.Anchored = true
  2626. rng.BrickColor = color
  2627. rng.CanCollide = false
  2628. rng.FormFactor = 3
  2629. rng.Name = "Ring"
  2630. rng.Material = "Neon"
  2631. rng.Size = Vector3.new(1, 1, 1)
  2632. rng.Transparency = 0
  2633. rng.TopSurface = 0
  2634. rng.BottomSurface = 0
  2635. rng.CFrame = pos
  2636. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2637. local rngm = Instance.new("SpecialMesh", rng)
  2638. rngm.MeshType = "Brick"
  2639. rngm.Scale = vt(x1,y1,z1)
  2640. if rainbowmode == true then
  2641. rng.Color = Color3.new(r/255,g/255,b/255)
  2642. end
  2643. local scaler2 = 1
  2644. local speeder = FastSpeed/10
  2645. if type == "Add" then
  2646. scaler2 = 1*value
  2647. elseif type == "Divide" then
  2648. scaler2 = 1/value
  2649. end
  2650. coroutine.resume(coroutine.create(function()
  2651. for i = 0,10/bonuspeed,0.1 do
  2652. swait()
  2653. if rainbowmode == true then
  2654. rng.Color = Color3.new(r/255,g/255,b/255)
  2655. end
  2656. if type == "Add" then
  2657. scaler2 = scaler2 - 0.01*value/bonuspeed
  2658. elseif type == "Divide" then
  2659. scaler2 = scaler2 - 0.01/value*bonuspeed
  2660. end
  2661. if chaosmode == true then
  2662. rng.BrickColor = BrickColor.random()
  2663. end
  2664. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2665. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2666. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2667. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2668. end
  2669. rng:Destroy()
  2670. end))
  2671. end
  2672.  
  2673. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2674. local type = type
  2675. local rng = Instance.new("Part", char)
  2676. rng.Anchored = true
  2677. rng.BrickColor = color
  2678. rng.CanCollide = false
  2679. rng.FormFactor = 3
  2680. rng.Name = "Ring"
  2681. rng.Material = "Neon"
  2682. rng.Size = Vector3.new(1, 1, 1)
  2683. rng.Transparency = 0
  2684. rng.TopSurface = 0
  2685. rng.BottomSurface = 0
  2686. rng.CFrame = pos
  2687. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2688. local rngm = Instance.new("SpecialMesh", rng)
  2689. rngm.MeshType = "Brick"
  2690. rngm.Scale = vt(x1,y1,z1)
  2691. if rainbowmode == true then
  2692. rng.Color = Color3.new(r/255,g/255,b/255)
  2693. end
  2694. local scaler2 = 0
  2695. local speeder = FastSpeed/10
  2696. if type == "Add" then
  2697. scaler2 = 1*value
  2698. elseif type == "Divide" then
  2699. scaler2 = 1/value
  2700. end
  2701. coroutine.resume(coroutine.create(function()
  2702. for i = 0,10/bonuspeed,0.1 do
  2703. swait()
  2704. if rainbowmode == true then
  2705. rng.Color = Color3.new(r/255,g/255,b/255)
  2706. end
  2707. if type == "Add" then
  2708. scaler2 = scaler2 - 0.01*value/bonuspeed
  2709. elseif type == "Divide" then
  2710. scaler2 = scaler2 - 0.01/value*bonuspeed
  2711. end
  2712. if chaosmode == true then
  2713. rng.BrickColor = BrickColor.random()
  2714. end
  2715. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2716. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2717. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2718. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2719. end
  2720. rng:Destroy()
  2721. end))
  2722. end
  2723.  
  2724. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2725. local type = type
  2726. local rng = Instance.new("Part", char)
  2727. rng.Anchored = true
  2728. rng.BrickColor = color
  2729. rng.Color = color3
  2730. rng.CanCollide = false
  2731. rng.FormFactor = 3
  2732. rng.Name = "Ring"
  2733. rng.Material = "Neon"
  2734. rng.Size = Vector3.new(1, 1, 1)
  2735. rng.Transparency = 0
  2736. rng.TopSurface = 0
  2737. rng.BottomSurface = 0
  2738. rng.CFrame = pos
  2739. local rngm = Instance.new("SpecialMesh", rng)
  2740. rngm.MeshType = "Brick"
  2741. rngm.Scale = scale
  2742. local scaler2 = 1
  2743. local scaler2b = 1
  2744. local scaler2c = 1
  2745. if type == "Add" then
  2746. scaler2 = 1*value
  2747. scaler2b = 1*value2
  2748. scaler2c = 1*value3
  2749. elseif type == "Divide" then
  2750. scaler2 = 1/value
  2751. scaler2b = 1/value2
  2752. scaler2c = 1/value3
  2753. end
  2754. coroutine.resume(coroutine.create(function()
  2755. for i = 0,10/bonuspeed,0.1 do
  2756. swait()
  2757. if type == "Add" then
  2758. scaler2 = scaler2 - 0.01*value/bonuspeed
  2759. scaler2b = scaler2b - 0.01*value/bonuspeed
  2760. scaler2c = scaler2c - 0.01*value/bonuspeed
  2761. elseif type == "Divide" then
  2762. scaler2 = scaler2 - 0.01/value*bonuspeed
  2763. scaler2b = scaler2b - 0.01/value*bonuspeed
  2764. scaler2c = scaler2c - 0.01/value*bonuspeed
  2765. end
  2766. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2767. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2768. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2769. end
  2770. rng:Destroy()
  2771. end))
  2772. end
  2773.  
  2774. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2775. local type = type
  2776. local rng = Instance.new("Part", char)
  2777. rng.Anchored = true
  2778. if ModeOfGlitch ~= 9 then
  2779. rng.BrickColor = color
  2780. elseif ModeOfGlitch == 9 then
  2781. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2782. end
  2783. rng.CanCollide = false
  2784. rng.FormFactor = 3
  2785. rng.Name = "Ring"
  2786. rng.Material = "Neon"
  2787. rng.Size = Vector3.new(1, 1, 1)
  2788. rng.Transparency = 0
  2789. rng.TopSurface = 0
  2790. rng.BottomSurface = 0
  2791. rng.CFrame = pos
  2792. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2793. local rngm = Instance.new("SpecialMesh", rng)
  2794. rngm.MeshType = "Sphere"
  2795. rngm.Scale = vt(x1,y1,z1)
  2796. if rainbowmode == true then
  2797. rng.Color = Color3.new(r/255,g/255,b/255)
  2798. end
  2799. if ModeOfGlitch == 9 then
  2800. coroutine.resume(coroutine.create(function()
  2801. while true do
  2802. swait()
  2803. if rng.Parent ~= nil then
  2804. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2805. else
  2806. break
  2807. end
  2808. end
  2809. end))
  2810. end
  2811. local scaler2 = 1
  2812. local speeder = FastSpeed
  2813. if type == "Add" then
  2814. scaler2 = 1*value
  2815. elseif type == "Divide" then
  2816. scaler2 = 1/value
  2817. end
  2818. coroutine.resume(coroutine.create(function()
  2819. for i = 0,10/bonuspeed,0.1 do
  2820. swait()
  2821. if rainbowmode == true then
  2822. rng.Color = Color3.new(r/255,g/255,b/255)
  2823. end
  2824. if type == "Add" then
  2825. scaler2 = scaler2 - 0.01*value/bonuspeed
  2826. elseif type == "Divide" then
  2827. scaler2 = scaler2 - 0.01/value*bonuspeed
  2828. end
  2829. if chaosmode == true then
  2830. rng.BrickColor = BrickColor.random()
  2831. end
  2832. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2833. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2834. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2835. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2836. end
  2837. rng:Destroy()
  2838. end))
  2839. end
  2840.  
  2841.  
  2842. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2843. local type = type
  2844. local rng = Instance.new("Part", char)
  2845. rng.Anchored = true
  2846. if ModeOfGlitch ~= 9 then
  2847. rng.BrickColor = color
  2848. elseif ModeOfGlitch == 9 then
  2849. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2850. end
  2851. rng.CanCollide = false
  2852. rng.FormFactor = 3
  2853. rng.Name = "Ring"
  2854. rng.Material = "Neon"
  2855. rng.Size = Vector3.new(1, 1, 1)
  2856. rng.Transparency = 1
  2857. rng.TopSurface = 0
  2858. rng.BottomSurface = 0
  2859. rng.CFrame = pos
  2860. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2861. local rngm = Instance.new("SpecialMesh", rng)
  2862. rngm.MeshType = "Sphere"
  2863. rngm.Scale = vt(x1,y1,z1)
  2864. if rainbowmode == true then
  2865. rng.Color = Color3.new(r/255,g/255,b/255)
  2866. end
  2867. if ModeOfGlitch == 9 then
  2868. coroutine.resume(coroutine.create(function()
  2869. while true do
  2870. swait()
  2871. if rng.Parent ~= nil then
  2872. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2873. else
  2874. break
  2875. end
  2876. end
  2877. end))
  2878. end
  2879. local scaler2 = 1
  2880. local speeder = FastSpeed
  2881. if type == "Add" then
  2882. scaler2 = 1*value
  2883. elseif type == "Divide" then
  2884. scaler2 = 1/value
  2885. end
  2886. coroutine.resume(coroutine.create(function()
  2887. for i = 0,10/bonuspeed,0.1 do
  2888. swait()
  2889. if rainbowmode == true then
  2890. rng.Color = Color3.new(r/255,g/255,b/255)
  2891. end
  2892. if type == "Add" then
  2893. scaler2 = scaler2 - 0.01*value/bonuspeed
  2894. elseif type == "Divide" then
  2895. scaler2 = scaler2 - 0.01/value*bonuspeed
  2896. end
  2897. if chaosmode == true then
  2898. rng.BrickColor = BrickColor.random()
  2899. end
  2900. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2901. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2902. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2903. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2904. end
  2905. rng:Destroy()
  2906. end))
  2907. end
  2908.  
  2909. function dmg(dude)
  2910. if dude.Name ~= Character then
  2911. local keptcolor = BrickColor.new("Really red")
  2912. local bgf = Instance.new("BodyGyro",dude.Head)
  2913. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2914. --[[local val = Instance.new("BoolValue",dude)
  2915. val.Name = "IsHit"]]--
  2916. local ds = coroutine.wrap(function()
  2917. dude:WaitForChild("Head"):BreakJoints()
  2918. for i, v in pairs(dude:GetChildren()) do
  2919. if v:IsA("Part") or v:IsA("MeshPart") then
  2920. v.Name = "DEMINISHED"
  2921. end
  2922. end
  2923. wait(0.5)
  2924. targetted = nil
  2925. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2926. coroutine.resume(coroutine.create(function()
  2927. for i, v in pairs(dude:GetChildren()) do
  2928. if v:IsA("Accessory") then
  2929. v:Destroy()
  2930. end
  2931. if v:IsA("Humanoid") then
  2932. v:Destroy()
  2933. end
  2934. if v:IsA("CharacterMesh") then
  2935. v:Destroy()
  2936. end
  2937. if v:IsA("Model") then
  2938. v:Destroy()
  2939. end
  2940. if v:IsA("Part") or v:IsA("MeshPart") then
  2941. for x, o in pairs(v:GetChildren()) do
  2942. if o:IsA("Decal") then
  2943. o:Destroy()
  2944. end
  2945. end
  2946. coroutine.resume(coroutine.create(function()
  2947. v.Material = "Neon"
  2948. v.CanCollide = false
  2949. v.Anchored = false
  2950. local bld = Instance.new("ParticleEmitter",v)
  2951. bld.LightEmission = 0.75
  2952. bld.Texture = "rbxassetid://363275192" ---284205403
  2953. bld.Color = ColorSequence.new(keptcolor.Color)
  2954. bld.Rate = 500
  2955. bld.Lifetime = NumberRange.new(1)
  2956. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2957. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2958. bld.Speed = NumberRange.new(2,5)
  2959. bld.VelocitySpread = 50000
  2960. bld.Rotation = NumberRange.new(-500,500)
  2961. bld.RotSpeed = NumberRange.new(-500,500)
  2962. local sbs = Instance.new("BodyPosition", v)
  2963. sbs.P = 3000
  2964. sbs.D = 1000
  2965. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2966. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2967. v.Color = keptcolor.Color
  2968. coroutine.resume(coroutine.create(function()
  2969. for i = 0, 49 do
  2970. swait(1)
  2971. v:BreakJoints()
  2972. v.Transparency = v.Transparency + 0.02
  2973. end
  2974. v:BreakJoints()
  2975. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2976. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2977. bld.Speed = NumberRange.new(10,25)
  2978. bld.Drag = 5
  2979. bld.Acceleration = vt(0,2,0)
  2980. wait(0.5)
  2981. bld.Enabled = false
  2982. wait(8)
  2983. v:Destroy()
  2984. dude:Destroy()
  2985. end))
  2986. end))
  2987. end
  2988. end
  2989. end))
  2990. end)
  2991. ds()
  2992. end
  2993. end
  2994.  
  2995.  
  2996. function FindNearestHead(Position, Distance, SinglePlayer)
  2997. if SinglePlayer then
  2998. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2999. end
  3000. local List = {}
  3001. for i, v in pairs(workspace:GetChildren()) do
  3002. if v:IsA("Model") then
  3003. if v:findFirstChild("Head") then
  3004. if v ~= Character then
  3005. if (v.Head.Position - Position).magnitude <= Distance then
  3006. table.insert(List, v)
  3007. end
  3008. end
  3009. end
  3010. end
  3011. end
  3012. return List
  3013. end
  3014.  
  3015. function FaceMouse()
  3016. Cam = workspace.CurrentCamera
  3017. return {
  3018. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3019. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3020. }
  3021. end
  3022.  
  3023. function FaceMouse2()
  3024. Cam = workspace.CurrentCamera
  3025. return {
  3026. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3027. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3028. }
  3029. end
  3030.  
  3031. local ModeOfGlitch = 1
  3032. -- Functions are ready.
  3033. local storehumanoidWS = 16
  3034. MAINRUINCOLOR = BrickColor.new("Navy blue")
  3035.  
  3036. function createBGCircle(size,parent,color)
  3037. local bgui = Instance.new("BillboardGui",parent)
  3038. bgui.Size = UDim2.new(size, 0, size, 0)
  3039. local imgc = Instance.new("ImageLabel",bgui)
  3040. imgc.BackgroundTransparency = 1
  3041. imgc.ImageTransparency = 0
  3042. imgc.Size = UDim2.new(1,0,1,0)
  3043. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3044. imgc.ImageColor3 = color
  3045. return bgui,imgc
  3046. end
  3047. function attackone()
  3048. attack = true
  3049. for i = 0,2,0.1 do
  3050. swait()
  3051. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  3052. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
  3053. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3054. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-90)), 0.3)
  3055. end
  3056. so("http://roblox.com/asset/?id=199145204",barrelhole,1,1)
  3057. local hitb = CreateParta(handle,1,1,"SmoothPlastic",BrickColor.Random())
  3058. hitb.Anchored = true
  3059. hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
  3060. MagniDamage(hitb, 4, 50,70, 0, "Normal",153092213)
  3061. for i = 0,1,0.1 do
  3062. swait()
  3063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3064. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3065. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3066. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-90)), 0.3)
  3067. end
  3068.  
  3069. so("http://roblox.com/asset/?id=604905243",barrelhole,1.25,0.9)
  3070. local b = Instance.new("Part")
  3071. b.Parent = char
  3072. b.Material = "Neon"
  3073. b.Color = BrickColor.new("Navy blue").Color
  3074. b.CanCollide = false
  3075. b.Shape = "Ball"
  3076. b.CFrame = barrelhole.CFrame
  3077. b.Anchored = true
  3078. b.Transparency = 0
  3079. b.Size = vt(5,5,5)
  3080. local z = Instance.new("SpecialMesh",b)
  3081. z.MeshType = "Sphere"
  3082. z.Scale = vt(0.25,0.25,0.25)
  3083. local bv = Instance.new("BodyVelocity")
  3084. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3085. bv.velocity = mouse.Hit.lookVector *150
  3086. bv.Parent = lb
  3087. local hitb = CreateParta(handle,1,1,"SmoothPlastic",BrickColor.Random())
  3088. hitb.Anchored = true
  3089. hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
  3090. MagniDamage(hitb, 4, 50,70, 0, "Normal",153092213)
  3091. for i = 0,2,0.1 do
  3092. swait()
  3093. z.Scale = z.Scale + vt(0.15,0.15,0.15)
  3094. b.Transparency = b.Transparency + 0.05
  3095. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3096. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3097. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3098. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-50)), 0.3)
  3099. end
  3100. attack = false
  3101. end
  3102.  
  3103. function SeveralShot()
  3104. attack = true
  3105. for i = 0,1,0.3 do
  3106. swait()
  3107. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3108. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3109. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3110. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-90)), 0.3)
  3111. end
  3112. so("http://roblox.com/asset/?id=604905243",barrelhole,1,1)
  3113. local lb = Instance.new("Part")
  3114. lb.Parent = char
  3115. lb.Material = "Neon"
  3116. lb.Color = BrickColor.new("Navy blue").Color
  3117. lb.CanCollide = false
  3118. lb.Shape = "Ball"
  3119. lb.CFrame = barrelhole.CFrame
  3120. lb.Anchored = true
  3121. lb.Transparency = 0
  3122. lb.Size = vt(0.6,0.6,0.6)
  3123. local thing = Instance.new("SpecialMesh",lb)
  3124. thing.MeshType = "Sphere"
  3125. local b = Instance.new("Part")
  3126. b.Parent = char
  3127. b.Material = "Neon"
  3128. b.Color = BrickColor.new("Really blue").Color
  3129. b.CanCollide = false
  3130. b.Shape = "Ball"
  3131. b.CFrame = barrelhole.CFrame
  3132. b.Anchored = true
  3133. b.Transparency = 0
  3134. b.Size = vt(1,1,1)
  3135. local z = Instance.new("SpecialMesh",b)
  3136. z.MeshType = "Sphere"
  3137. local hitted = false
  3138. lb.Anchored = false
  3139. local bv = Instance.new("BodyVelocity")
  3140. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3141. bv.velocity = mouse.Hit.lookVector *150
  3142. bv.Parent = lb
  3143. lb.Touched:connect(function(hit) MagniDamage(hit, 4, 50,70, 0, "Normal",153092213) end)
  3144. z.Scale = vt(1,1,1)
  3145. b.Transparency = 0
  3146. b.CFrame = barrelhole.CFrame
  3147. for i = 0,1,0.3 do
  3148. swait()
  3149. z.Scale = z.Scale + vt(0.2,0.2,0.2)
  3150. b.Transparency = b.Transparency + 0.25
  3151. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3152. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3153. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3154. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-50)), 0.3)
  3155. end
  3156. for i = 0,1,0.3 do
  3157. swait()
  3158. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3159. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3160. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3161. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-90)), 0.3)
  3162. end
  3163. so("http://roblox.com/asset/?id=604905243",barrelhole,1,1)
  3164. local lb = Instance.new("Part")
  3165. lb.Parent = char
  3166. lb.Material = "Neon"
  3167. lb.Color = BrickColor.new("Navy blue").Color
  3168. lb.CanCollide = false
  3169. lb.Shape = "Ball"
  3170. lb.CFrame = barrelhole.CFrame
  3171. lb.Anchored = true
  3172. lb.Transparency = 0
  3173. lb.Size = vt(0.6,0.6,0.6)
  3174. local thing = Instance.new("SpecialMesh",lb)
  3175. thing.MeshType = "Sphere"
  3176. local hitted = false
  3177. lb.Anchored = false
  3178. local bv = Instance.new("BodyVelocity")
  3179. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3180. bv.velocity = mouse.Hit.lookVector *150
  3181. bv.Parent = lb
  3182. lb.Touched:connect(function(hit) MagniDamage(hit, 4, 50,70, 0, "Normal",153092213) end)
  3183. z.Scale = vt(1,1,1)
  3184. b.Transparency = 0
  3185. b.CFrame = barrelhole.CFrame
  3186. for i = 0,1,0.3 do
  3187. swait()
  3188. z.Scale = z.Scale + vt(0.2,0.2,0.2)
  3189. b.Transparency = b.Transparency + 0.25
  3190. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3191. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3192. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3193. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-50)), 0.3)
  3194. end
  3195. for i = 0,1,0.3 do
  3196. swait()
  3197. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3198. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3199. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3200. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-90)), 0.3)
  3201. end
  3202. so("http://roblox.com/asset/?id=604905243",barrelhole,1,1)
  3203. local lb = Instance.new("Part")
  3204. lb.Parent = char
  3205. lb.Material = "Neon"
  3206. lb.Color = BrickColor.new("Navy blue").Color
  3207. lb.CanCollide = false
  3208. lb.Shape = "Ball"
  3209. lb.CFrame = barrelhole.CFrame
  3210. lb.Anchored = true
  3211. lb.Transparency = 0
  3212. lb.Size = vt(0.6,0.6,0.6)
  3213. local thing = Instance.new("SpecialMesh",lb)
  3214. thing.MeshType = "Sphere"
  3215. local hitted = false
  3216. lb.Anchored = false
  3217. local bv = Instance.new("BodyVelocity")
  3218. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3219. bv.velocity = mouse.Hit.lookVector *150
  3220. bv.Parent = lb
  3221. lb.Touched:connect(function(hit) MagniDamage(hit, 4, 50,70, 0, "Normal",153092213) end)
  3222. z.Scale = vt(1,1,1)
  3223. b.CFrame = barrelhole.CFrame
  3224. b.Transparency = 0
  3225. for i = 0,1,0.3 do
  3226. swait()
  3227. z.Scale = z.Scale + vt(0.2,0.2,0.2)
  3228. b.Transparency = b.Transparency + 0.25
  3229. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3230. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  3231. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
  3232. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-50)), 0.3)
  3233. end
  3234. attack = false
  3235. b:Destroy()
  3236. wait(10)
  3237. lb:Destroy()
  3238. lb:Destroy()
  3239. lb:Destroy()
  3240. end
  3241.  
  3242. function Hellfire()
  3243. attack = true
  3244. hum.WalkSpeed = 0
  3245. bosschatfunc("I don't have all day.",MAINRUINCOLOR.Color,0.1)
  3246. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  3247. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  3248. CFuncs["Sound"].Create("rbxassetid://159882303", char, 4.5, 1)
  3249. local keptcolor = MAINRUINCOLOR
  3250. local obj1 = script.chring:Clone()
  3251. obj1.Parent = char
  3252. obj1.Transparency = 1
  3253. obj1.Color = BrickColor.new("Navy blue").Color
  3254. local obj2 = script.spball:Clone()
  3255. obj2.Parent = char
  3256. obj2.Transparency = 1
  3257. obj2.Color = MAINRUINCOLOR.Color
  3258. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  3259. cfor.Anchored = true
  3260. cfor.CFrame = obj2.CFrame
  3261. local cef = Instance.new("ParticleEmitter",cfor)
  3262. cef.Texture = "rbxassetid://2344870656"
  3263. cef.LightEmission = 1
  3264. cef.Color = ColorSequence.new(obj2.Color)
  3265. cef.Rate = 150
  3266. cef.Lifetime = NumberRange.new(0.25)
  3267. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3268. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  3269. cef.Speed = NumberRange.new(0)
  3270. local rval = 0
  3271. local eval = 1
  3272. CFuncs["Sound"].Create("rbxassetid://136007472", root, 10,0.7)
  3273. for i = 0,10,0.1 do
  3274. swait()
  3275. rval = rval + math.random(30,40)
  3276. eval = eval + 1.5
  3277. obj1.Transparency = obj1.Transparency - 0.003
  3278. obj1.Size = obj1.Size + vt(0,1,1)
  3279. obj1.CFrame = root.CFrame*CFrame.new(0,16,0)*CFrame.Angles(math.rad(0),math.rad(rval),math.rad(-90))
  3280. obj2.Transparency = obj2.Transparency - 0.005
  3281. obj2.Size = obj2.Size + vt(0.5,0.5,0.5)
  3282. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  3283. obj2.CFrame = root.CFrame*CFrame.new(0,36,0)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  3284. cfor.CFrame = obj2.CFrame
  3285. slash(math.random(50,90)/10,5,true,"Round","Add","In",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0.01,1),math.random(-400,-200)/250,BrickColor.new("Really blue"))
  3286. slash(math.random(50,90)/10,5,true,"Round","Add","In",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,0.01,1),math.random(-400,-200)/250,BrickColor.new("Navy blue"))
  3287. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  3288. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  3289. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  3290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  3291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  3292. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.6)
  3293. LW.C0=clerp(LW.C0,cf(-1.05,1.30,0)*angles(math.rad(190),math.rad(0),math.rad(-30)),.6)
  3294. end
  3295. CameraEnshaking(0.75,0.5)
  3296. cef.Enabled = false
  3297. coroutine.resume(coroutine.create(function()
  3298. for i = 0,49 do
  3299. swait()
  3300. rval = rval + 100
  3301. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  3302. obj2.Transparency = obj2.Transparency + 0.02
  3303. obj2.Size = obj2.Size + vt(5,5,5)
  3304. obj1.Transparency = obj1.Transparency + 0.02
  3305. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  3306. end
  3307. obj1:Destroy()
  3308. obj2:Destroy()
  3309. cfor:Destroy()
  3310. end))
  3311. for i = 0, 9 do
  3312. slash(math.random(10,40)/10,5,true,"Round","Add","Out",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,450)/250,BrickColor.new("Really blue"))
  3313. slash(math.random(10,40)/10,5,true,"Round","Add","Out",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,450)/250,BrickColor.new("Toothpaste"))
  3314. end
  3315. sphere2(3,"Add",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),1,1,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  3316. sphere2(3,"Add",obj2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),2,2,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  3317. CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 10, 0.8,0,10,0.15,0.5,1)
  3318. CFuncs["EchoSound"].Create("rbxassetid://763717897", root, 7.5, 1.1,0,10,0.15,0.5,1)
  3319. CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 5, 0.7,0,10,0.15,0.5,1)
  3320. bosschatfunc("JUST DIE ALREADY!",MAINRUINCOLOR.Color,0.1)
  3321. coroutine.resume(coroutine.create(function()
  3322. for i = 0, 19 do
  3323. swait()
  3324. local custcol = math.random(1,3)
  3325. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  3326. if custcol == 1 then
  3327. dis.BrickColor = MAINRUINCOLOR
  3328. elseif custcol == 2 then
  3329. dis.BrickColor = BrickColor.new("Navy blue")
  3330. elseif custcol == 3 then
  3331. dis.BrickColor = BrickColor.new("Deep blue")
  3332. end
  3333. dis.Anchored = true
  3334. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  3335. dis.CFrame = root.CFrame*CFrame.new(math.random(-30,30),math.random(11,51),math.random(-30,30))
  3336. CreateMesh(dis,"Sphere",2,2,2)
  3337. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  3338. slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("Really blue"))
  3339. coroutine.resume(coroutine.create(function()
  3340. wait(0.5)
  3341. dis.Anchored = false
  3342. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  3343. local at1 = Instance.new("Attachment",dis)
  3344. at1.Position = vt(-1,0,0)
  3345. local at2 = Instance.new("Attachment",dis)
  3346. at2.Position = vt(1,0,0)
  3347. local trl = Instance.new('Trail',dis)
  3348. trl.Attachment0 = at1
  3349. trl.FaceCamera = true
  3350. trl.Attachment1 = at2
  3351. trl.Texture = "rbxassetid://1049219073"
  3352. trl.LightEmission = 1
  3353. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3354. trl.Color = ColorSequence.new(dis.Color)
  3355. trl.Lifetime = 0.6
  3356. local a = Instance.new("Part",workspace)
  3357. a.Name = "Direction"
  3358. a.Anchored = true
  3359. a.BrickColor = bc("Bright red")
  3360. a.Material = "Neon"
  3361. a.Transparency = 1
  3362. a.CanCollide = false
  3363. local ray = Ray.new(
  3364. dis.CFrame.p, -- origin
  3365. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  3366. )
  3367. local ignore = dis
  3368. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3369. a.BottomSurface = 10
  3370. a.TopSurface = 10
  3371. local distance = (dis.CFrame.p - position).magnitude
  3372. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3373. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  3374. dis.CFrame = a.CFrame
  3375. a:Destroy()
  3376. local bv = Instance.new("BodyVelocity")
  3377. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3378. bv.velocity = dis.CFrame.lookVector*500
  3379. bv.Parent = dis
  3380. game:GetService("Debris"):AddItem(dis, 5)
  3381. local hitted = false
  3382. coroutine.resume(coroutine.create(function()
  3383. dis.Touched:connect(function(hit)
  3384. if hitted == false and hit.Parent ~= char then
  3385. hitted = true
  3386. CameraEnshaking(0.2,0.3)
  3387. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  3388. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  3389. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,dis.BrickColor,dis.Color)
  3390. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  3391. coroutine.resume(coroutine.create(function()
  3392. local eff = Instance.new("ParticleEmitter",dis)
  3393. eff.Texture = "rbxassetid://2344870656"
  3394. eff.LightEmission = 1
  3395. eff.Color = ColorSequence.new(dis.Color)
  3396. eff.Rate = 10000000
  3397. eff.Enabled = true
  3398. --eff.EmissionDirection = "Front"
  3399. eff.Lifetime = NumberRange.new(3)
  3400. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,20,0),NumberSequenceKeypoint.new(0.8,40,0),NumberSequenceKeypoint.new(1,60,0)})
  3401. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3402. eff.Speed = NumberRange.new(250)
  3403. eff.Drag = 5
  3404. eff.Rotation = NumberRange.new(-500,500)
  3405. eff.SpreadAngle = Vector2.new(0,900)
  3406. eff.RotSpeed = NumberRange.new(-500,500)
  3407. wait(0.2)
  3408. eff.Enabled = false
  3409. end))
  3410. coroutine.resume(coroutine.create(function()
  3411. for i = 0, 4 do
  3412. local disr = CreateParta(char,1,1,"Neon",dis.BrickColor)
  3413. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3414. local at1 = Instance.new("Attachment",disr)
  3415. at1.Position = vt(-10,0,0)
  3416. local at2 = Instance.new("Attachment",disr)
  3417. at2.Position = vt(10,0,0)
  3418. local trl = Instance.new('Trail',disr)
  3419. trl.Attachment0 = at1
  3420. trl.FaceCamera = true
  3421. trl.Attachment1 = at2
  3422. trl.Texture = "rbxassetid://2342682798"
  3423. trl.LightEmission = 1
  3424. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3425. trl.Color = ColorSequence.new(disr.Color)
  3426. trl.Lifetime = 0.5
  3427. local bv = Instance.new("BodyVelocity")
  3428. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3429. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  3430. bv.Parent = disr
  3431. local val = 0
  3432. coroutine.resume(coroutine.create(function()
  3433. swait(30)
  3434. for i = 0, 9 do
  3435. swait()
  3436. val = val + 0.1
  3437. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  3438. end
  3439. game:GetService("Debris"):AddItem(disr, 3)
  3440. end))
  3441. end
  3442. local eff = Instance.new("ParticleEmitter",dis)
  3443. eff.Texture = "rbxassetid://2273224484"
  3444. eff.LightEmission = 1
  3445. eff.Color = ColorSequence.new(dis.Color)
  3446. eff.Rate = 500000
  3447. eff.Lifetime = NumberRange.new(0.5,2)
  3448. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3449. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3450. eff.Speed = NumberRange.new(20,250)
  3451. eff.Drag = 5
  3452. eff.Rotation = NumberRange.new(-500,500)
  3453. eff.VelocitySpread = 9000
  3454. eff.RotSpeed = NumberRange.new(-50,50)
  3455. wait(0.5)
  3456. eff.Enabled = false
  3457. end))
  3458. for i = 0, 4 do
  3459. slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("Navy blue"))
  3460. end
  3461. coroutine.resume(coroutine.create(function()
  3462. for i = 0, 19 do
  3463. swait()
  3464. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  3465. end
  3466. hum.CameraOffset = vt(0,0,0)
  3467. end))
  3468. dis.Anchored = true
  3469. dis.Transparency = 1
  3470. wait(8)
  3471. dis:Destroy()
  3472. end
  3473. end)
  3474. end))
  3475. end))
  3476. end
  3477. end))
  3478. for i = 0,9,0.1 do
  3479. swait()
  3480. 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(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  3481. 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(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  3482. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-27 + 2 * math.cos(sine / 56))),.1)
  3483. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 6 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 43) - 10 * math.cos(sine / 0.25)),math.rad(25 - 2 * math.cos(sine / 56))),.1)
  3484. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 - 9 * math.cos(sine / 30))),.1)
  3485. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(90 - 4 * math.cos(sine / 51)),math.rad(1 - 4 * math.cos(sine / 64)),math.rad(-30 - 2 * math.cos(sine / 45))),.1)
  3486. end
  3487. attack = false
  3488. hum.WalkSpeed = storehumanoidWS
  3489. end
  3490. introstart = false
  3491. ----------------------------------- Abilities
  3492. function Intro()
  3493. attack = true
  3494. hum.WalkSpeed = 0
  3495. bosschatfunc("I do have a gun...",MAINRUINCOLOR.Color,4)
  3496. for i = 0, 25, 0.1 do
  3497. swait()
  3498. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 60),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 / 36))),.1)
  3499. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 60),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 / 30))),.1)
  3500. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 60))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(90)),.1)
  3502. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 70),0)*angles(math.rad(0 + 1 * math.cos(sine / 0.0001) ),math.rad(0),math.rad(10 + 1 * math.cos(sine / 0.0001))),.1)
  3503. LW.C0=clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(140),math.rad(0),math.rad(0 + 1 * math.cos(sine / 50))),.1)
  3504. end
  3505. bosschatfunc("...So why don't I try it? Maybe on you...?",MAINRUINCOLOR.Color,4)
  3506. for i = 0, 15, 0.1 do
  3507. swait()
  3508. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 60),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 / 36))),.1)
  3509. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 60),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 / 30))),.1)
  3510. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 60))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
  3511. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(34)),.1)
  3512. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 70),0)*angles(math.rad(0 + 1 * math.cos(sine / 0.0001) ),math.rad(0),math.rad(10 + 1 * math.cos(sine / 0.0001))),.1)
  3513. LW.C0=clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-35 + 1 * math.cos(sine / 50))),.1)
  3514. end
  3515. hum.WalkSpeed = 16
  3516. introstart = true
  3517. attack = false
  3518. end
  3519. function Taunt()
  3520. attack = true
  3521. bosschatfunc("It's either Fight or die trying. Your choice.",MAINRUINCOLOR.Color,4)
  3522. for i = 0, 20, 0.1 do
  3523. swait()
  3524. 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(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  3525. 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(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  3526. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-27 + 2 * math.cos(sine / 56))),.1)
  3527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 5)),math.rad(0),math.rad(25)),.1)
  3528. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 - 9 * math.cos(sine / 30))),.1)
  3529. LW.C0=clerp(LW.C0,cf(-1.35,0.7 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(90 - 4 * math.cos(sine / 51)),math.rad(1 - 4 * math.cos(sine / 64)),math.rad(-30 - 2 * math.cos(sine / 45))),.1)
  3530. end
  3531. attack = false
  3532. end
  3533. -------------------------------------
  3534.  
  3535. Humanoid.Animator.Parent = nil
  3536.  
  3537. -------------------------------------
  3538.  
  3539. local attacktype = 1
  3540. mouse.Button1Down:connect(function()
  3541. if attack == false and attacktype == 1 then
  3542. attacktype = 1
  3543. attackone()
  3544. elseif attack == false and attacktype == 2 then
  3545. attacktype = 1
  3546. --attacktwo()
  3547. elseif attack == false and attacktype == 3 then
  3548. attacktype = 1
  3549. --attackthree()
  3550. elseif attack == false and attacktype == 4 then
  3551. attacktype = 1
  3552. --attackfour()
  3553. end
  3554. end)
  3555. mouse.KeyDown:connect(function(k)
  3556. if k == "l" and mutedtog == false then
  3557. mutedtog = true
  3558. kan.Volume = 0
  3559. elseif k == "l" and mutedtog == true then
  3560. mutedtog = false
  3561. kan.Volume = 1.25
  3562. end
  3563. if k == "z" and attack == false then
  3564. SeveralShot()
  3565. elseif k == "x" and attack == false then
  3566. Hellfire()
  3567. elseif k == "t" and attack == false then
  3568. Taunt()
  3569. end
  3570. if k == "one" and attack == false and hum.WalkSpeed < 60 then
  3571. hum.WalkSpeed = 16 + 44
  3572. elseif k == "one" and attack == false and hum.WalkSpeed == 60 then
  3573. hum.WalkSpeed = 16
  3574. end
  3575. end)
  3576.  
  3577. plr.Chatted:connect(function(message)
  3578. if message:sub(1,3) == "id/" then
  3579. ORGID = message:sub(4)
  3580. kan.TimePosition = 0
  3581. kan:Play()
  3582. elseif message:sub(1,6) == "pitch/" then
  3583. ORPIT = message:sub(7)
  3584. elseif message:sub(1,4) == "vol/" then
  3585. ORVOL = message:sub(5)
  3586. elseif message:sub(1,7) == "skipto/" then
  3587. kan.TimePosition = message:sub(8)
  3588. end
  3589. end)
  3590.  
  3591. Humanoid.Name = "Mlg"
  3592. Humanoid.MaxHealth = math.huge
  3593. Humanoid.Health = math.huge
  3594. Instance.new("ForceField",char).Visible = false
  3595. Humanoid.JumpPower = 150
  3596. if introstart == false and attack == false then
  3597. Intro()
  3598. end
  3599. idleanim=.4
  3600. while true do
  3601. if mutedtog == false then
  3602. kan.Volume = ORVOL
  3603. elseif mutedtog == true then
  3604. kan.Volume = 0
  3605. end
  3606. kan.PlaybackSpeed = ORPIT
  3607. kan.Pitch = ORPIT
  3608. kan.SoundId = "rbxassetid://" ..ORGID
  3609. kan.Looped = true
  3610. kan.Parent = tors
  3611. kan:Resume()
  3612. techc.Rotation = techc.Rotation + 1
  3613. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  3614. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  3615. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  3616. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  3617. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  3618. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  3619. CameraManager()
  3620. swait()
  3621. sine = sine + change
  3622. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3623. local velderp=RootPart.Velocity.y
  3624. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3625. coroutine.resume(coroutine.create(function()
  3626. if hitfloor ~= nil then
  3627. sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
  3628.  
  3629. end
  3630. end))
  3631. if equipped==true or equipped==false then
  3632. if attack==false then
  3633. idle=idle+1
  3634. else
  3635. idle=0
  3636. end
  3637. if idle>=500 then
  3638. if attack==false then
  3639. --Sheath()
  3640. end
  3641. end
  3642. Head.Running.SoundId = "rbxassetid://1569994049"
  3643. Head.Running.Volume = 2
  3644. Head.Running.Pitch = 0.35 + Humanoid.WalkSpeed/124
  3645. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3646. Anim="Jump"
  3647. if attack==false then
  3648. RH.C0=clerp(RH.C0,cf(1,-0.18 - 0.05 * math.cos(sine / 25),-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3649. 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)),.1)
  3650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10 - 2 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
  3651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
  3652. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(20 + 10 * math.cos(sine / 25))),.1)
  3653. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(-20 - 10 * math.cos(sine / 25))),.1)
  3654. end
  3655. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3656. Anim="Fall"
  3657. if attack==false then
  3658. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  3659. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3660. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10 + 5 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  3661. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 + 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
  3662. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 - 10 * math.cos(sine / 25)),math.rad(90)),.1)
  3663. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 + 10 * math.cos(sine / 25)),math.rad(-90)),.1)
  3664. end
  3665. elseif torvel<1 and hitfloor~=nil then
  3666. Anim="Idle"
  3667. if attack==false then
  3668. local snap = math.random(1,100)
  3669. if snap == 1 then
  3670. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  3671. end
  3672. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 60),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  3673. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 60),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  3674. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 60))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1)
  3675. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 45)),math.rad(0),math.rad(34)),.1)
  3676. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 70),0)*angles(math.rad(0 + 1 * math.cos(sine / 0.0001) ),math.rad(0),math.rad(10 + 1 * math.cos(sine / 0.0001))),.1)
  3677. LW.C0=clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(140),math.rad(0),math.rad(0 + 1 * math.cos(sine / 50))),.1)
  3678. end
  3679. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3680. Anim="Walk"
  3681. if attack==false then
  3682. 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)
  3683. 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)
  3684. 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)
  3685. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  3686. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  3687. LW.C0=clerp(LW.C0,cf(-1.5,0.3 + 0.05 * math.cos(sine / 10),0)*angles(math.rad(165),math.rad(0),math.rad(0 + 1 * math.cos(sine / 50))),.1)
  3688. end
  3689. elseif torvel>=22 and hitfloor~=nil then
  3690. Anim="Run"
  3691. if attack==false then
  3692. 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)
  3693. 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)
  3694. 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)
  3695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  3696. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/6)) * angles(math.rad(10+57*math.cos(sine/6))+ RootPart.RotVelocity.Y / -34, math.rad(0+10*math.cos(sine/6)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25)
  3697. LW.C0=clerp(LW.C0,cf(-1.5,0.3 + 0.05 * math.cos(sine / 10),0)*angles(math.rad(165),math.rad(0),math.rad(0 + 1 * math.cos(sine / 50))),.1)
  3698. end
  3699. end
  3700. end
  3701. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement