Advertisement
XSleepyDemonX_17

H E L P L E S S (Edit by me)

Jul 22nd, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.48 KB | None | 0 0
  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 NEKUWO (XSLEEPYDEMONX_17)
  89. --\\====================================================//--
  90.  
  91.  
  92.  
  93. wait(0.2)
  94.  
  95.  
  96.  
  97. Player = game:GetService("Players").Nekuwo -- 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://1034484280"
  118. sick.Looped = true
  119. sick.Pitch = 0.8
  120. sick.Volume = 3
  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(1,1,1)
  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,-.9)
  307. mskull = Instance.new("SpecialMesh", skull)
  308. mskull.MeshType = "FileMesh"
  309. mskull.Scale = Vector3.new(1,1,1)
  310. mskull.VertexColor = Vector3.new(2,0,0)
  311. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=1587217461','http://www.roblox.com/asset/?id=1469061871'
  312.  
  313. re = Instance.new("Part",Character)
  314. re.Size = Vector3.new(1,1,1)
  315. re.CFrame = Head.CFrame
  316. re.CanCollide = false
  317. reweld = Instance.new("Weld",re)
  318. reweld.Part0 = re
  319. reweld.Part1 = Head
  320. reweld.C0 = re.CFrame:inverse() * Head.CFrame * CFrame.new(0,-1,-.9)
  321. mre = Instance.new("SpecialMesh", re)
  322. mre.MeshType = "FileMesh"
  323. mre.Scale = Vector3.new(1,1,1)
  324. mre.VertexColor = Vector3.new(2,0,0)
  325. mre.MeshId,mre.TextureId = 'http://www.roblox.com/asset/?id=3706454529','http://www.roblox.com/asset/?id=3669390120'
  326.  
  327. ra = Instance.new("Part",Character)
  328. ra.Size = Vector3.new(1,1,1)
  329. ra.CFrame = Head.CFrame
  330. ra.CanCollide = false
  331. raweld = Instance.new("Weld",ra)
  332. raweld.Part0 = ra
  333. raweld.Part1 = Head
  334. raweld.C0 = ra.CFrame:inverse() * Head.CFrame * CFrame.new(0,-1,0)
  335. mra = Instance.new("SpecialMesh", ra)
  336. mra.MeshType = "FileMesh"
  337. mra.Scale = Vector3.new(1,1,1)
  338. mra.VertexColor = Vector3.new(2,0,0)
  339. mra.MeshId,mra.TextureId = 'http://www.roblox.com/asset/?id=3932351803','http://www.roblox.com/asset/?id=3932288520'
  340.  
  341.  
  342. --//=================================\\
  343. --|| SOME FUNCTIONS
  344. --\\=================================//
  345.  
  346. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  347. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  348. end
  349.  
  350. function PositiveAngle(NUMBER)
  351. if NUMBER >= 0 then
  352. NUMBER = 0
  353. end
  354. return NUMBER
  355. end
  356.  
  357. function NegativeAngle(NUMBER)
  358. if NUMBER <= 0 then
  359. NUMBER = 0
  360. end
  361. return NUMBER
  362. end
  363.  
  364. function Swait(NUMBER)
  365. if NUMBER == 0 or NUMBER == nil then
  366. ArtificialHB.Event:wait()
  367. else
  368. for i = 1, NUMBER do
  369. ArtificialHB.Event:wait()
  370. end
  371. end
  372. end
  373.  
  374. function QuaternionFromCFrame(cf)
  375. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  376. local trace = m00 + m11 + m22
  377. if trace > 0 then
  378. local s = math.sqrt(1 + trace)
  379. local recip = 0.5 / s
  380. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  381. else
  382. local i = 0
  383. if m11 > m00 then
  384. i = 1
  385. end
  386. if m22 > (i == 0 and m00 or m11) then
  387. i = 2
  388. end
  389. if i == 0 then
  390. local s = math.sqrt(m00 - m11 - m22 + 1)
  391. local recip = 0.5 / s
  392. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  393. elseif i == 1 then
  394. local s = math.sqrt(m11 - m22 - m00 + 1)
  395. local recip = 0.5 / s
  396. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  397. elseif i == 2 then
  398. local s = math.sqrt(m22 - m00 - m11 + 1)
  399. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  400. end
  401. end
  402. end
  403.  
  404. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  405. local xs, ys, zs = x + x, y + y, z + z
  406. local wx, wy, wz = w * xs, w * ys, w * zs
  407. local xx = x * xs
  408. local xy = x * ys
  409. local xz = x * zs
  410. local yy = y * ys
  411. local yz = y * zs
  412. local zz = z * zs
  413. 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))
  414. end
  415.  
  416. function QuaternionSlerp(a, b, t)
  417. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  418. local startInterp, finishInterp;
  419. if cosTheta >= 0.0001 then
  420. if (1 - cosTheta) > 0.0001 then
  421. local theta = ACOS(cosTheta)
  422. local invSinTheta = 1 / SIN(theta)
  423. startInterp = SIN((1 - t) * theta) * invSinTheta
  424. finishInterp = SIN(t * theta) * invSinTheta
  425. else
  426. startInterp = 1 - t
  427. finishInterp = t
  428. end
  429. else
  430. if (1 + cosTheta) > 0.0001 then
  431. local theta = ACOS(-cosTheta)
  432. local invSinTheta = 1 / SIN(theta)
  433. startInterp = SIN((t - 1) * theta) * invSinTheta
  434. finishInterp = SIN(t * theta) * invSinTheta
  435. else
  436. startInterp = t - 1
  437. finishInterp = t
  438. end
  439. end
  440. 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
  441. end
  442.  
  443. function Clerp(a, b, t)
  444. local qa = {QuaternionFromCFrame(a)}
  445. local qb = {QuaternionFromCFrame(b)}
  446. local ax, ay, az = a.x, a.y, a.z
  447. local bx, by, bz = b.x, b.y, b.z
  448. local _t = 1 - t
  449. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  450. end
  451.  
  452. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  453. local frame = IT("Frame")
  454. frame.BackgroundTransparency = TRANSPARENCY
  455. frame.BorderSizePixel = BORDERSIZEPIXEL
  456. frame.Position = POSITION
  457. frame.Size = SIZE
  458. frame.BackgroundColor3 = COLOR
  459. frame.BorderColor3 = BORDERCOLOR
  460. frame.Name = NAME
  461. frame.Parent = PARENT
  462. return frame
  463. end
  464.  
  465. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  466. local label = IT("TextLabel")
  467. label.BackgroundTransparency = 1
  468. label.Size = UD2(1, 0, 1, 0)
  469. label.Position = UD2(0, 0, 0, 0)
  470. label.TextColor3 = TEXTCOLOR
  471. label.TextStrokeTransparency = STROKETRANSPARENCY
  472. label.TextTransparency = TRANSPARENCY
  473. label.FontSize = TEXTFONTSIZE
  474. label.Font = TEXTFONT
  475. label.BorderSizePixel = BORDERSIZEPIXEL
  476. label.TextScaled = false
  477. label.Text = TEXT
  478. label.Name = NAME
  479. label.Parent = PARENT
  480. return label
  481. end
  482.  
  483. function NoOutlines(PART)
  484. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  485. end
  486.  
  487.  
  488. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  489. local NEWWELD = IT(TYPE)
  490. NEWWELD.Part0 = PART0
  491. NEWWELD.Part1 = PART1
  492. NEWWELD.C0 = C0
  493. NEWWELD.C1 = C1
  494. NEWWELD.Parent = PARENT
  495. return NEWWELD
  496. end
  497.  
  498. function CreateSound(ID, PARENT, VOLUME, PITCH)
  499. local NEWSOUND = nil
  500. coroutine.resume(coroutine.create(function()
  501. NEWSOUND = IT("Sound", PARENT)
  502. NEWSOUND.Volume = VOLUME
  503. NEWSOUND.Pitch = PITCH
  504. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  505. Swait()
  506. NEWSOUND:play()
  507. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  508. end))
  509. return NEWSOUND
  510. end
  511.  
  512. function CFrameFromTopBack(at, top, back)
  513. local right = top:Cross(back)
  514. 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)
  515. end
  516.  
  517. function MakeForm(PART,TYPE)
  518. if TYPE == "Cyl" then
  519. local MSH = IT("CylinderMesh",PART)
  520. elseif TYPE == "Ball" then
  521. local MSH = IT("SpecialMesh",PART)
  522. MSH.MeshType = "Sphere"
  523. elseif TYPE == "Wedge" then
  524. local MSH = IT("SpecialMesh",PART)
  525. MSH.MeshType = "Wedge"
  526. end
  527. end
  528.  
  529. Debris = game:GetService("Debris")
  530. --//=================================\\
  531. --|| WEAPON CREATION
  532. --\\=================================//
  533.  
  534. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.2, 3.39, 1.61),false)
  535. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "145815658", "145815673", VT(1,1,1), VT(0, 0, 0))
  536. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  537.  
  538. local DECAL = IT("Decal",HandlePart)
  539. DECAL.Texture = "http://www.roblox.com/asset/?id=116830967"
  540.  
  541. for _, c in pairs(Weapon:GetChildren()) do
  542. if c.ClassName == "Part" then
  543. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  544. end
  545. end
  546.  
  547. local A = IT("Attachment",HandlePart)
  548. A.Position = VT(0, -1.5, 0)
  549. local B = IT("Attachment",HandlePart)
  550. B.Position = VT(0, 2.2, 0.2)
  551. local Trail = IT("Trail",HandlePart)
  552. Trail.Attachment0 = A
  553. Trail.Attachment1 = B
  554. Trail.Lifetime = 0.1
  555. Trail.Transparency = NumberSequence.new(0.8, 1)
  556. Trail.Enabled = false
  557.  
  558. Weapon.Parent = Character
  559.  
  560. Humanoid.Died:connect(function()
  561. ATTACK = true
  562. end)
  563.  
  564. 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")
  565. 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")
  566. --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")
  567. --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")
  568. --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")
  569.  
  570. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK] Swing", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  571. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Enrage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  572. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3")
  573. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 4")
  574. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 5")
  575.  
  576. --//=================================\\
  577. --|| DAMAGING
  578. --\\=================================//
  579.  
  580. local asd = Instance.new("ParticleEmitter")
  581. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0))
  582. asd.LightEmission = .1
  583. asd.Size = NumberSequence.new(0.2)
  584. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  585. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  586. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  587. asd.Transparency = bbb
  588. asd.Size = aaa
  589. asd.ZOffset = .9
  590. asd.Acceleration = Vector3.new(0, -5, 0)
  591. asd.LockedToPart = false
  592. asd.EmissionDirection = "Back"
  593. asd.Lifetime = NumberRange.new(1, 2)
  594. asd.Rotation = NumberRange.new(-100, 100)
  595. asd.RotSpeed = NumberRange.new(-100, 100)
  596. asd.Speed = NumberRange.new(2)
  597. asd.Enabled = false
  598. asd.VelocitySpread = 10000
  599.  
  600. function getbloody(victim,amount)
  601. local prtcl = asd:Clone()
  602. prtcl.Parent = victim
  603. prtcl:Emit(amount)
  604. end
  605.  
  606. local TORSOVELOCITY = 0
  607.  
  608. function Ragdoll(Character2,CharTorso)
  609. local svch = Character2
  610. local hum = Character2:findFirstChild("Humanoid")
  611. local q = Character2:GetChildren()
  612. local CLONE = IT("Model",Effects)
  613. local DummyHead = nil
  614. for i = 1,#q do
  615. 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
  616. q[i].Parent = CLONE
  617. if q[i].Name == "Head" then
  618. DummyHead = CLONE.Head:Clone()
  619. q[i]:ClearAllChildren()
  620. q[i].Transparency = 1
  621. end
  622. else
  623. if q[i].ClassName ~= "Humanoid" then
  624. q[i]:remove()
  625. end
  626. end
  627. end
  628. local chrclone = CLONE
  629.  
  630. for _, c in pairs(Character2:GetChildren()) do
  631. if c.ClassName == "Accessory" then
  632. c:remove()
  633. end
  634. end
  635.  
  636. local ch = chrclone:GetChildren()
  637. local i
  638. for i = 1,#ch do
  639. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  640. ch[i]:remove()
  641. end
  642. end
  643. local function Scan(ch)
  644. local e
  645. for e = 1,#ch do
  646. Scan(ch[e]:GetChildren())
  647. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  648. ch[e]:remove()
  649. end
  650. end
  651. end
  652. Scan(chrclone:GetChildren())
  653.  
  654. local ch = Character2:GetChildren()
  655. local i
  656. for i = 1,#ch do
  657. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  658. ch[i]:remove()
  659. end
  660. end
  661.  
  662. local ch = Character2:GetChildren()
  663. local i
  664. for i = 1,#ch do
  665. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  666. ch[i]:remove()
  667. end
  668. end
  669. Character2 = chrclone
  670. local Torso2 = Character2.Torso
  671. local movevector = Vector3.new()
  672.  
  673. if Torso2 then
  674. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  675. local Head = Character2:FindFirstChild("Head")
  676. if Head then
  677. local Neck = Instance.new("Weld")
  678. Neck.Name = "Neck"
  679. Neck.Part0 = Torso2
  680. Neck.Part1 = Head
  681. Neck.C0 = CFrame.new(0, 1.5, 0)
  682. Neck.C1 = CFrame.new()
  683. Neck.Parent = Torso2
  684. Head:ClearAllChildren()
  685. Head.Transparency = 1
  686.  
  687. end
  688. local Limb = Character2:FindFirstChild("Right Arm")
  689. if Limb then
  690.  
  691. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  692. local Joint = Instance.new("Glue")
  693. Joint.Name = "RightShoulder"
  694. Joint.Part0 = Torso2
  695. Joint.Part1 = Limb
  696. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  697. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  698. Joint.Parent = Torso2
  699.  
  700. local B = Instance.new("Part")
  701. B.TopSurface = 0
  702. B.BottomSurface = 0
  703. B.formFactor = "Symmetric"
  704. B.Size = Vector3.new(1, 1, 1)
  705. B.Transparency = 1
  706. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  707. B.Parent = Character2
  708. local W = Instance.new("Weld")
  709. W.Part0 = Limb
  710. W.Part1 = B
  711. W.C0 = CFrame.new(0, -0.5, 0)
  712. W.Parent = Limb
  713.  
  714. end
  715. local Limb = Character2:FindFirstChild("Left Arm")
  716. if Limb then
  717.  
  718. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  719. local Joint = Instance.new("Glue")
  720. Joint.Name = "LeftShoulder"
  721. Joint.Part0 = Torso2
  722. Joint.Part1 = Limb
  723. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  724. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  725. Joint.Parent = Torso2
  726.  
  727. local B = Instance.new("Part")
  728. B.TopSurface = 0
  729. B.BottomSurface = 0
  730. B.formFactor = "Symmetric"
  731. B.Size = Vector3.new(1, 1, 1)
  732. B.Transparency = 1
  733. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  734. B.Parent = Character2
  735. local W = Instance.new("Weld")
  736. W.Part0 = Limb
  737. W.Part1 = B
  738. W.C0 = CFrame.new(0, -0.5, 0)
  739. W.Parent = Limb
  740.  
  741. end
  742. local Limb = Character2:FindFirstChild("Right Leg")
  743. if Limb then
  744.  
  745. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  746. local Joint = Instance.new("Glue")
  747. Joint.Name = "RightHip"
  748. Joint.Part0 = Torso2
  749. Joint.Part1 = Limb
  750. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  751. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  752. Joint.Parent = Torso2
  753.  
  754. local B = Instance.new("Part")
  755. B.TopSurface = 0
  756. B.BottomSurface = 0
  757. B.formFactor = "Symmetric"
  758. B.Size = Vector3.new(1, 1, 1)
  759. B.Transparency = 1
  760. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  761. B.Parent = Character2
  762. local W = Instance.new("Weld")
  763. W.Part0 = Limb
  764. W.Part1 = B
  765. W.C0 = CFrame.new(0, -0.5, 0)
  766. W.Parent = Limb
  767.  
  768. end
  769. local Limb = Character2:FindFirstChild("Left Leg")
  770. if Limb then
  771.  
  772. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  773. local Joint = Instance.new("Glue")
  774. Joint.Name = "LeftHip"
  775. Joint.Part0 = Torso2
  776. Joint.Part1 = Limb
  777. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  778. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  779. Joint.Parent = Torso2
  780.  
  781. local B = Instance.new("Part")
  782. B.TopSurface = 0
  783. B.BottomSurface = 0
  784. B.formFactor = "Symmetric"
  785. B.Size = Vector3.new(1, 1, 1)
  786. B.Transparency = 1
  787. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  788. B.Parent = Character2
  789. local W = Instance.new("Weld")
  790. W.Part0 = Limb
  791. W.Part1 = B
  792. W.C0 = CFrame.new(0, -0.5, 0)
  793. W.Parent = Limb
  794.  
  795. end
  796. --[
  797. local Bar = Instance.new("Part")
  798. Bar.TopSurface = 0
  799. Bar.BottomSurface = 0
  800. Bar.formFactor = "Symmetric"
  801. Bar.Size = Vector3.new(1, 1, 1)
  802. Bar.Transparency = 1
  803. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  804. Bar.Parent = Character2
  805. local Weld = Instance.new("Weld")
  806. Weld.Part0 = Torso2
  807. Weld.Part1 = Bar
  808. Weld.C0 = CFrame.new(0, 0.5, 0)
  809. Weld.Parent = Torso2
  810. --]]
  811. end
  812. Character2.Parent = Weapon
  813. if movevector ~= Vector3.new() then
  814. for i = 1,10 do
  815. Torso2.Velocity = movevector * 30
  816. end
  817. end
  818. DummyHead.Name = "FakeHead"
  819. DummyHead.Parent = CLONE
  820. local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false)
  821. BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0)
  822. MakeForm(BLOOD,"Cyl")
  823. weldBetween(DummyHead,BLOOD)
  824. local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false)
  825. BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0)
  826. MakeForm(BLOOD,"Cyl")
  827. weldBetween(Torso2,BLOOD)
  828. Character2.Name = "Corpse"
  829. local hum2 = svch:findFirstChild("Humanoid")
  830.  
  831. return Character2,Torso2,DummyHead
  832. end
  833.  
  834. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  835. local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  836. if HITFLOOR ~= nil then
  837. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  838. if HITFLOOR.Name == "BloodPuddle" then
  839. local DIST = (Position - HITFLOOR.Position).Magnitude
  840. 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
  841. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  842. end
  843. else
  844. if HITFLOOR.Anchored == true then
  845. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1))
  846. BLOOD.CFrame = CF(HITPOS)
  847. MakeForm(BLOOD,"Cyl")
  848. coroutine.resume(coroutine.create(function()
  849. Swait(75)
  850. while true do
  851. Swait()
  852. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  853. if BLOOD.Size.Z < 0.051 then
  854. BLOOD:remove()
  855. break
  856. end
  857. end
  858. end))
  859. end
  860. end
  861. end
  862. end
  863. end
  864.  
  865. function SprayBlood(POSITION,DIRECTION,BloodSize)
  866. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  867. BLOOD.CFrame = CF(POSITION)
  868. MakeForm(BLOOD,"Ball")
  869. local bv = Instance.new("BodyVelocity",BLOOD)
  870. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  871. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15
  872. bv.Name = "MOVE"
  873. Debris:AddItem(bv,0.05)
  874. coroutine.resume(coroutine.create(function()
  875. local HASTOUCHEDGROUND = false
  876. local HIT = BLOOD.Touched:Connect(function(hit)
  877. if hit.Anchored == true then
  878. HASTOUCHEDGROUND = true
  879. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  880. end
  881. end)
  882. for i = 1, 50 do
  883. Swait()
  884. if HASTOUCHEDGROUND == true then
  885. break
  886. end
  887. BLOOD.Size = BLOOD.Size * 0.9
  888. end
  889. BLOOD:remove()
  890. end))
  891. end
  892.  
  893. function Kill(Target)
  894. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  895. Target:BreakJoints()
  896. local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso")
  897. local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso)
  898. getbloody(DummyHead,45)
  899. if TORS2 ~= nil then
  900. CreateSound("185688060", TORS2, 10, (math.random(8,12)/10))
  901. CreateSound("337800380", DummyHead, 5, (math.random(8,18)/10))
  902. local HUM = IT("Humanoid")
  903. HUM.MaxHealth = 0
  904. HUM.Health = 0
  905. HUM.Name = "CorpseHumanoid"
  906. HUM.PlatformStand = true
  907. HUM.Parent = CLONE
  908. KILLINSTINCT = KILLINSTINCT + 20
  909. TORS2.CFrame = CFRAME
  910. coroutine.resume(coroutine.create(function()
  911. for i = 1, 450 do
  912. wait()
  913. SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5)
  914. SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10)
  915. --PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3)
  916. --PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6)
  917. end
  918. CLONE:Remove()
  919. end))
  920. end
  921. end
  922. end
  923.  
  924. --//=================================\\
  925. --|| ATTACK FUNCTIONS AND STUFF
  926. --\\=================================//
  927.  
  928. function Swing()
  929. ATTACK = true
  930. Rooted = false
  931. for i=0, 1, 0.1 / Animation_Speed do
  932. Swait()
  933. 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)
  934. 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)
  935. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  936. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  937. 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)
  938. 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)
  939. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed)
  940. end
  941. Trail.Enabled = true
  942. HandlePart.CanCollide = true
  943. CreateSound("185687991", HandlePart, 1, (math.random(8,12)/10))
  944. local HIT = HandlePart.Touched:Connect(function(hit)
  945. Kill(hit.Parent)
  946. end)
  947. for i=0, 0.8, 0.1 / Animation_Speed do
  948. Swait()
  949. if Speed == 25 and TORSOVELOCITY > 0.3 then
  950. RootPart.CFrame = RootPart.CFrame * CF(0,0,-1)
  951. end
  952. 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)
  953. 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)
  954. 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)
  955. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  956. 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)
  957. 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)
  958. 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)
  959. end
  960. Trail.Enabled = false
  961. HandlePart.CanCollide = false
  962. HIT:disconnect()
  963. ATTACK = false
  964. Rooted = false
  965. end
  966.  
  967. function Laugh()
  968. ATTACK = true
  969. Rooted = true
  970. CreateSound("300208779", Torso, 7, 0.8)
  971. for i=0, 3.5, 0.1 / Animation_Speed do
  972. Swait()
  973. 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)
  974. 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)
  975. 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)
  976. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  977. 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)
  978. 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)
  979. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  980. end
  981. ATTACK = false
  982. Rooted = false
  983. end
  984.  
  985. --//=================================\\
  986. --|| ASSIGN THINGS TO KEYS
  987. --\\=================================//
  988.  
  989. function MouseDown(Mouse)
  990. if ATTACK == false then
  991. Swing()
  992. end
  993. end
  994.  
  995. function MouseUp(Mouse)
  996. HOLD = false
  997. end
  998.  
  999. function KeyDown(Key)
  1000. KEYHOLD = true
  1001. if Key == "b" and ATTACK == false then
  1002. if Speed == 10 then
  1003. Speed = 25
  1004. elseif Speed == 25 then
  1005. Speed = 10
  1006. end
  1007. end
  1008.  
  1009. if Key == "t" and ATTACK == false then
  1010. Laugh()
  1011. end
  1012. end
  1013.  
  1014. function KeyUp(Key)
  1015. KEYHOLD = false
  1016. end
  1017.  
  1018. Mouse.Button1Down:connect(function(NEWKEY)
  1019. MouseDown(NEWKEY)
  1020. end)
  1021. Mouse.Button1Up:connect(function(NEWKEY)
  1022. MouseUp(NEWKEY)
  1023. end)
  1024. Mouse.KeyDown:connect(function(NEWKEY)
  1025. KeyDown(NEWKEY)
  1026. end)
  1027. Mouse.KeyUp:connect(function(NEWKEY)
  1028. KeyUp(NEWKEY)
  1029. end)
  1030.  
  1031. --//=================================\\
  1032. --\\=================================//
  1033.  
  1034.  
  1035. function unanchor()
  1036. if UNANCHOR == true then
  1037. g = Character:GetChildren()
  1038. for i = 1, #g do
  1039. if g[i].ClassName == "Part" then
  1040. g[i].Anchored = false
  1041. end
  1042. end
  1043. end
  1044. end
  1045.  
  1046.  
  1047. --//=================================\\
  1048. --|| WRAP THE WHOLE SCRIPT UP
  1049. --\\=================================//
  1050.  
  1051. Humanoid.Changed:connect(function(Jump)
  1052. if Jump == "Jump" and (Disable_Jump == true) then
  1053. Humanoid.Jump = false
  1054. end
  1055. end)
  1056.  
  1057. Speed = 10
  1058.  
  1059. local naeeym2 = Instance.new("BillboardGui",Character)
  1060. naeeym2.AlwaysOnTop = true
  1061. naeeym2.Size = UDim2.new(5,35,2,35)
  1062. naeeym2.StudsOffset = Vector3.new(0,1,0)
  1063. naeeym2.Adornee = Character.Head
  1064. naeeym2.Name = "Name"
  1065. naeeym2.PlayerToHideFrom = Player
  1066. local tecks2 = Instance.new("TextLabel",naeeym2)
  1067. tecks2.BackgroundTransparency = 1
  1068. tecks2.TextScaled = true
  1069. tecks2.BorderSizePixel = 0
  1070. tecks2.Text = "d i e"
  1071. tecks2.Font = "Antique"
  1072. tecks2.TextSize = 30
  1073. tecks2.TextStrokeTransparency = 0
  1074. tecks2.TextColor3 = Color3.new(0,0,0)
  1075. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1076. tecks2.Size = UDim2.new(1,0,0.5,0)
  1077. tecks2.Parent = naeeym2
  1078.  
  1079. while true do
  1080. ANIMATE.Parent = nil
  1081. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1082. IDLEANIMATION:Play()
  1083. SINE = SINE + CHANGE
  1084. TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1085. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1086. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1087. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1088. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1089. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1090. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1091. 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)
  1092. 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)
  1093. 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)
  1094. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1095. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1096. 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)
  1097. 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)
  1098. 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)
  1099. end
  1100. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1101. ANIM = "Jump"
  1102. if ATTACK == false then
  1103. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1104. 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)
  1105. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1106. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1107. 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)
  1108. 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)
  1109. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-165), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1110. end
  1111. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1112. ANIM = "Fall"
  1113. if ATTACK == false then
  1114. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1115. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1116. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1117. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1118. 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)
  1119. 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)
  1120. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-85), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1121. end
  1122. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1123. ANIM = "Idle"
  1124. if ATTACK == false then
  1125. 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)
  1126. if VALUE1 == false then
  1127. 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)
  1128. end
  1129. 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)
  1130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1131. 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)
  1132. 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)
  1133. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1134. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1135. coroutine.resume(coroutine.create(function()
  1136. VALUE1 = true
  1137. for i = 1, 25 do
  1138. Swait()
  1139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  1140. end
  1141. VALUE1 = false
  1142. end))
  1143. end
  1144. end
  1145. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1146. ANIM = "Walk"
  1147. WALK = WALK + 1 / Animation_Speed
  1148. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1149. WALK = 0
  1150. if WALKINGANIM == true then
  1151. WALKINGANIM = false
  1152. elseif WALKINGANIM == false then
  1153. WALKINGANIM = true
  1154. end
  1155. end
  1156. --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)
  1157. --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)
  1158. if ATTACK == false then
  1159. 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)
  1160. 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)
  1161. 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)
  1162. 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)
  1163. 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)
  1164. 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)
  1165. 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)
  1166. end
  1167. end
  1168. unanchor()
  1169. Humanoid.MaxHealth = "inf"
  1170. Humanoid.Health = "inf"
  1171. if Rooted == false then
  1172. Disable_Jump = false
  1173. Humanoid.WalkSpeed = Speed
  1174. elseif Rooted == true then
  1175. Disable_Jump = true
  1176. Humanoid.WalkSpeed = 0
  1177. end
  1178. if KILLINSTINCT > 0 then
  1179. PuddleOfBlood(HandlePart.CFrame*CF(0,1,0).p,3,HandlePart,2)
  1180. KILLINSTINCT = KILLINSTINCT - 0.1
  1181. end
  1182. if Head:FindFirstChild("face") then
  1183. Head.face.Texture = "http://www.roblox.com/asset/?id=2612691895"
  1184. end
  1185.  
  1186. Trail.Color = ColorSequence.new(C3(1,1-KILLINSTINCT/70,1-KILLINSTINCT/70))
  1187. local MATHS = {"0","1"}
  1188. 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)]
  1189. Humanoid.PlatformStand = false
  1190. script.Name = Humanoid.Name
  1191. if math.random(1,70-Speed) == 1 then
  1192. tecks2.Text = "FAILURE"
  1193. elseif math.random(1,70-Speed) == 2 then
  1194. tecks2.Text = "WHY BOTHER"
  1195. elseif math.random(1,70-Speed) == 3 then
  1196. tecks2.Text = "WORTHLESS"
  1197. else
  1198. if KILLINSTINCT > 0 then
  1199. if KILLINSTINCT < 100 then
  1200. if MRANDOM(1,math.ceil(100-KILLINSTINCT)) == 1 then
  1201. tecks2.Text = "HA AH AHA HA HA HA HA"
  1202. else
  1203. tecks2.Text = "IM C R A Z Y !"
  1204. end
  1205. elseif KILLINSTINCT >= 100 then
  1206. if MRANDOM(1,5) == 1 then
  1207. tecks2.Text = "H E L P ?"
  1208. end
  1209. else
  1210. tecks2.Text = "H E L P"
  1211. end
  1212. else
  1213. tecks2.Text = "IM S I C K ."
  1214. end
  1215. end
  1216. DECAL.Transparency = 1-(KILLINSTINCT/25)
  1217. Swait()
  1218. if Head:FindFirstChildOfClass("Sound") then
  1219. Head:FindFirstChildOfClass("Sound"):remove()
  1220. end
  1221. if KILLINSTINCT > 100 then
  1222. KILLINSTINCT = 100
  1223. end
  1224. sick.Parent = Character
  1225. Sky.Parent = game.Lighting
  1226. game.Lighting.ClockTime = 22
  1227. script.Parent = PlayerGui
  1228. end
  1229.  
  1230. --//=================================\\
  1231. --\\=================================//
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237. --//====================================================\\--
  1238. --|| END OF SCRIPT
  1239. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement