Michael91

FE [TEST] Nightmare

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