Advertisement
Guest User

Untitled

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