Advertisement
saba1517

maniac agent v2

Jul 6th, 2018
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.93 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10. function swait(num)
  11. if num == 0 or num == nil then
  12. game:service("RunService").Stepped:wait(0)
  13. else
  14. for i = 0, num do
  15. game:service("RunService").Stepped:wait(0)
  16. end
  17. end
  18. end
  19. function thread(f)
  20. coroutine.resume(coroutine.create(f))
  21. end
  22. function clerp(a, b, t)
  23. local qa = {
  24. QuaternionFromCFrame(a)
  25. }
  26. local qb = {
  27. QuaternionFromCFrame(b)
  28. }
  29. local ax, ay, az = a.x, a.y, a.z
  30. local bx, by, bz = b.x, b.y, b.z
  31. local _t = 1 - t
  32. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  33. end
  34. function QuaternionFromCFrame(cf)
  35. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  36. local trace = m00 + m11 + m22
  37. if trace > 0 then
  38. local s = math.sqrt(1 + trace)
  39. local recip = 0.5 / s
  40. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  41. else
  42. local i = 0
  43. if m00 < m11 then
  44. i = 1
  45. end
  46. if m22 > (i == 0 and m00 or m11) then
  47. i = 2
  48. end
  49. if i == 0 then
  50. local s = math.sqrt(m00 - m11 - m22 + 1)
  51. local recip = 0.5 / s
  52. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  53. elseif i == 1 then
  54. local s = math.sqrt(m11 - m22 - m00 + 1)
  55. local recip = 0.5 / s
  56. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  57. elseif i == 2 then
  58. local s = math.sqrt(m22 - m00 - m11 + 1)
  59. local recip = 0.5 / s
  60. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  61. end
  62. end
  63. end
  64. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  65. local xs, ys, zs = x + x, y + y, z + z
  66. local wx, wy, wz = w * xs, w * ys, w * zs
  67. local xx = x * xs
  68. local xy = x * ys
  69. local xz = x * zs
  70. local yy = y * ys
  71. local yz = y * zs
  72. local zz = z * zs
  73. 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))
  74. end
  75.  
  76. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  77. local type = type
  78. local rng = Instance.new("Part", char)
  79. rng.Anchored = true
  80. rng.BrickColor = color
  81. rng.CanCollide = false
  82. rng.FormFactor = 3
  83. rng.Name = "Ring"
  84. rng.Material = "Neon"
  85. rng.Size = Vector3.new(1, 1, 1)
  86. rng.Transparency = 0
  87. rng.TopSurface = 0
  88. rng.BottomSurface = 0
  89. rng.CFrame = pos
  90. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  91. local rngm = Instance.new("SpecialMesh", rng)
  92. rngm.MeshType = MType
  93. rngm.Scale = Vector3.new(x1, y1, z1)
  94. local scaler2 = 1
  95. local speeder = FastSpeed
  96. if type == "Add" then
  97. scaler2 = 1 * value
  98. elseif type == "Divide" then
  99. scaler2 = 1 / value
  100. end
  101. coroutine.resume(coroutine.create(function()
  102. for i = 0, 10 / bonuspeed, 0.1 do
  103. swait()
  104. if type == "Add" then
  105. scaler2 = scaler2 - 0.01 * value / bonuspeed
  106. elseif type == "Divide" then
  107. scaler2 = scaler2 - 0.01 / value * bonuspeed
  108. end
  109. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  110. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  111. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  112. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  113. end
  114. rng:Destroy()
  115. end))
  116. end
  117.  
  118. function QuaternionSlerp(a, b, t)
  119. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  120. local startInterp, finishInterp
  121. if cosTheta >= 1.0E-4 then
  122. if 1 - cosTheta > 1.0E-4 then
  123. local theta = math.acos(cosTheta)
  124. local invSinTheta = 1 / Sin(theta)
  125. startInterp = Sin((1 - t) * theta) * invSinTheta
  126. finishInterp = Sin(t * theta) * invSinTheta
  127. else
  128. startInterp = 1 - t
  129. finishInterp = t
  130. end
  131. elseif 1 + cosTheta > 1.0E-4 then
  132. local theta = math.acos(-cosTheta)
  133. local invSinTheta = 1 / Sin(theta)
  134. startInterp = Sin((t - 1) * theta) * invSinTheta
  135. finishInterp = Sin(t * theta) * invSinTheta
  136. else
  137. startInterp = t - 1
  138. finishInterp = t
  139. end
  140. 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
  141. end
  142. function rayCast(Position, Direction, Range, Ignore)
  143. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  144. end
  145. local RbxUtility = LoadLibrary("RbxUtility")
  146. local Create = RbxUtility.Create
  147. ---------------------------
  148. local sine=0
  149. local change = 1
  150. cam = game.Workspace.CurrentCamera
  151. CF = CFrame.new
  152. angles = CFrame.Angles
  153. attack = false
  154. Euler = CFrame.fromEulerAnglesXYZ
  155. Rad = math.rad
  156. IT = Instance.new
  157. BrickC = BrickColor.new
  158. Cos = math.cos
  159. Acos = math.acos
  160. Sin = math.sin
  161. Asin = math.asin
  162. Abs = math.abs
  163. Mrandom = math.random
  164. Floor = math.floor
  165. IT = Instance.new
  166. CF = CFrame.new
  167. VT = Vector3.new
  168. RAD = math.rad
  169. C3 = Color3.new
  170. UD2 = UDim2.new
  171. BRICKC = BrickColor.new
  172. ANGLES = CFrame.Angles
  173. EULER = CFrame.fromEulerAnglesXYZ
  174. COS = math.cos
  175. ACOS = math.acos
  176. SIN = math.sin
  177. ASIN = math.asin
  178. ABS = math.abs
  179. MRANDOM = math.random
  180. FLOOR = math.floor
  181. -----------
  182. local maincolor = BrickColor.new("Really red")
  183. local Player = game.Players.localPlayer
  184. local Character = Player.Character
  185. local plr = game:service'Players'.LocalPlayer
  186. local char = plr.Character
  187. local hum = char.Humanoid
  188. local ra = char["Right Arm"]
  189. local la= char["Left Arm"]
  190. local rl= char["Right Leg"]
  191. local ll = char["Left Leg"]
  192. local hed = char.Head
  193. local root = char.HumanoidRootPart
  194. local rootj = root.RootJoint
  195. local tors = char.Torso
  196. local mouse = plr:GetMouse()
  197. local LeftArm = Character["Left Arm"]
  198. local RightArm = Character["Right Arm"]
  199. local LeftLeg = Character["Left Leg"]
  200. local RightLeg = Character["Right Leg"]
  201. local Head = Character.Head
  202. local Torso = Character.Torso
  203. local cam = game.Workspace.CurrentCamera
  204. local RootPart = Character.HumanoidRootPart
  205. local RootJoint = RootPart.RootJoint
  206. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  207. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  208. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  209. local EdgyMode = false
  210. local Divinity = false
  211. local Fighter = false
  212. local Purity = false
  213. local Destruction = false
  214. local helpme = false
  215. local Planetary = false
  216. local Solar = false
  217. local Lunar = false
  218. local Frost = false
  219. local Ashes = false
  220. local notmenacing = true
  221. ----------------------
  222. Player = game:GetService("Players").LocalPlayer
  223. PlayerGui = Player.PlayerGui
  224. Cam = workspace.CurrentCamera
  225. Backpack = Player.Backpack
  226. Character = Player.Character
  227. Humanoid = Character.Humanoid
  228. Mouse = Player:GetMouse()
  229. RootPart = Character["HumanoidRootPart"]
  230. Torso = Character["Torso"]
  231. Head = Character["Head"]
  232. RightArm = Character["Right Arm"]
  233. LeftArm = Character["Left Arm"]
  234. RightLeg = Character["Right Leg"]
  235. LeftLeg = Character["Left Leg"]
  236. RootJoint = RootPart["RootJoint"]
  237. Neck = Torso["Neck"]
  238. RightShoulder = Torso["Right Shoulder"]
  239. LeftShoulder = Torso["Left Shoulder"]
  240. RightHip = Torso["Right Hip"]
  241. LeftHip = Torso["Left Hip"]
  242. ----------------------
  243. Player = game:GetService("Players").LocalPlayer
  244. PlayerGui = Player.PlayerGui
  245. Cam = workspace.CurrentCamera
  246. Backpack = Player.Backpack
  247. Character = Player.Character
  248. Humanoid = Character.Humanoid
  249. Mouse = Player:GetMouse()
  250. RootPart = Character["HumanoidRootPart"]
  251. Torso = Character["Torso"]
  252. Head = Character["Head"]
  253. RightArm = Character["Right Arm"]
  254. LeftArm = Character["Left Arm"]
  255. RightLeg = Character["Right Leg"]
  256. LeftLeg = Character["Left Leg"]
  257. RootJoint = RootPart["RootJoint"]
  258. Neck = Torso["Neck"]
  259. RightShoulder = Torso["Right Shoulder"]
  260. LeftShoulder = Torso["Left Shoulder"]
  261. RightHip = Torso["Right Hip"]
  262. LeftHip = Torso["Left Hip"]
  263. local sick = Instance.new("Sound",Character)
  264. sick.SoundId = "rbxassetid://209322206"
  265. sick.Looped = true
  266. sick.Pitch = 0.8
  267. sick.Volume = 1
  268. sick:Play()
  269. Humanoid.DisplayDistanceType = "None"
  270. game.Lighting.ClockTime = 22
  271. plr = game:GetService("Players").LocalPlayer
  272. char = plr.Character
  273. hum = char.Humanoid
  274. local cam = game.Workspace.CurrentCamera
  275. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  276. Camera = cam
  277. local CamInterrupt = false
  278. local TwoD = false
  279. local TargetInfo = {nil, nil}
  280. cam.CameraType = "Custom"
  281. t = char.Torso
  282. h = char.Head
  283. ra = char["Right Arm"]
  284. la = char["Left Arm"]
  285. rl = char["Right Leg"]
  286. ll = char["Left Leg"]
  287. tors = char.Torso
  288. lleg = char["Left Leg"]
  289. root = char.HumanoidRootPart
  290. hed = char.Head
  291. rleg = char["Right Leg"]
  292. rarm = char["Right Arm"]
  293. larm = char["Left Arm"]
  294. radian = math.rad
  295. random = math.random
  296. Vec3 = Vector3.new
  297. Inst = Instance.new
  298. cFrame = CFrame.new
  299. Euler = CFrame.fromEulerAnglesXYZ
  300. vt = Vector3.new
  301. bc = BrickColor.new
  302. br = BrickColor.random
  303. it = Instance.new
  304. cf = CFrame.new
  305. local eff = true
  306. local shielding = false
  307.  
  308. IT = Instance.new
  309. CF = CFrame.new
  310. VT = Vector3.new
  311. RAD = math.rad
  312. C3 = Color3.new
  313. UD2 = UDim2.new
  314. BRICKC = BrickColor.new
  315. ANGLES = CFrame.Angles
  316. EULER = CFrame.fromEulerAnglesXYZ
  317. COS = math.cos
  318. ACOS = math.acos
  319. SIN = math.sin
  320. ASIN = math.asin
  321. ABS = math.abs
  322. MRANDOM = math.random
  323. FLOOR = math.floor
  324.  
  325. local Sky = IT("Sky")
  326. Sky.Parent = game.Lighting
  327. Sky.MoonAngularSize = 45
  328. Sky.MoonTextureId = "http://www.roblox.com/asset/?id=818983932"
  329.  
  330. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  331. local NEWMESH = IT(MESH)
  332. if MESH == "SpecialMesh" then
  333. NEWMESH.MeshType = MESHTYPE
  334. if MESHID ~= "nil" and MESHID ~= "" then
  335. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  336. end
  337. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  338. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  339. end
  340. end
  341. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  342. NEWMESH.Scale = SCALE
  343. NEWMESH.Parent = PARENT
  344. return NEWMESH
  345. end
  346.  
  347. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  348. local NEWPART = IT("Part")
  349. NEWPART.formFactor = FORMFACTOR
  350. NEWPART.Reflectance = REFLECTANCE
  351. NEWPART.Transparency = TRANSPARENCY
  352. NEWPART.CanCollide = false
  353. NEWPART.Locked = true
  354. NEWPART.Anchored = true
  355. if ANCHOR == false then
  356. NEWPART.Anchored = false
  357. end
  358. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  359. NEWPART.Name = NAME
  360. NEWPART.Size = SIZE
  361. NEWPART.Position = Torso.Position
  362. NEWPART.Material = MATERIAL
  363. NEWPART:BreakJoints()
  364. NEWPART.Parent = PARENT
  365. return NEWPART
  366. end
  367.  
  368. --//=================================\\
  369. --|| CUSTOMIZATION
  370. --\\=================================//
  371.  
  372. Player_Size = 1 --Size of the player.
  373. Animation_Speed = 3
  374. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  375.  
  376. local Speed = 16
  377. local Effects2 = {}
  378.  
  379. --//=================================\\
  380. --|| END OF CUSTOMIZATION
  381. --\\=================================//
  382. ------------------------------------------
  383. local Hair = Instance.new("Part", char)
  384. Hair.Name = "Hair"
  385. Hair.CanCollide = false
  386. Hair.BrickColor = BrickColor.new("Institutional white")
  387. Hair.Transparency = 0
  388. Hair.Material = "Plastic"
  389. Hair.Size = Vector3.new(1, 1, 2)
  390. Hair.TopSurface = Enum.SurfaceType.Smooth
  391. Hair.BottomSurface = Enum.SurfaceType.Smooth
  392.  
  393. local Weld = Instance.new("Weld", Hair)
  394. Weld.Part0 = hed
  395. Weld.Part1 = Hair
  396. Weld.C1 = CFrame.new(0, -.6, 0)
  397. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  398.  
  399. local M2 = Instance.new("SpecialMesh")
  400. M2.Parent = Hair
  401. M2.MeshId = "http://www.roblox.com/asset/?id=13640868"
  402. M2.TextureId = "http://www.roblox.com/asset/?id=18987684"
  403. M2.Scale = Vector3.new(1, 1, 1)
  404. -------------------------------------------------------
  405. Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Brick")
  406. -------------------------------------------------------
  407. for i,v in pairs(char:children()) do
  408. if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
  409. v:Remove()
  410. end
  411. end
  412. shirt = Instance.new("Shirt", char)
  413. shirt.Name = "Shirt"
  414. pants = Instance.new("Pants", char)
  415. pants.Name = "Pants"
  416. char.Shirt.ShirtTemplate = "rbxassetid://676428254"
  417. char.Pants.PantsTemplate = "rbxassetid://676428351"
  418. -------------------------------------------------------
  419. local BC = char["Body Colors"]
  420. BC.HeadColor = BrickColor.new("Really black")
  421. BC.RightArmColor = BrickColor.new("Really black")
  422. BC.LeftArmColor = BrickColor.new("Really black")
  423. BC.RightLegColor = BrickColor.new("Really black")
  424. BC.LeftLegColor = BrickColor.new("Really black")
  425. BC.TorsoColor = BrickColor.new("Really black")
  426. -------------------------------------------------------
  427.  
  428. local function weldBetween(a, b)
  429. local weldd = Instance.new("ManualWeld")
  430. weldd.Part0 = a
  431. weldd.Part1 = b
  432. weldd.C0 = CFrame.new()
  433. weldd.C1 = b.CFrame:inverse() * a.CFrame
  434. weldd.Parent = a
  435. return weldd
  436. end
  437.  
  438. --//=================================\\
  439. --|| USEFUL VALUES
  440. --\\=================================//
  441.  
  442. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  443. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  444. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  445. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  446. local CHANGEDEFENSE = 0
  447. local CHANGEDAMAGE = 0
  448. local CHANGEMOVEMENT = 0
  449. local ANIM = "Idle"
  450. local ATTACK = false
  451. local EQUIPPED = false
  452. local HOLD = false
  453. local COMBO = 1
  454. local Rooted = false
  455. local SINE = 0
  456. local KEYHOLD = false
  457. local CHANGE = 2 / Animation_Speed
  458. local WALKINGANIM = false
  459. local WALK = 0
  460. local VALUE1 = false
  461. local VALUE2 = false
  462. local ROBLOXIDLEANIMATION = IT("Animation")
  463. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  464. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  465. --ROBLOXIDLEANIMATION.Parent = Humanoid
  466. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  467. WEAPONGUI.Name = "Weapon GUI"
  468. local Weapon = IT("Model")
  469. Weapon.Name = "Adds"
  470. local Effects = IT("Folder", Weapon)
  471. Effects.Name = "Effects"
  472. local ANIMATOR = Humanoid.Animator
  473. local ANIMATE = Character.Animate
  474. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  475. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  476. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  477. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  478. local UNANCHOR = true
  479. local KILLINSTINCT = 0
  480.  
  481. local SKILLTEXTCOLOR = C3(1,0,0)
  482.  
  483. --//=================================\\
  484. --\\=================================//
  485.  
  486.  
  487. --//=================================\\
  488. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  489. --\\=================================//
  490.  
  491. ArtificialHB = Instance.new("BindableEvent", script)
  492. ArtificialHB.Name = "ArtificialHB"
  493.  
  494. script:WaitForChild("ArtificialHB")
  495.  
  496. frame = Frame_Speed
  497. tf = 0
  498. allowframeloss = false
  499. tossremainder = false
  500. lastframe = tick()
  501. script.ArtificialHB:Fire()
  502.  
  503. game:GetService("RunService").Heartbeat:connect(function(s, p)
  504. tf = tf + s
  505. if tf >= frame then
  506. if allowframeloss then
  507. script.ArtificialHB:Fire()
  508. lastframe = tick()
  509. else
  510. for i = 1, math.floor(tf / frame) do
  511. script.ArtificialHB:Fire()
  512. end
  513. lastframe = tick()
  514. end
  515. if tossremainder then
  516. tf = 0
  517. else
  518. tf = tf - frame * math.floor(tf / frame)
  519. end
  520. end
  521. end)
  522.  
  523. --//=================================\\
  524. --\\=================================//
  525.  
  526.  
  527.  
  528.  
  529.  
  530. --//=================================\\
  531. --|| SOME FUNCTIONS
  532. --\\=================================//
  533.  
  534. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  535. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  536. end
  537.  
  538. function PositiveAngle(NUMBER)
  539. if NUMBER >= 0 then
  540. NUMBER = 0
  541. end
  542. return NUMBER
  543. end
  544.  
  545. function NegativeAngle(NUMBER)
  546. if NUMBER <= 0 then
  547. NUMBER = 0
  548. end
  549. return NUMBER
  550. end
  551.  
  552. function Swait(NUMBER)
  553. if NUMBER == 0 or NUMBER == nil then
  554. ArtificialHB.Event:wait()
  555. else
  556. for i = 1, NUMBER do
  557. ArtificialHB.Event:wait()
  558. end
  559. end
  560. end
  561.  
  562. function QuaternionFromCFrame(cf)
  563. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  564. local trace = m00 + m11 + m22
  565. if trace > 0 then
  566. local s = math.sqrt(1 + trace)
  567. local recip = 0.5 / s
  568. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  569. else
  570. local i = 0
  571. if m11 > m00 then
  572. i = 1
  573. end
  574. if m22 > (i == 0 and m00 or m11) then
  575. i = 2
  576. end
  577. if i == 0 then
  578. local s = math.sqrt(m00 - m11 - m22 + 1)
  579. local recip = 0.5 / s
  580. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  581. elseif i == 1 then
  582. local s = math.sqrt(m11 - m22 - m00 + 1)
  583. local recip = 0.5 / s
  584. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  585. elseif i == 2 then
  586. local s = math.sqrt(m22 - m00 - m11 + 1)
  587. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  588. end
  589. end
  590. end
  591.  
  592. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  593. local xs, ys, zs = x + x, y + y, z + z
  594. local wx, wy, wz = w * xs, w * ys, w * zs
  595. local xx = x * xs
  596. local xy = x * ys
  597. local xz = x * zs
  598. local yy = y * ys
  599. local yz = y * zs
  600. local zz = z * zs
  601. 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))
  602. end
  603.  
  604. function QuaternionSlerp(a, b, t)
  605. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  606. local startInterp, finishInterp;
  607. if cosTheta >= 0.0001 then
  608. if (1 - cosTheta) > 0.0001 then
  609. local theta = ACOS(cosTheta)
  610. local invSinTheta = 1 / SIN(theta)
  611. startInterp = SIN((1 - t) * theta) * invSinTheta
  612. finishInterp = SIN(t * theta) * invSinTheta
  613. else
  614. startInterp = 1 - t
  615. finishInterp = t
  616. end
  617. else
  618. if (1 + cosTheta) > 0.0001 then
  619. local theta = ACOS(-cosTheta)
  620. local invSinTheta = 1 / SIN(theta)
  621. startInterp = SIN((t - 1) * theta) * invSinTheta
  622. finishInterp = SIN(t * theta) * invSinTheta
  623. else
  624. startInterp = t - 1
  625. finishInterp = t
  626. end
  627. end
  628. 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
  629. end
  630.  
  631. function Clerp(a, b, t)
  632. local qa = {QuaternionFromCFrame(a)}
  633. local qb = {QuaternionFromCFrame(b)}
  634. local ax, ay, az = a.x, a.y, a.z
  635. local bx, by, bz = b.x, b.y, b.z
  636. local _t = 1 - t
  637. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  638. end
  639.  
  640. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  641. local frame = IT("Frame")
  642. frame.BackgroundTransparency = TRANSPARENCY
  643. frame.BorderSizePixel = BORDERSIZEPIXEL
  644. frame.Position = POSITION
  645. frame.Size = SIZE
  646. frame.BackgroundColor3 = COLOR
  647. frame.BorderColor3 = BORDERCOLOR
  648. frame.Name = NAME
  649. frame.Parent = PARENT
  650. return frame
  651. end
  652.  
  653. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  654. local label = IT("TextLabel")
  655. label.BackgroundTransparency = 1
  656. label.Size = UD2(1, 0, 1, 0)
  657. label.Position = UD2(0, 0, 0, 0)
  658. label.TextColor3 = TEXTCOLOR
  659. label.TextStrokeTransparency = STROKETRANSPARENCY
  660. label.TextTransparency = TRANSPARENCY
  661. label.FontSize = TEXTFONTSIZE
  662. label.Font = TEXTFONT
  663. label.BorderSizePixel = BORDERSIZEPIXEL
  664. label.TextScaled = false
  665. label.Text = TEXT
  666. label.Name = NAME
  667. label.Parent = PARENT
  668. return label
  669. end
  670.  
  671. function NoOutlines(PART)
  672. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  673. end
  674.  
  675.  
  676. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  677. local NEWWELD = IT(TYPE)
  678. NEWWELD.Part0 = PART0
  679. NEWWELD.Part1 = PART1
  680. NEWWELD.C0 = C0
  681. NEWWELD.C1 = C1
  682. NEWWELD.Parent = PARENT
  683. return NEWWELD
  684. end
  685.  
  686. function CreateSound(ID, PARENT, VOLUME, PITCH)
  687. local NEWSOUND = nil
  688. coroutine.resume(coroutine.create(function()
  689. NEWSOUND = IT("Sound", PARENT)
  690. NEWSOUND.Volume = VOLUME
  691. NEWSOUND.Pitch = PITCH
  692. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  693. Swait()
  694. NEWSOUND:play()
  695. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  696. end))
  697. return NEWSOUND
  698. end
  699.  
  700. function CFrameFromTopBack(at, top, back)
  701. local right = top:Cross(back)
  702. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  703. end
  704.  
  705. function MakeForm(PART,TYPE)
  706. if TYPE == "Cyl" then
  707. local MSH = IT("CylinderMesh",PART)
  708. elseif TYPE == "Ball" then
  709. local MSH = IT("SpecialMesh",PART)
  710. MSH.MeshType = "Sphere"
  711. elseif TYPE == "Wedge" then
  712. local MSH = IT("SpecialMesh",PART)
  713. MSH.MeshType = "Wedge"
  714. end
  715. end
  716.  
  717. Debris = game:GetService("Debris")
  718. --//=================================\\
  719. --|| WEAPON CREATION
  720. --\\=================================//
  721.  
  722. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.2, 3.39, 1.61),false)
  723. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "2766469", "184182370", VT(1,1,1), VT(0, 0, 0))
  724. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  725.  
  726. local DECAL = IT("Decal",HandlePart)
  727. DECAL.Texture = "http://www.roblox.com/asset/?id=116830967"
  728.  
  729. for _, c in pairs(Weapon:GetChildren()) do
  730. if c.ClassName == "Part" then
  731. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  732. end
  733. end
  734.  
  735. local A = IT("Attachment",HandlePart)
  736. A.Position = VT(0, -1.5, 0)
  737. local B = IT("Attachment",HandlePart)
  738. B.Position = VT(0, 2.2, 0.2)
  739. local Trail = IT("Trail",HandlePart)
  740. Trail.Attachment0 = A
  741. Trail.Attachment1 = B
  742. Trail.Lifetime = 0.1
  743. Trail.Transparency = NumberSequence.new(0.8, 1)
  744. Trail.Enabled = false
  745.  
  746. Weapon.Parent = Character
  747.  
  748. Humanoid.Died:connect(function()
  749. ATTACK = true
  750. workspace:ClearAllChildren()
  751. end)
  752.  
  753. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  754. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  755. --local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  756. --local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  757. --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  758.  
  759. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Swing", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  760. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Enrage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  761. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3")
  762. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 4")
  763. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 5")
  764.  
  765. --//=================================\\
  766. --|| DAMAGING
  767. --\\=================================//
  768.  
  769. local asd = Instance.new("ParticleEmitter")
  770. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0))
  771. asd.LightEmission = .1
  772. asd.Size = NumberSequence.new(0.2)
  773. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  774. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  775. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  776. asd.Transparency = bbb
  777. asd.Size = aaa
  778. asd.ZOffset = .9
  779. asd.Acceleration = Vector3.new(0, -5, 0)
  780. asd.LockedToPart = false
  781. asd.EmissionDirection = "Back"
  782. asd.Lifetime = NumberRange.new(1, 2)
  783. asd.Rotation = NumberRange.new(-100, 100)
  784. asd.RotSpeed = NumberRange.new(-100, 100)
  785. asd.Speed = NumberRange.new(2)
  786. asd.Enabled = false
  787. asd.VelocitySpread = 10000
  788.  
  789. function getbloody(victim,amount)
  790. local prtcl = asd:Clone()
  791. prtcl.Parent = victim
  792. prtcl:Emit(amount)
  793. end
  794.  
  795. local TORSOVELOCITY = 0
  796.  
  797. function Ragdoll(Character2,CharTorso)
  798. local svch = Character2
  799. local hum = Character2:findFirstChild("Humanoid")
  800. local q = Character2:GetChildren()
  801. local CLONE = IT("Model",Effects)
  802. local DummyHead = nil
  803. for i = 1,#q do
  804. if q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then
  805. q[i].Parent = CLONE
  806. if q[i].Name == "Head" then
  807. DummyHead = CLONE.Head:Clone()
  808. q[i]:ClearAllChildren()
  809. q[i].Transparency = 1
  810. end
  811. else
  812. if q[i].ClassName ~= "Humanoid" then
  813. q[i]:remove()
  814. end
  815. end
  816. end
  817. local chrclone = CLONE
  818.  
  819. for _, c in pairs(Character2:GetChildren()) do
  820. if c.ClassName == "Accessory" then
  821. c:remove()
  822. end
  823. end
  824.  
  825. local ch = chrclone:GetChildren()
  826. local i
  827. for i = 1,#ch do
  828. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  829. ch[i]:remove()
  830. end
  831. end
  832. local function Scan(ch)
  833. local e
  834. for e = 1,#ch do
  835. Scan(ch[e]:GetChildren())
  836. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  837. ch[e]:remove()
  838. end
  839. end
  840. end
  841. Scan(chrclone:GetChildren())
  842.  
  843. local ch = Character2:GetChildren()
  844. local i
  845. for i = 1,#ch do
  846. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  847. ch[i]:remove()
  848. end
  849. end
  850.  
  851. local ch = Character2:GetChildren()
  852. local i
  853. for i = 1,#ch do
  854. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  855. ch[i]:remove()
  856. end
  857. end
  858. Character2 = chrclone
  859. local Torso2 = Character2.Torso
  860. local movevector = Vector3.new()
  861.  
  862. if Torso2 then
  863. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  864. local Head = Character2:FindFirstChild("Head")
  865. if Head then
  866. local Neck = Instance.new("Weld")
  867. Neck.Name = "Neck"
  868. Neck.Part0 = Torso2
  869. Neck.Part1 = Head
  870. Neck.C0 = CFrame.new(0, 1.5, 0)
  871. Neck.C1 = CFrame.new()
  872. Neck.Parent = Torso2
  873. Head:ClearAllChildren()
  874. Head.Transparency = 1
  875.  
  876. end
  877. local Limb = Character2:FindFirstChild("Right Arm")
  878. if Limb then
  879.  
  880. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  881. local Joint = Instance.new("Glue")
  882. Joint.Name = "RightShoulder"
  883. Joint.Part0 = Torso2
  884. Joint.Part1 = Limb
  885. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  886. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  887. Joint.Parent = Torso2
  888.  
  889. local B = Instance.new("Part")
  890. B.TopSurface = 0
  891. B.BottomSurface = 0
  892. B.formFactor = "Symmetric"
  893. B.Size = Vector3.new(1, 1, 1)
  894. B.Transparency = 1
  895. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  896. B.Parent = Character2
  897. local W = Instance.new("Weld")
  898. W.Part0 = Limb
  899. W.Part1 = B
  900. W.C0 = CFrame.new(0, -0.5, 0)
  901. W.Parent = Limb
  902.  
  903. end
  904. local Limb = Character2:FindFirstChild("Left Arm")
  905. if Limb then
  906.  
  907. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  908. local Joint = Instance.new("Glue")
  909. Joint.Name = "LeftShoulder"
  910. Joint.Part0 = Torso2
  911. Joint.Part1 = Limb
  912. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  913. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  914. Joint.Parent = Torso2
  915.  
  916. local B = Instance.new("Part")
  917. B.TopSurface = 0
  918. B.BottomSurface = 0
  919. B.formFactor = "Symmetric"
  920. B.Size = Vector3.new(1, 1, 1)
  921. B.Transparency = 1
  922. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  923. B.Parent = Character2
  924. local W = Instance.new("Weld")
  925. W.Part0 = Limb
  926. W.Part1 = B
  927. W.C0 = CFrame.new(0, -0.5, 0)
  928. W.Parent = Limb
  929.  
  930. end
  931. local Limb = Character2:FindFirstChild("Right Leg")
  932. if Limb then
  933.  
  934. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  935. local Joint = Instance.new("Glue")
  936. Joint.Name = "RightHip"
  937. Joint.Part0 = Torso2
  938. Joint.Part1 = Limb
  939. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  940. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  941. Joint.Parent = Torso2
  942.  
  943. local B = Instance.new("Part")
  944. B.TopSurface = 0
  945. B.BottomSurface = 0
  946. B.formFactor = "Symmetric"
  947. B.Size = Vector3.new(1, 1, 1)
  948. B.Transparency = 1
  949. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  950. B.Parent = Character2
  951. local W = Instance.new("Weld")
  952. W.Part0 = Limb
  953. W.Part1 = B
  954. W.C0 = CFrame.new(0, -0.5, 0)
  955. W.Parent = Limb
  956.  
  957. end
  958. local Limb = Character2:FindFirstChild("Left Leg")
  959. if Limb then
  960.  
  961. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  962. local Joint = Instance.new("Glue")
  963. Joint.Name = "LeftHip"
  964. Joint.Part0 = Torso2
  965. Joint.Part1 = Limb
  966. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  967. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  968. Joint.Parent = Torso2
  969.  
  970. local B = Instance.new("Part")
  971. B.TopSurface = 0
  972. B.BottomSurface = 0
  973. B.formFactor = "Symmetric"
  974. B.Size = Vector3.new(1, 1, 1)
  975. B.Transparency = 1
  976. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  977. B.Parent = Character2
  978. local W = Instance.new("Weld")
  979. W.Part0 = Limb
  980. W.Part1 = B
  981. W.C0 = CFrame.new(0, -0.5, 0)
  982. W.Parent = Limb
  983.  
  984. end
  985. --[
  986. local Bar = Instance.new("Part")
  987. Bar.TopSurface = 0
  988. Bar.BottomSurface = 0
  989. Bar.formFactor = "Symmetric"
  990. Bar.Size = Vector3.new(1, 1, 1)
  991. Bar.Transparency = 1
  992. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  993. Bar.Parent = Character2
  994. local Weld = Instance.new("Weld")
  995. Weld.Part0 = Torso2
  996. Weld.Part1 = Bar
  997. Weld.C0 = CFrame.new(0, 0.5, 0)
  998. Weld.Parent = Torso2
  999. --]]
  1000. end
  1001. Character2.Parent = Weapon
  1002. if movevector ~= Vector3.new() then
  1003. for i = 1,10 do
  1004. Torso2.Velocity = movevector * 30
  1005. end
  1006. end
  1007. DummyHead.Name = "FakeHead"
  1008. DummyHead.Parent = CLONE
  1009. local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false)
  1010. BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0)
  1011. MakeForm(BLOOD,"Cyl")
  1012. weldBetween(DummyHead,BLOOD)
  1013. local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false)
  1014. BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0)
  1015. MakeForm(BLOOD,"Cyl")
  1016. weldBetween(Torso2,BLOOD)
  1017. Character2.Name = "Corpse"
  1018. local hum2 = svch:findFirstChild("Humanoid")
  1019.  
  1020. return Character2,Torso2,DummyHead
  1021. end
  1022.  
  1023. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  1024. local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  1025. if HITFLOOR ~= nil then
  1026. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  1027. if HITFLOOR.Name == "BloodPuddle" then
  1028. local DIST = (Position - HITFLOOR.Position).Magnitude
  1029. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  1030. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  1031. end
  1032. else
  1033. if HITFLOOR.Anchored == true then
  1034. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1))
  1035. BLOOD.CFrame = CF(HITPOS)
  1036. MakeForm(BLOOD,"Cyl")
  1037. coroutine.resume(coroutine.create(function()
  1038. Swait(75)
  1039. while true do
  1040. Swait()
  1041. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  1042. if BLOOD.Size.Z < 0.051 then
  1043. BLOOD:remove()
  1044. break
  1045. end
  1046. end
  1047. end))
  1048. end
  1049. end
  1050. end
  1051. end
  1052. end
  1053.  
  1054. function SprayBlood(POSITION,DIRECTION,BloodSize)
  1055. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  1056. BLOOD.CFrame = CF(POSITION)
  1057. MakeForm(BLOOD,"Ball")
  1058. local bv = Instance.new("BodyVelocity",BLOOD)
  1059. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1060. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15
  1061. bv.Name = "MOVE"
  1062. Debris:AddItem(bv,0.05)
  1063. coroutine.resume(coroutine.create(function()
  1064. local HASTOUCHEDGROUND = false
  1065. local HIT = BLOOD.Touched:Connect(function(hit)
  1066. if hit.Anchored == true then
  1067. HASTOUCHEDGROUND = true
  1068. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  1069. end
  1070. end)
  1071. for i = 1, 50 do
  1072. Swait()
  1073. if HASTOUCHEDGROUND == true then
  1074. break
  1075. end
  1076. BLOOD.Size = BLOOD.Size * 0.9
  1077. end
  1078. BLOOD:remove()
  1079. end))
  1080. end
  1081.  
  1082. function Kill(Target)
  1083. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  1084. Target:BreakJoints()
  1085. local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso")
  1086. local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso)
  1087. getbloody(DummyHead,45)
  1088. if TORS2 ~= nil then
  1089. CreateSound("163154423", TORS2, 10, (math.random(8,12)/10))
  1090. CreateSound("163154423", DummyHead, 5, (math.random(8,18)/10))
  1091. local HUM = IT("Humanoid")
  1092. HUM.MaxHealth = 0
  1093. HUM.Health = 0
  1094. HUM.Name = "CorpseHumanoid"
  1095. HUM.PlatformStand = true
  1096. HUM.Parent = CLONE
  1097. KILLINSTINCT = KILLINSTINCT + 20
  1098. TORS2.CFrame = CFRAME
  1099. coroutine.resume(coroutine.create(function()
  1100. for i = 1, 450 do
  1101. wait()
  1102. SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5)
  1103. SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10)
  1104. --PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3)
  1105. --PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6)
  1106. end
  1107. CLONE:Remove()
  1108. end))
  1109. end
  1110. end
  1111. end
  1112.  
  1113. --//=================================\\
  1114. --|| ATTACK FUNCTIONS AND STUFF
  1115. --\\=================================//
  1116.  
  1117. Circle = nil
  1118. CircleParts = {}
  1119. Equipped = false
  1120.  
  1121. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1122. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1123. end
  1124. Equipped = true
  1125. Circle = Instance.new("Model")
  1126. Circle.Name = "Circle"
  1127. Angle = 0
  1128. for i = 1, 1 do
  1129. local CirclePart = Instance.new("Part")
  1130. CirclePart.Name = "CirclePart"
  1131. CirclePart.Transparency = 1
  1132. CirclePart.BrickColor = BrickColor.new("Really black")
  1133. CirclePart.Material = Enum.Material.Plastic
  1134. CirclePart.Shape = Enum.PartType.Block
  1135. CirclePart.FormFactor = Enum.FormFactor.Custom
  1136. CirclePart.TopSurface = Enum.SurfaceType.Smooth
  1137. CirclePart.BottomSurface = Enum.SurfaceType.Smooth
  1138. CirclePart.Anchored = true
  1139. CirclePart.CanCollide = false
  1140. CirclePart.Locked = true
  1141. CirclePart.Size = Vector3.new(10, 0.2, 10)
  1142. local Aura = Instance.new('ParticleEmitter')
  1143. Aura.Name = "Aura"
  1144. Aura.Texture = "rbxassetid://771221224"
  1145. Aura.Parent = CirclePart
  1146. Aura.LightEmission = 0
  1147. Aura.Transparency = NumberSequence.new(0.2,0.4,1)
  1148. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200))
  1149. Aura.Size = NumberSequence.new(0.9,0.5,0.3)
  1150. Aura.LockedToPart = false
  1151. Aura.Lifetime = NumberRange.new(1)
  1152. Aura.Rate = 50
  1153. Aura.Speed = NumberRange.new(2.5)
  1154. Aura.SpreadAngle = Vector2.new(80,80)
  1155. local BlockMesh = Instance.new("BlockMesh")
  1156. BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1)
  1157. BlockMesh.Parent = CirclePart
  1158. CirclePart.Parent = Circle
  1159. local Star = Instance.new("Decal", CirclePart)
  1160. Star.Texture = "http://www.roblox.com/asset/?id=818983932"
  1161. Star.Face = "Top"
  1162. local Light = Instance.new("PointLight", CirclePart)
  1163. Light.Color = Color3.new(.20,0,0)
  1164. Light.Brightness = 100
  1165. Light.Range = 15
  1166. table.insert(CircleParts, CirclePart)
  1167. end
  1168. Spawn(function()
  1169. while Equipped and Humanoid.Parent and Torso.Parent do
  1170. if Angle == 360 then
  1171. Angle = 0
  1172. end
  1173. Angle = Angle + 0.05
  1174. local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
  1175. if Hit then
  1176. if not Circle.Parent then
  1177. Circle.Parent = Character
  1178. end
  1179. for i, v in pairs(CircleParts) do
  1180. v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  1181. end
  1182. else
  1183. Circle.Parent = nil
  1184. end
  1185. wait()
  1186. end
  1187. end)
  1188.  
  1189. function Swing()
  1190. ATTACK = true
  1191. Rooted = false
  1192. for i=0, 1, 0.1 / Animation_Speed do
  1193. Swait()
  1194. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.7 / Animation_Speed)
  1195. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.7 / Animation_Speed)
  1196. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1197. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1198. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1199. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1200. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed)
  1201. end
  1202. Trail.Enabled = true
  1203. HandlePart.CanCollide = true
  1204. CreateSound("248088589", HandlePart, 1, (math.random(8,12)/10))
  1205. local HIT = HandlePart.Touched:Connect(function(hit)
  1206. Kill(hit.Parent)
  1207. end)
  1208. for i=0, 0.8, 0.1 / Animation_Speed do
  1209. Swait()
  1210. if Speed == 25 and TORSOVELOCITY > 0.3 then
  1211. RootPart.CFrame = RootPart.CFrame * CF(0,0,-1)
  1212. end
  1213. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.7 / Animation_Speed)
  1214. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.7 / Animation_Speed)
  1215. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.7) * ANGLES(RAD(15), RAD(0), RAD(90)) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1216. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1217. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1218. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1219. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(25), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1220. end
  1221. Trail.Enabled = false
  1222. HandlePart.CanCollide = false
  1223. HIT:disconnect()
  1224. ATTACK = false
  1225. Rooted = false
  1226. end
  1227.  
  1228. function Laugh()
  1229. ATTACK = true
  1230. Rooted = true
  1231. CreateSound("907329532", Torso, 6, 1)
  1232. for i=0, 3.5, 0.1 / Animation_Speed do
  1233. Swait()
  1234. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1235. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1236. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.35 * COS(SINE / 2), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1237. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1238. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1239. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1240. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1241. end
  1242. ATTACK = false
  1243. Rooted = false
  1244. end
  1245.  
  1246. --//=================================\\
  1247. --|| ASSIGN THINGS TO KEYS
  1248. --\\=================================//
  1249.  
  1250. function MouseDown(Mouse)
  1251. if ATTACK == false then
  1252. Swing()
  1253. end
  1254. end
  1255.  
  1256. function MouseUp(Mouse)
  1257. HOLD = false
  1258. end
  1259.  
  1260. function KeyDown(Key)
  1261. KEYHOLD = true
  1262. if Key == "b" and ATTACK == false then
  1263. if Speed == 10 then
  1264. Speed = 25
  1265. elseif Speed == 25 then
  1266. Speed = 10
  1267. end
  1268. end
  1269.  
  1270. if Key == "t" and ATTACK == false then
  1271. Laugh()
  1272. end
  1273. end
  1274.  
  1275. function KeyUp(Key)
  1276. KEYHOLD = false
  1277. end
  1278.  
  1279. Mouse.Button1Down:connect(function(NEWKEY)
  1280. MouseDown(NEWKEY)
  1281. end)
  1282. Mouse.Button1Up:connect(function(NEWKEY)
  1283. MouseUp(NEWKEY)
  1284. end)
  1285. Mouse.KeyDown:connect(function(NEWKEY)
  1286. KeyDown(NEWKEY)
  1287. end)
  1288. Mouse.KeyUp:connect(function(NEWKEY)
  1289. KeyUp(NEWKEY)
  1290. end)
  1291.  
  1292. --//=================================\\
  1293. --\\=================================//
  1294.  
  1295.  
  1296. function unanchor()
  1297. if UNANCHOR == true then
  1298. g = Character:GetChildren()
  1299. for i = 1, #g do
  1300. if g[i].ClassName == "Part" then
  1301. g[i].Anchored = false
  1302. end
  1303. end
  1304. end
  1305. end
  1306.  
  1307.  
  1308. --//=================================\\
  1309. --|| WRAP THE WHOLE SCRIPT UP
  1310. --\\=================================//
  1311.  
  1312. Humanoid.Changed:connect(function(Jump)
  1313. if Jump == "Jump" and (Disable_Jump == true) then
  1314. Humanoid.Jump = false
  1315. end
  1316. end)
  1317.  
  1318. Speed = 10
  1319.  
  1320. local naeeym2 = Instance.new("BillboardGui",Character)
  1321. naeeym2.AlwaysOnTop = true
  1322. naeeym2.Size = UDim2.new(5,35,2,35)
  1323. naeeym2.StudsOffset = Vector3.new(0,1,0)
  1324. naeeym2.Adornee = Character.Head
  1325. naeeym2.Name = "Name"
  1326. naeeym2.PlayerToHideFrom = Player
  1327. local tecks2 = Instance.new("TextLabel",naeeym2)
  1328. tecks2.BackgroundTransparency = 1
  1329. tecks2.TextScaled = true
  1330. tecks2.BorderSizePixel = 0
  1331. tecks2.Text = "MANIAC AGENT"
  1332. tecks2.Font = "Antique"
  1333. tecks2.TextSize = 30
  1334. tecks2.TextStrokeTransparency = 0
  1335. tecks2.TextColor3 = Color3.new(0.8,0,0)
  1336. tecks2.TextStrokeColor3 = Color3.new(0.8,0,0)
  1337. tecks2.Size = UDim2.new(1,0,0.5,0)
  1338. tecks2.Parent = naeeym2
  1339.  
  1340.  
  1341. while true do
  1342. ANIMATE.Parent = nil
  1343. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1344. IDLEANIMATION:Play()
  1345. SINE = SINE + CHANGE
  1346. TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1347. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1348. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1349. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1350. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1351. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1352. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1353. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1354. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1355. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1356. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1357. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1358. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1359. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1360. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1361. end
  1362. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1363. ANIM = "Jump"
  1364. if ATTACK == false then
  1365. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1366. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1367. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1368. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1371. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-165), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1372. end
  1373. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1374. ANIM = "Fall"
  1375. if ATTACK == false then
  1376. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1377. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1378. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1379. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1380. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1381. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1382. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-85), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1383. end
  1384. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1385. ANIM = "Idle"
  1386. if ATTACK == false then
  1387. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1388. if VALUE1 == false then
  1389. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1390. end
  1391. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1392. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1393. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1394. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1395. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1396. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1397. coroutine.resume(coroutine.create(function()
  1398. VALUE1 = true
  1399. for i = 1, 25 do
  1400. Swait()
  1401. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  1402. end
  1403. VALUE1 = false
  1404. end))
  1405. end
  1406. end
  1407. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1408. ANIM = "Walk"
  1409. WALK = WALK + 1 / Animation_Speed
  1410. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1411. WALK = 0
  1412. if WALKINGANIM == true then
  1413. WALKINGANIM = false
  1414. elseif WALKINGANIM == false then
  1415. WALKINGANIM = true
  1416. end
  1417. end
  1418. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1419. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1420. if ATTACK == false then
  1421. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1422. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(25), RAD(0)), 0.15 / Animation_Speed)
  1423. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 - 0.15 * COS(SINE / (WALKSPEEDVALUE / 2)), 0) * ANGLES(RAD(-20), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1424. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1425. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1426. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1427. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.75 + 0.3 * COS(SINE / (WALKSPEEDVALUE/2)), 0) * ANGLES(RAD(-145), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1428. end
  1429. end
  1430. unanchor()
  1431. Humanoid.MaxHealth = "inf"
  1432. Humanoid.Health = "inf"
  1433. if Rooted == false then
  1434. Disable_Jump = false
  1435. Humanoid.WalkSpeed = Speed
  1436. elseif Rooted == true then
  1437. Disable_Jump = true
  1438. Humanoid.WalkSpeed = 0
  1439. end
  1440. if KILLINSTINCT > 0 then
  1441. PuddleOfBlood(HandlePart.CFrame*CF(0,1,0).p,3,HandlePart,2)
  1442. KILLINSTINCT = KILLINSTINCT - 0.1
  1443. end
  1444. if Head:FindFirstChild("face") then
  1445. Head.face.Texture = "http://www.roblox.com/asset/?id=1471407701"
  1446. end
  1447. Trail.Color = ColorSequence.new(C3(1,1-KILLINSTINCT/70,1-KILLINSTINCT/70))
  1448. local MATHS = {"0","1"}
  1449. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)].."P"..MATHS[MRANDOM(1,#MATHS)].."S"..MATHS[MRANDOM(1,#MATHS)].."Y"..MATHS[MRANDOM(1,#MATHS)].."C"..MATHS[MRANDOM(1,#MATHS)].."H"..MATHS[MRANDOM(1,#MATHS)].."O"..MATHS[MRANDOM(1,#MATHS)]
  1450. Humanoid.PlatformStand = false
  1451. script.Name = Humanoid.Name
  1452. if math.random(1,70-Speed) == 1 then
  1453. tecks2.Text = "FAILURE"
  1454. elseif math.random(1,70-Speed) == 2 then
  1455. tecks2.Text = "WHY BOTHER"
  1456. elseif math.random(1,70-Speed) == 3 then
  1457. tecks2.Text = "WORTHLESS"
  1458. else
  1459. if KILLINSTINCT > 0 then
  1460. if KILLINSTINCT < 100 then
  1461. if MRANDOM(1,math.ceil(100-KILLINSTINCT)) == 1 then
  1462. tecks2.Text = "HAHAHAHAHAHAHA"
  1463. else
  1464. tecks2.Text = "MANIAC AGENT"
  1465. end
  1466. elseif KILLINSTINCT >= 100 then
  1467. if MRANDOM(1,5) == 1 then
  1468. tecks2.Text = "HAHAHAHAHAHAHA"
  1469. end
  1470. else
  1471. tecks2.Text = "MANIAC AGENT"
  1472. end
  1473. else
  1474. tecks2.Text = "MANIAC AGENT"
  1475. end
  1476. end
  1477. DECAL.Transparency = 1-(KILLINSTINCT/25)
  1478. Swait()
  1479. if Head:FindFirstChildOfClass("Sound") then
  1480. Head:FindFirstChildOfClass("Sound"):remove()
  1481. end
  1482. if KILLINSTINCT > 100 then
  1483. KILLINSTINCT = 100
  1484. end
  1485. sick.Parent = Character
  1486. Sky.Parent = game.Lighting
  1487. game.Lighting.ClockTime = 22
  1488. script.Parent = PlayerGui
  1489. end
  1490.  
  1491. --//=================================\\
  1492. --\\=================================//
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498. --//====================================================\\--
  1499. --|| END OF SCRIPT
  1500. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement