Advertisement
Mr_jez55

Untitled

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