Advertisement
Fullgamer309

a test

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