PR0J3CT11

Untitled

Jul 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --//====================================================\\--
  88. --|| EDIT BY C1LQ (XSLEEPYDEMONX_17)
  89. --\\====================================================//--
  90.  
  91.  
  92.  
  93. wait(0.2)
  94.  
  95.  
  96.  
  97. Player = game:GetService("Players").TameDoNotClick -- put your roblox username here
  98. PlayerGui = Player.PlayerGui
  99. Cam = workspace.CurrentCamera
  100. Backpack = Player.Backpack
  101. Character = Player.Character
  102. Humanoid = Character.Humanoid
  103. RootPart = Character["HumanoidRootPart"]
  104. Torso = Character["Torso"]
  105. Head = Character["Head"]
  106. RightArm = Character["Right Arm"]
  107. LeftArm = Character["Left Arm"]
  108. RightLeg = Character["Right Leg"]
  109. LeftLeg = Character["Left Leg"]
  110. RootJoint = RootPart["RootJoint"]
  111. Neck = Torso["Neck"]
  112. RightShoulder = Torso["Right Shoulder"]
  113. LeftShoulder = Torso["Left Shoulder"]
  114. RightHip = Torso["Right Hip"]
  115. LeftHip = Torso["Left Hip"]
  116. local sick = Instance.new("Sound",Character)
  117. sick.SoundId = "rbxassetid://873570786"
  118. sick.Looped = true
  119. sick.Pitch = 0.8
  120. sick.Volume = 1
  121. sick:Play()
  122. Humanoid.DisplayDistanceType = "None"
  123. game.Lighting.ClockTime = 22
  124.  
  125. IT = Instance.new
  126. CF = CFrame.new
  127. VT = Vector3.new
  128. RAD = math.rad
  129. C3 = Color3.new
  130. UD2 = UDim2.new
  131. BRICKC = BrickColor.new
  132. ANGLES = CFrame.Angles
  133. EULER = CFrame.fromEulerAnglesXYZ
  134. COS = math.cos
  135. ACOS = math.acos
  136. SIN = math.sin
  137. ASIN = math.asin
  138. ABS = math.abs
  139. MRANDOM = math.random
  140. FLOOR = math.floor
  141.  
  142. local Sky = IT("Sky")
  143. Sky.Parent = game.Lighting
  144. Sky.MoonAngularSize = 45
  145. Sky.MoonTextureId = "http://www.roblox.com/asset/?id=1055904136"
  146.  
  147. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  148. local NEWMESH = IT(MESH)
  149. if MESH == "SpecialMesh" then
  150. NEWMESH.MeshType = MESHTYPE
  151. if MESHID ~= "nil" and MESHID ~= "" then
  152. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  153. end
  154. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  155. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  156. end
  157. end
  158. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  159. NEWMESH.Scale = SCALE
  160. NEWMESH.Parent = PARENT
  161. return NEWMESH
  162. end
  163.  
  164. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  165. local NEWPART = IT("Part")
  166. NEWPART.formFactor = FORMFACTOR
  167. NEWPART.Reflectance = REFLECTANCE
  168. NEWPART.Transparency = TRANSPARENCY
  169. NEWPART.CanCollide = false
  170. NEWPART.Locked = true
  171. NEWPART.Anchored = true
  172. if ANCHOR == false then
  173. NEWPART.Anchored = false
  174. end
  175. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  176. NEWPART.Name = NAME
  177. NEWPART.Size = SIZE
  178. NEWPART.Position = Torso.Position
  179. NEWPART.Material = MATERIAL
  180. NEWPART:BreakJoints()
  181. NEWPART.Parent = PARENT
  182. return NEWPART
  183. end
  184.  
  185. --//=================================\\
  186. --|| CUSTOMIZATION
  187. --\\=================================//
  188.  
  189. Player_Size = 1 --Size of the player.
  190. Animation_Speed = 3
  191. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  192.  
  193. local Speed = 16
  194. local Effects2 = {}
  195.  
  196. --//=================================\\
  197. --|| END OF CUSTOMIZATION
  198. --\\=================================//
  199.  
  200. local function weldBetween(a, b)
  201. local weldd = Instance.new("ManualWeld")
  202. weldd.Part0 = a
  203. weldd.Part1 = b
  204. weldd.C0 = CFrame.new()
  205. weldd.C1 = b.CFrame:inverse() * a.CFrame
  206. weldd.Parent = a
  207. return weldd
  208. end
  209.  
  210. --//=================================\\
  211. --|| USEFUL VALUES
  212. --\\=================================//
  213.  
  214. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  215. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  216. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  217. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  218. local CHANGEDEFENSE = 0
  219. local CHANGEDAMAGE = 0
  220. local CHANGEMOVEMENT = 0
  221. local ANIM = "Idle"
  222. local ATTACK = false
  223. local EQUIPPED = false
  224. local HOLD = false
  225. local COMBO = 1
  226. local Rooted = false
  227. local SINE = 0
  228. local KEYHOLD = false
  229. local CHANGE = 2 / Animation_Speed
  230. local WALKINGANIM = false
  231. local WALK = 0
  232. local VALUE1 = false
  233. local VALUE2 = false
  234. local ROBLOXIDLEANIMATION = IT("Animation")
  235. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  236. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  237. --ROBLOXIDLEANIMATION.Parent = Humanoid
  238. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  239. WEAPONGUI.Name = "Weapon GUI"
  240. local Weapon = IT("Model")
  241. Weapon.Name = "Adds"
  242. local Effects = IT("Folder", Weapon)
  243. Effects.Name = "Effects"
  244. local ANIMATOR = Humanoid.Animator
  245. local ANIMATE = Character.Animate
  246. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  247. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  248. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  249. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  250. local UNANCHOR = true
  251. local KILLINSTINCT = 0
  252.  
  253. local SKILLTEXTCOLOR = C3(1,0,0)
  254.  
  255. --//=================================\\
  256. --\\=================================//
  257.  
  258.  
  259. --//=================================\\
  260. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  261. --\\=================================//
  262.  
  263. ArtificialHB = Instance.new("BindableEvent", script)
  264. ArtificialHB.Name = "ArtificialHB"
  265.  
  266. script:WaitForChild("ArtificialHB")
  267.  
  268. frame = Frame_Speed
  269. tf = 0
  270. allowframeloss = false
  271. tossremainder = false
  272. lastframe = tick()
  273. script.ArtificialHB:Fire()
  274.  
  275. game:GetService("RunService").Heartbeat:connect(function(s, p)
  276. tf = tf + s
  277. if tf >= frame then
  278. if allowframeloss then
  279. script.ArtificialHB:Fire()
  280. lastframe = tick()
  281. else
  282. for i = 1, math.floor(tf / frame) do
  283. script.ArtificialHB:Fire()
  284. end
  285. lastframe = tick()
  286. end
  287. if tossremainder then
  288. tf = 0
  289. else
  290. tf = tf - frame * math.floor(tf / frame)
  291. end
  292. end
  293. end)
  294.  
  295. --//=================================\\
  296. --\\=================================//
  297.  
  298.  
  299. skull = Instance.new("Part",Character)
  300. skull.Size = Vector3.new(2,2,2)
  301. skull.CFrame = Head.CFrame
  302. skull.CanCollide = false
  303. skullweld = Instance.new("Weld",skull)
  304. skullweld.Part0 = skull
  305. skullweld.Part1 = Head
  306. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame * CFrame.new(0,-1.5,0)
  307. mskull = Instance.new("SpecialMesh", skull)
  308. mskull.MeshType = "FileMesh"
  309. mskull.Scale = Vector3.new(1.25, 1.25, 1.25)
  310. mskull.VertexColor = Vector3.new(25,0,0)
  311. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=71494804','http://www.roblox.com/asset/?id=71494779'
  312.  
  313. --//=================================\\
  314. --|| SOME FUNCTIONS
  315. --\\=================================//
  316.  
  317. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  318. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  319. end
  320.  
  321. function PositiveAngle(NUMBER)
  322. if NUMBER >= 0 then
  323. NUMBER = 0
  324. end
  325. return NUMBER
  326. end
  327.  
  328. function NegativeAngle(NUMBER)
  329. if NUMBER <= 0 then
  330. NUMBER = 0
  331. end
  332. return NUMBER
  333. end
  334.  
  335. function Swait(NUMBER)
  336. if NUMBER == 0 or NUMBER == nil then
  337. ArtificialHB.Event:wait()
  338. else
  339. for i = 1, NUMBER do
  340. ArtificialHB.Event:wait()
  341. end
  342. end
  343. end
  344.  
  345. function QuaternionFromCFrame(cf)
  346. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  347. local trace = m00 + m11 + m22
  348. if trace > 0 then
  349. local s = math.sqrt(1 + trace)
  350. local recip = 0.5 / s
  351. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  352. else
  353. local i = 0
  354. if m11 > m00 then
  355. i = 1
  356. end
  357. if m22 > (i == 0 and m00 or m11) then
  358. i = 2
  359. end
  360. if i == 0 then
  361. local s = math.sqrt(m00 - m11 - m22 + 1)
  362. local recip = 0.5 / s
  363. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  364. elseif i == 1 then
  365. local s = math.sqrt(m11 - m22 - m00 + 1)
  366. local recip = 0.5 / s
  367. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  368. elseif i == 2 then
  369. local s = math.sqrt(m22 - m00 - m11 + 1)
  370. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  371. end
  372. end
  373. end
  374.  
  375. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  376. local xs, ys, zs = x + x, y + y, z + z
  377. local wx, wy, wz = w * xs, w * ys, w * zs
  378. local xx = x * xs
  379. local xy = x * ys
  380. local xz = x * zs
  381. local yy = y * ys
  382. local yz = y * zs
  383. local zz = z * zs
  384. 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))
  385. end
  386.  
  387. function QuaternionSlerp(a, b, t)
  388. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  389. local startInterp, finishInterp;
  390. if cosTheta >= 0.0001 then
  391. if (1 - cosTheta) > 0.0001 then
  392. local theta = ACOS(cosTheta)
  393. local invSinTheta = 1 / SIN(theta)
  394. startInterp = SIN((1 - t) * theta) * invSinTheta
  395. finishInterp = SIN(t * theta) * invSinTheta
  396. else
  397. startInterp = 1 - t
  398. finishInterp = t
  399. end
  400. else
  401. if (1 + cosTheta) > 0.0001 then
  402. local theta = ACOS(-cosTheta)
  403. local invSinTheta = 1 / SIN(theta)
  404. startInterp = SIN((t - 1) * theta) * invSinTheta
  405. finishInterp = SIN(t * theta) * invSinTheta
  406. else
  407. startInterp = t - 1
  408. finishInterp = t
  409. end
  410. end
  411. 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
  412. end
  413.  
  414. function Clerp(a, b, t)
  415. local qa = {QuaternionFromCFrame(a)}
  416. local qb = {QuaternionFromCFrame(b)}
  417. local ax, ay, az = a.x, a.y, a.z
  418. local bx, by, bz = b.x, b.y, b.z
  419. local _t = 1 - t
  420. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  421. end
  422.  
  423. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  424. local frame = IT("Frame")
  425. frame.BackgroundTransparency = TRANSPARENCY
  426. frame.BorderSizePixel = BORDERSIZEPIXEL
  427. frame.Position = POSITION
  428. frame.Size = SIZE
  429. frame.BackgroundColor3 = COLOR
  430. frame.BorderColor3 = BORDERCOLOR
  431. frame.Name = NAME
  432. frame.Parent = PARENT
  433. return frame
  434. end
  435.  
  436. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  437. local label = IT("TextLabel")
  438. label.BackgroundTransparency = 1
  439. label.Size = UD2(1, 0, 1, 0)
  440. label.Position = UD2(0, 0, 0, 0)
  441. label.TextColor3 = TEXTCOLOR
  442. label.TextStrokeTransparency = STROKETRANSPARENCY
  443. label.TextTransparency = TRANSPARENCY
  444. label.FontSize = TEXTFONTSIZE
  445. label.Font = TEXTFONT
  446. label.BorderSizePixel = BORDERSIZEPIXEL
  447. label.TextScaled = false
  448. label.Text = TEXT
  449. label.Name = NAME
  450. label.Parent = PARENT
  451. return label
  452. end
  453.  
  454. function NoOutlines(PART)
  455. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  456. end
  457.  
  458.  
  459. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  460. local NEWWELD = IT(TYPE)
  461. NEWWELD.Part0 = PART0
  462. NEWWELD.Part1 = PART1
  463. NEWWELD.C0 = C0
  464. NEWWELD.C1 = C1
  465. NEWWELD.Parent = PARENT
  466. return NEWWELD
  467. end
  468.  
  469. function CreateSound(ID, PARENT, VOLUME, PITCH)
  470. local NEWSOUND = nil
  471. coroutine.resume(coroutine.create(function()
  472. NEWSOUND = IT("Sound", PARENT)
  473. NEWSOUND.Volume = VOLUME
  474. NEWSOUND.Pitch = PITCH
  475. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  476. Swait()
  477. NEWSOUND:play()
  478. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  479. end))
  480. return NEWSOUND
  481. end
  482.  
  483. function CFrameFromTopBack(at, top, back)
  484. local right = top:Cross(back)
  485. 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)
  486. end
  487.  
  488. function MakeForm(PART,TYPE)
  489. if TYPE == "Cyl" then
  490. local MSH = IT("CylinderMesh",PART)
  491. elseif TYPE == "Ball" then
  492. local MSH = IT("SpecialMesh",PART)
  493. MSH.MeshType = "Sphere"
  494. elseif TYPE == "Wedge" then
  495. local MSH = IT("SpecialMesh",PART)
  496. MSH.MeshType = "Wedge"
  497. end
  498. end
  499.  
  500. Debris = game:GetService("Debris")
  501. --//=================================\\
  502. --|| WEAPON CREATION
  503. --\\=================================//
  504.  
  505. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.2, 3.39, 1.61),false)
  506. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "145815658", "145815673", VT(1,1,1), VT(0, 0, 0))
  507. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  508.  
  509. local DECAL = IT("Decal",HandlePart)
  510. DECAL.Texture = "http://www.roblox.com/asset/?id=116830967"
  511.  
  512. for _, c in pairs(Weapon:GetChildren()) do
  513. if c.ClassName == "Part" then
  514. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  515. end
  516. end
  517.  
  518. local A = IT("Attachment",HandlePart)
  519. A.Position = VT(0, -1.5, 0)
  520. local B = IT("Attachment",HandlePart)
  521. B.Position = VT(0, 2.2, 0.2)
  522. local Trail = IT("Trail",HandlePart)
  523. Trail.Attachment0 = A
  524. Trail.Attachment1 = B
  525. Trail.Lifetime = 0.1
  526. Trail.Transparency = NumberSequence.new(0.8, 1)
  527. Trail.Enabled = false
  528.  
  529. Weapon.Parent = Character
  530.  
  531. Humanoid.Died:connect(function()
  532. ATTACK = true
  533. end)
  534.  
  535. 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")
  536. 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")
  537. --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")
  538. --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")
  539. --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")
  540.  
  541. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Swing", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  542. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Enrage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  543. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3")
  544. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 4")
  545. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 5")
  546.  
  547. --//=================================\\
  548. --|| DAMAGING
  549. --\\=================================//
  550.  
  551. local asd = Instance.new("ParticleEmitter")
  552. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0))
  553. asd.LightEmission = .1
  554. asd.Size = NumberSequence.new(0.2)
  555. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  556. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  557. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  558. asd.Transparency = bbb
  559. asd.Size = aaa
  560. asd.ZOffset = .9
  561. asd.Acceleration = Vector3.new(0, -5, 0)
  562. asd.LockedToPart = false
  563. asd.EmissionDirection = "Back"
  564. asd.Lifetime = NumberRange.new(1, 2)
  565. asd.Rotation = NumberRange.new(-100, 100)
  566. asd.RotSpeed = NumberRange.new(-100, 100)
  567. asd.Speed = NumberRange.new(2)
  568. asd.Enabled = false
  569. asd.VelocitySpread = 10000
  570.  
  571. function getbloody(victim,amount)
  572. local prtcl = asd:Clone()
  573. prtcl.Parent = victim
  574. prtcl:Emit(amount)
  575. end
  576.  
  577. local TORSOVELOCITY = 0
  578.  
  579. function Ragdoll(Character2,CharTorso)
  580. local svch = Character2
  581. local hum = Character2:findFirstChild("Humanoid")
  582. local q = Character2:GetChildren()
  583. local CLONE = IT("Model",Effects)
  584. local DummyHead = nil
  585. for i = 1,#q do
  586. 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
  587. q[i].Parent = CLONE
  588. if q[i].Name == "Head" then
  589. DummyHead = CLONE.Head:Clone()
  590. q[i]:ClearAllChildren()
  591. q[i].Transparency = 1
  592. end
  593. else
  594. if q[i].ClassName ~= "Humanoid" then
  595. q[i]:remove()
  596. end
  597. end
  598. end
  599. local chrclone = CLONE
  600.  
  601. for _, c in pairs(Character2:GetChildren()) do
  602. if c.ClassName == "Accessory" then
  603. c:remove()
  604. end
  605. end
  606.  
  607. local ch = chrclone:GetChildren()
  608. local i
  609. for i = 1,#ch do
  610. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  611. ch[i]:remove()
  612. end
  613. end
  614. local function Scan(ch)
  615. local e
  616. for e = 1,#ch do
  617. Scan(ch[e]:GetChildren())
  618. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  619. ch[e]:remove()
  620. end
  621. end
  622. end
  623. Scan(chrclone:GetChildren())
  624.  
  625. local ch = Character2:GetChildren()
  626. local i
  627. for i = 1,#ch do
  628. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  629. ch[i]:remove()
  630. end
  631. end
  632.  
  633. local ch = Character2:GetChildren()
  634. local i
  635. for i = 1,#ch do
  636. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  637. ch[i]:remove()
  638. end
  639. end
  640. Character2 = chrclone
  641. local Torso2 = Character2.Torso
  642. local movevector = Vector3.new()
  643.  
  644. if Torso2 then
  645. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  646. local Head = Character2:FindFirstChild("Head")
  647. if Head then
  648. local Neck = Instance.new("Weld")
  649. Neck.Name = "Neck"
  650. Neck.Part0 = Torso2
  651. Neck.Part1 = Head
  652. Neck.C0 = CFrame.new(0, 1.5, 0)
  653. Neck.C1 = CFrame.new()
  654. Neck.Parent = Torso2
  655. Head:ClearAllChildren()
  656. Head.Transparency = 1
  657.  
  658. end
  659. local Limb = Character2:FindFirstChild("Right Arm")
  660. if Limb then
  661.  
  662. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  663. local Joint = Instance.new("Glue")
  664. Joint.Name = "RightShoulder"
  665. Joint.Part0 = Torso2
  666. Joint.Part1 = Limb
  667. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  668. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  669. Joint.Parent = Torso2
  670.  
  671. local B = Instance.new("Part")
  672. B.TopSurface = 0
  673. B.BottomSurface = 0
  674. B.formFactor = "Symmetric"
  675. B.Size = Vector3.new(1, 1, 1)
  676. B.Transparency = 1
  677. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  678. B.Parent = Character2
  679. local W = Instance.new("Weld")
  680. W.Part0 = Limb
  681. W.Part1 = B
  682. W.C0 = CFrame.new(0, -0.5, 0)
  683. W.Parent = Limb
  684.  
  685. end
  686. local Limb = Character2:FindFirstChild("Left Arm")
  687. if Limb then
  688.  
  689. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  690. local Joint = Instance.new("Glue")
  691. Joint.Name = "LeftShoulder"
  692. Joint.Part0 = Torso2
  693. Joint.Part1 = Limb
  694. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  695. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  696. Joint.Parent = Torso2
  697.  
  698. local B = Instance.new("Part")
  699. B.TopSurface = 0
  700. B.BottomSurface = 0
  701. B.formFactor = "Symmetric"
  702. B.Size = Vector3.new(1, 1, 1)
  703. B.Transparency = 1
  704. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  705. B.Parent = Character2
  706. local W = Instance.new("Weld")
  707. W.Part0 = Limb
  708. W.Part1 = B
  709. W.C0 = CFrame.new(0, -0.5, 0)
  710. W.Parent = Limb
  711.  
  712. end
  713. local Limb = Character2:FindFirstChild("Right Leg")
  714. if Limb then
  715.  
  716. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  717. local Joint = Instance.new("Glue")
  718. Joint.Name = "RightHip"
  719. Joint.Part0 = Torso2
  720. Joint.Part1 = Limb
  721. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  722. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  723. Joint.Parent = Torso2
  724.  
  725. local B = Instance.new("Part")
  726. B.TopSurface = 0
  727. B.BottomSurface = 0
  728. B.formFactor = "Symmetric"
  729. B.Size = Vector3.new(1, 1, 1)
  730. B.Transparency = 1
  731. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  732. B.Parent = Character2
  733. local W = Instance.new("Weld")
  734. W.Part0 = Limb
  735. W.Part1 = B
  736. W.C0 = CFrame.new(0, -0.5, 0)
  737. W.Parent = Limb
  738.  
  739. end
  740. local Limb = Character2:FindFirstChild("Left Leg")
  741. if Limb then
  742.  
  743. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  744. local Joint = Instance.new("Glue")
  745. Joint.Name = "LeftHip"
  746. Joint.Part0 = Torso2
  747. Joint.Part1 = Limb
  748. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  749. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  750. Joint.Parent = Torso2
  751.  
  752. local B = Instance.new("Part")
  753. B.TopSurface = 0
  754. B.BottomSurface = 0
  755. B.formFactor = "Symmetric"
  756. B.Size = Vector3.new(1, 1, 1)
  757. B.Transparency = 1
  758. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  759. B.Parent = Character2
  760. local W = Instance.new("Weld")
  761. W.Part0 = Limb
  762. W.Part1 = B
  763. W.C0 = CFrame.new(0, -0.5, 0)
  764. W.Parent = Limb
  765.  
  766. end
  767. --[
  768. local Bar = Instance.new("Part")
  769. Bar.TopSurface = 0
  770. Bar.BottomSurface = 0
  771. Bar.formFactor = "Symmetric"
  772. Bar.Size = Vector3.new(1, 1, 1)
  773. Bar.Transparency = 1
  774. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  775. Bar.Parent = Character2
  776. local Weld = Instance.new("Weld")
  777. Weld.Part0 = Torso2
  778. Weld.Part1 = Bar
  779. Weld.C0 = CFrame.new(0, 0.5, 0)
  780. Weld.Parent = Torso2
  781. --]]
  782. end
  783. Character2.Parent = Weapon
  784. if movevector ~= Vector3.new() then
  785. for i = 1,10 do
  786. Torso2.Velocity = movevector * 30
  787. end
  788. end
  789. DummyHead.Name = "FakeHead"
  790. DummyHead.Parent = CLONE
  791. local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false)
  792. BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0)
  793. MakeForm(BLOOD,"Cyl")
  794. weldBetween(DummyHead,BLOOD)
  795. local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false)
  796. BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0)
  797. MakeForm(BLOOD,"Cyl")
  798. weldBetween(Torso2,BLOOD)
  799. Character2.Name = "Corpse"
  800. local hum2 = svch:findFirstChild("Humanoid")
  801.  
  802. return Character2,Torso2,DummyHead
  803. end
  804.  
  805. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  806. local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  807. if HITFLOOR ~= nil then
  808. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  809. if HITFLOOR.Name == "BloodPuddle" then
  810. local DIST = (Position - HITFLOOR.Position).Magnitude
  811. 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
  812. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  813. end
  814. else
  815. if HITFLOOR.Anchored == true then
  816. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1))
  817. BLOOD.CFrame = CF(HITPOS)
  818. MakeForm(BLOOD,"Cyl")
  819. coroutine.resume(coroutine.create(function()
  820. Swait(75)
  821. while true do
  822. Swait()
  823. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  824. if BLOOD.Size.Z < 0.051 then
  825. BLOOD:remove()
  826. break
  827. end
  828. end
  829. end))
  830. end
  831. end
  832. end
  833. end
  834. end
  835.  
  836. function SprayBlood(POSITION,DIRECTION,BloodSize)
  837. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  838. BLOOD.CFrame = CF(POSITION)
  839. MakeForm(BLOOD,"Ball")
  840. local bv = Instance.new("BodyVelocity",BLOOD)
  841. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  842. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15
  843. bv.Name = "MOVE"
  844. Debris:AddItem(bv,0.05)
  845. coroutine.resume(coroutine.create(function()
  846. local HASTOUCHEDGROUND = false
  847. local HIT = BLOOD.Touched:Connect(function(hit)
  848. if hit.Anchored == true then
  849. HASTOUCHEDGROUND = true
  850. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  851. end
  852. end)
  853. for i = 1, 50 do
  854. Swait()
  855. if HASTOUCHEDGROUND == true then
  856. break
  857. end
  858. BLOOD.Size = BLOOD.Size * 0.9
  859. end
  860. BLOOD:remove()
  861. end))
  862. end
  863.  
  864. function Kill(Target)
  865. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  866. Target:BreakJoints()
  867. local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso")
  868. local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso)
  869. getbloody(DummyHead,45)
  870. if TORS2 ~= nil then
  871. CreateSound("185688060", TORS2, 10, (math.random(8,12)/10))
  872. CreateSound("337800380", DummyHead, 5, (math.random(8,18)/10))
  873. local HUM = IT("Humanoid")
  874. HUM.MaxHealth = 0
  875. HUM.Health = 0
  876. HUM.Name = "CorpseHumanoid"
  877. HUM.PlatformStand = true
  878. HUM.Parent = CLONE
  879. KILLINSTINCT = KILLINSTINCT + 20
  880. TORS2.CFrame = CFRAME
  881. coroutine.resume(coroutine.create(function()
  882. for i = 1, 450 do
  883. wait()
  884. SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5)
  885. SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10)
  886. --PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3)
  887. --PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6)
  888. end
  889. CLONE:Remove()
  890. end))
  891. end
  892. end
  893. end
  894.  
  895. --//=================================\\
  896. --|| ATTACK FUNCTIONS AND STUFF
  897. --\\=================================//
  898.  
  899. function Swing()
  900. ATTACK = true
  901. Rooted = false
  902. for i=0, 1, 0.1 / Animation_Speed do
  903. Swait()
  904. 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)
  905. 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)
  906. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  907. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  908. 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)
  909. 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)
  910. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed)
  911. end
  912. Trail.Enabled = true
  913. HandlePart.CanCollide = true
  914. CreateSound("185687991", HandlePart, 1, (math.random(8,12)/10))
  915. local HIT = HandlePart.Touched:Connect(function(hit)
  916. Kill(hit.Parent)
  917. end)
  918. for i=0, 0.8, 0.1 / Animation_Speed do
  919. Swait()
  920. if Speed == 25 and TORSOVELOCITY > 0.3 then
  921. RootPart.CFrame = RootPart.CFrame * CF(0,0,-1)
  922. end
  923. 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)
  924. 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)
  925. 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)
  926. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  927. 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)
  928. 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)
  929. 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)
  930. end
  931. Trail.Enabled = false
  932. HandlePart.CanCollide = false
  933. HIT:disconnect()
  934. ATTACK = false
  935. Rooted = false
  936. end
  937.  
  938. function Laugh()
  939. ATTACK = true
  940. Rooted = true
  941. CreateSound("300208779", Torso, 6, 0.8)
  942. for i=0, 3.5, 0.1 / Animation_Speed do
  943. Swait()
  944. 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)
  945. 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)
  946. 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)
  947. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  948. 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)
  949. 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)
  950. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  951. end
  952. ATTACK = false
  953. Rooted = false
  954. end
  955.  
  956. --//=================================\\
  957. --|| ASSIGN THINGS TO KEYS
  958. --\\=================================//
  959.  
  960. function MouseDown(Mouse)
  961. if ATTACK == false then
  962. Swing()
  963. end
  964. end
  965.  
  966. function MouseUp(Mouse)
  967. HOLD = false
  968. end
  969.  
  970. function KeyDown(Key)
  971. KEYHOLD = true
  972. if Key == "b" and ATTACK == false then
  973. if Speed == 10 then
  974. Speed = 25
  975. elseif Speed == 25 then
  976. Speed = 10
  977. end
  978. end
  979.  
  980. if Key == "t" and ATTACK == false then
  981. Laugh()
  982. end
  983. end
  984.  
  985. function KeyUp(Key)
  986. KEYHOLD = false
  987. end
  988.  
  989. Mouse.Button1Down:connect(function(NEWKEY)
  990. MouseDown(NEWKEY)
  991. end)
  992. Mouse.Button1Up:connect(function(NEWKEY)
  993. MouseUp(NEWKEY)
  994. end)
  995. Mouse.KeyDown:connect(function(NEWKEY)
  996. KeyDown(NEWKEY)
  997. end)
  998. Mouse.KeyUp:connect(function(NEWKEY)
  999. KeyUp(NEWKEY)
  1000. end)
  1001.  
  1002. --//=================================\\
  1003. --\\=================================//
  1004.  
  1005.  
  1006. function unanchor()
  1007. if UNANCHOR == true then
  1008. g = Character:GetChildren()
  1009. for i = 1, #g do
  1010. if g[i].ClassName == "Part" then
  1011. g[i].Anchored = false
  1012. end
  1013. end
  1014. end
  1015. end
  1016.  
  1017.  
  1018. --//=================================\\
  1019. --|| WRAP THE WHOLE SCRIPT UP
  1020. --\\=================================//
  1021.  
  1022. Humanoid.Changed:connect(function(Jump)
  1023. if Jump == "Jump" and (Disable_Jump == true) then
  1024. Humanoid.Jump = false
  1025. end
  1026. end)
  1027.  
  1028. Speed = 10
  1029.  
  1030. local naeeym2 = Instance.new("BillboardGui",Character)
  1031. naeeym2.AlwaysOnTop = true
  1032. naeeym2.Size = UDim2.new(5,35,2,35)
  1033. naeeym2.StudsOffset = Vector3.new(0,1,0)
  1034. naeeym2.Adornee = Character.Head
  1035. naeeym2.Name = "Name"
  1036. naeeym2.PlayerToHideFrom = Player
  1037. local tecks2 = Instance.new("TextLabel",naeeym2)
  1038. tecks2.BackgroundTransparency = 1
  1039. tecks2.TextScaled = true
  1040. tecks2.BorderSizePixel = 0
  1041. tecks2.Text = "INSANITY"
  1042. tecks2.Font = "Antique"
  1043. tecks2.TextSize = 30
  1044. tecks2.TextStrokeTransparency = 0
  1045. tecks2.TextColor3 = Color3.new(0.8,0,0)
  1046. tecks2.TextStrokeColor3 = Color3.new(0.8,0,0)
  1047. tecks2.Size = UDim2.new(1,0,0.5,0)
  1048. tecks2.Parent = naeeym2
  1049.  
  1050. while true do
  1051. ANIMATE.Parent = nil
  1052. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1053. IDLEANIMATION:Play()
  1054. SINE = SINE + CHANGE
  1055. TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1056. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1057. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1058. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1059. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1060. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1061. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1062. 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)
  1063. 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)
  1064. 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)
  1065. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1066. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1067. 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)
  1068. 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)
  1069. 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)
  1070. end
  1071. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1072. ANIM = "Jump"
  1073. if ATTACK == false then
  1074. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1075. 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)
  1076. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1077. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1078. 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)
  1079. 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)
  1080. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-165), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1081. end
  1082. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1083. ANIM = "Fall"
  1084. if ATTACK == false then
  1085. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1086. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1087. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1088. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1089. 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)
  1090. 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)
  1091. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-85), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1092. end
  1093. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1094. ANIM = "Idle"
  1095. if ATTACK == false then
  1096. 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)
  1097. if VALUE1 == false then
  1098. 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)
  1099. end
  1100. 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)
  1101. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1102. 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)
  1103. 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)
  1104. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1105. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1106. coroutine.resume(coroutine.create(function()
  1107. VALUE1 = true
  1108. for i = 1, 25 do
  1109. Swait()
  1110. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  1111. end
  1112. VALUE1 = false
  1113. end))
  1114. end
  1115. end
  1116. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1117. ANIM = "Walk"
  1118. WALK = WALK + 1 / Animation_Speed
  1119. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1120. WALK = 0
  1121. if WALKINGANIM == true then
  1122. WALKINGANIM = false
  1123. elseif WALKINGANIM == false then
  1124. WALKINGANIM = true
  1125. end
  1126. end
  1127. --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)
  1128. --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)
  1129. if ATTACK == false then
  1130. 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)
  1131. 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)
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. 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)
  1137. end
  1138. end
  1139. unanchor()
  1140. Humanoid.MaxHealth = "inf"
  1141. Humanoid.Health = "inf"
  1142. if Rooted == false then
  1143. Disable_Jump = false
  1144. Humanoid.WalkSpeed = Speed
  1145. elseif Rooted == true then
  1146. Disable_Jump = true
  1147. Humanoid.WalkSpeed = 0
  1148. end
  1149. if KILLINSTINCT > 0 then
  1150. PuddleOfBlood(HandlePart.CFrame*CF(0,1,0).p,3,HandlePart,2)
  1151. KILLINSTINCT = KILLINSTINCT - 0.1
  1152. end
  1153. if Head:FindFirstChild("face") then
  1154. Head.face.Texture = "http://www.roblox.com/asset/?id=2612691895"
  1155. end
  1156. Trail.Color = ColorSequence.new(C3(1,1-KILLINSTINCT/70,1-KILLINSTINCT/70))
  1157. local MATHS = {"0","1"}
  1158. 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)]
  1159. Humanoid.PlatformStand = false
  1160. script.Name = Humanoid.Name
  1161. if math.random(1,70-Speed) == 1 then
  1162. tecks2.Text = "FAILURE"
  1163. elseif math.random(1,70-Speed) == 2 then
  1164. tecks2.Text = "WHY BOTHER"
  1165. elseif math.random(1,70-Speed) == 3 then
  1166. tecks2.Text = "WORTHLESS"
  1167. else
  1168. if KILLINSTINCT > 0 then
  1169. if KILLINSTINCT < 100 then
  1170. if MRANDOM(1,math.ceil(100-KILLINSTINCT)) == 1 then
  1171. tecks2.Text = "HA AH AHA HA HA HA HA"
  1172. else
  1173. tecks2.Text = "H E L P"
  1174. end
  1175. elseif KILLINSTINCT >= 100 then
  1176. if MRANDOM(1,5) == 1 then
  1177. tecks2.Text = "H E L P ?"
  1178. end
  1179. else
  1180. tecks2.Text = "H E L P"
  1181. end
  1182. else
  1183. tecks2.Text = "H E L P"
  1184. end
  1185. end
  1186. DECAL.Transparency = 1-(KILLINSTINCT/25)
  1187. Swait()
  1188. if Head:FindFirstChildOfClass("Sound") then
  1189. Head:FindFirstChildOfClass("Sound"):remove()
  1190. end
  1191. if KILLINSTINCT > 100 then
  1192. KILLINSTINCT = 100
  1193. end
  1194. sick.Parent = Character
  1195. Sky.Parent = game.Lighting
  1196. game.Lighting.ClockTime = 22
  1197. script.Parent = PlayerGui
  1198. end
  1199.  
  1200. --//=================================\\
  1201. --\\=================================//
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207. --//====================================================\\--
  1208. --|| END OF SCRIPT
  1209. --\\====================================================//--
Add Comment
Please, Sign In to add comment