Advertisement
Guest User

Untitled

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