Advertisement
good_scripter

Untitled

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