VoidScriptPlayer

Untitled

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