Advertisement
Darkelx

Untitled

Feb 16th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.88 KB | None | 0 0
  1. -----------------------
  2. --Bye Bye--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5.  
  6. --Probably my most brutal script yet :joy:
  7.  
  8. --Discord Creterisk#2958
  9. --Discord Server discord.gg/r7mfmPa self advertisement ftw
  10. -------------------------------------------------------
  11. --https://github.com/Mokiros/roblox-FE-compatibility
  12. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  13. local Player,game,owner = owner,game
  14. local RealPlayer = Player
  15. do
  16. print("FE Compatibility code V2 by Mokiros")
  17. local RealPlayer = RealPlayer
  18. script.Parent = RealPlayer.Character
  19.  
  20. --Fake event to make stuff like Mouse.KeyDown work
  21. local Disconnect_Function = function(this)
  22. this[1].Functions[this[2]] = nil
  23. end
  24. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  25. local FakeEvent_Metatable = {__index={
  26. Connect = function(this,f)
  27. local i = tostring(math.random(0,10000))
  28. while this.Functions[i] do
  29. i = tostring(math.random(0,10000))
  30. end
  31. this.Functions[i] = f
  32. return setmetatable({this,i},Disconnect_Metatable)
  33. end
  34. }}
  35. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  36. local function fakeEvent()
  37. return setmetatable({Functions={}},FakeEvent_Metatable)
  38. end
  39.  
  40. --Creating fake input objects with fake variables
  41. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  42. FakeMouse.keyUp = FakeMouse.KeyUp
  43. FakeMouse.keyDown = FakeMouse.KeyDown
  44. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  45. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  46. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  47. end}
  48. --Merged 2 functions into one by checking amount of arguments
  49. CAS.UnbindAction = CAS.BindAction
  50.  
  51. --This function will trigger the events that have been :Connect()'ed
  52. local function TriggerEvent(self,ev,...)
  53. for _,f in pairs(self[ev].Functions) do
  54. f(...)
  55. end
  56. end
  57. FakeMouse.TriggerEvent = TriggerEvent
  58. UIS.TriggerEvent = TriggerEvent
  59.  
  60. --Client communication
  61. local Event = Instance.new("RemoteEvent")
  62. Event.Name = "UserInput_Event"
  63. Event.OnServerEvent:Connect(function(plr,io)
  64. if plr~=RealPlayer then return end
  65. FakeMouse.Target = io.Target
  66. FakeMouse.Hit = io.Hit
  67. if not io.isMouse then
  68. local b = io.UserInputState == Enum.UserInputState.Begin
  69. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  70. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  71. end
  72. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  73. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  74. end
  75. for _,t in pairs(CAS.Actions) do
  76. for _,k in pairs(t.Keys) do
  77. if k==io.KeyCode then
  78. t.Function(t.Name,io.UserInputState,io)
  79. end
  80. end
  81. end
  82. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  83. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  84. end
  85. end)
  86. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  87. local Mouse = owner:GetMouse()
  88. local UIS = game:GetService("UserInputService")
  89. local input = function(io,RobloxHandled)
  90. if RobloxHandled then return end
  91. --Since InputObject is a client-side instance, we create and pass table instead
  92. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  93. end
  94. UIS.InputBegan:Connect(input)
  95. UIS.InputEnded:Connect(input)
  96. local h,t
  97. --Give the server mouse data every second frame, but only if the values changed
  98. --If player is not moving their mouse, client won't fire events
  99. local HB = game:GetService("RunService").Heartbeat
  100. while true do
  101. if h~=Mouse.Hit or t~=Mouse.Target then
  102. h,t=Mouse.Hit,Mouse.Target
  103. Event:FireServer({isMouse=true,Target=t,Hit=h})
  104. end
  105. --Wait 2 frames
  106. for i=1,2 do
  107. HB:Wait()
  108. end
  109. end]==],script)
  110.  
  111. ----Sandboxed game object that allows the usage of client-side methods and services
  112. --Real game object
  113. local RealGame = game
  114.  
  115. --Metatable for fake service
  116. local FakeService_Metatable = {
  117. __index = function(self,k)
  118. local s = rawget(self,"_RealService")
  119. if s then
  120. return typeof(s[k])=="function"
  121. and function(_,...)return s[k](s,...)end or s[k]
  122. end
  123. end,
  124. __newindex = function(self,k,v)
  125. local s = rawget(self,"_RealService")
  126. if s then s[k]=v end
  127. end
  128. }
  129. local function FakeService(t,RealService)
  130. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  131. return setmetatable(t,FakeService_Metatable)
  132. end
  133.  
  134. --Fake game object
  135. local FakeGame = {
  136. GetService = function(self,s)
  137. return rawget(self,s) or RealGame:GetService(s)
  138. end,
  139. Players = FakeService({
  140. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  141. },"Players"),
  142. UserInputService = FakeService(UIS,"UserInputService"),
  143. ContextActionService = FakeService(CAS,"ContextActionService"),
  144. RunService = FakeService({
  145. _btrs = {},
  146. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  147. BindToRenderStep = function(self,name,_,fun)
  148. self._btrs[name] = self.Heartbeat:Connect(fun)
  149. end,
  150. UnbindFromRenderStep = function(self,name)
  151. self._btrs[name]:Disconnect()
  152. end,
  153. },"RunService")
  154. }
  155. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  156. FakeGame.service = FakeGame.GetService
  157. FakeService(FakeGame,game)
  158. --Changing owner to fake player object to support owner:GetMouse()
  159. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  160. end
  161. local FavIDs = {
  162. 340106355, --Nefl Crystals
  163. 927529620, --Dimension
  164. 876981900, --Fantasy
  165. 398987889, --Ordinary Days
  166. 1117396305, --Oh wait, it's you.
  167. 885996042, --Action Winter Journey
  168. 919231299, --Sprawling Idiot Effigy
  169. 743466274, --Good Day Sunshine
  170. 727411183, --Knife Fight
  171. 1402748531, --The Earth Is Counting On You!
  172. 595230126 --Robot Language
  173. }
  174.  
  175.  
  176.  
  177. --The reality of my life isn't real but a Universe -makhail07
  178. wait()
  179. local plr = game:service'Players'.LocalPlayer
  180. print('Local User is '..plr.Name)
  181. local char = plr.Character
  182. local hum = char.Humanoid
  183. local ra = char["Right Arm"]
  184. local la= char["Left Arm"]
  185. local rl= char["Right Leg"]
  186. local ll = char["Left Leg"]
  187. local hed = char.Head
  188. local root = char.HumanoidRootPart
  189. local rootj = root.RootJoint
  190. local tors = char.Torso
  191. local mouse = plr:GetMouse()
  192. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  193. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  194. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  195.  
  196.  
  197. -------------------------------------------------------
  198. --Start Good Stuff--
  199. -------------------------------------------------------
  200. CF = CFrame.new
  201. angles = CFrame.Angles
  202. attack = false
  203. Euler = CFrame.fromEulerAnglesXYZ
  204. Rad = math.rad
  205. IT = Instance.new
  206. BrickC = BrickColor.new
  207. Cos = math.cos
  208. Acos = math.acos
  209. Sin = math.sin
  210. Asin = math.asin
  211. Abs = math.abs
  212. Mrandom = math.random
  213. Floor = math.floor
  214. -------------------------------------------------------
  215. --End Good Stuff--
  216. -------------------------------------------------------
  217. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  218. RSH, LSH = nil, nil
  219. RW = Instance.new("Weld")
  220. LW = Instance.new("Weld")
  221. RH = tors["Right Hip"]
  222. LH = tors["Left Hip"]
  223. RSH = tors["Right Shoulder"]
  224. LSH = tors["Left Shoulder"]
  225. RSH.Parent = nil
  226. LSH.Parent = nil
  227. RW.Name = "RW"
  228. RW.Part0 = tors
  229. RW.C0 = CF(1.5, 0.5, 0)
  230. RW.C1 = CF(0, 0.5, 0)
  231. RW.Part1 = ra
  232. RW.Parent = tors
  233. LW.Name = "LW"
  234. LW.Part0 = tors
  235. LW.C0 = CF(-1.5, 0.5, 0)
  236. LW.C1 = CF(0, 0.5, 0)
  237. LW.Part1 = la
  238. LW.Parent = tors
  239. Effects = {}
  240.  
  241. -------------------------------------------------------
  242. --Start HeartBeat--
  243. -------------------------------------------------------
  244. ArtificialHB = Instance.new("BindableEvent", script)
  245. ArtificialHB.Name = "Heartbeat"
  246. script:WaitForChild("Heartbeat")
  247.  
  248. frame = 1 / 60
  249. tf = 0
  250. allowframeloss = false
  251. tossremainder = false
  252.  
  253.  
  254. lastframe = tick()
  255. script.Heartbeat:Fire()
  256.  
  257.  
  258. game:GetService("RunService").Heartbeat:connect(function(s, p)
  259. tf = tf + s
  260. if tf >= frame then
  261. if allowframeloss then
  262. script.Heartbeat:Fire()
  263. lastframe = tick()
  264. else
  265. for i = 1, math.floor(tf / frame) do
  266. script.Heartbeat:Fire()
  267. end
  268. lastframe = tick()
  269. end
  270. if tossremainder then
  271. tf = 0
  272. else
  273. tf = tf - frame * math.floor(tf / frame)
  274. end
  275. end
  276. end)
  277. -------------------------------------------------------
  278. --End HeartBeat--
  279. -------------------------------------------------------
  280.  
  281. -------------------------------------------------------
  282. --Start Important Functions--
  283. -------------------------------------------------------
  284. function swait(num)
  285. if num == 0 or num == nil then
  286. game:service("RunService").Stepped:wait(0)
  287. else
  288. for i = 0, num do
  289. game:service("RunService").Stepped:wait(0)
  290. end
  291. end
  292. end
  293. function thread(f)
  294. coroutine.resume(coroutine.create(f))
  295. end
  296. function clerp(a, b, t)
  297. local qa = {
  298. QuaternionFromCFrame(a)
  299. }
  300. local qb = {
  301. QuaternionFromCFrame(b)
  302. }
  303. local ax, ay, az = a.x, a.y, a.z
  304. local bx, by, bz = b.x, b.y, b.z
  305. local _t = 1 - t
  306. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  307. end
  308. function QuaternionFromCFrame(cf)
  309. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  310. local trace = m00 + m11 + m22
  311. if trace > 0 then
  312. local s = math.sqrt(1 + trace)
  313. local recip = 0.5 / s
  314. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  315. else
  316. local i = 0
  317. if m00 < m11 then
  318. i = 1
  319. end
  320. if m22 > (i == 0 and m00 or m11) then
  321. i = 2
  322. end
  323. if i == 0 then
  324. local s = math.sqrt(m00 - m11 - m22 + 1)
  325. local recip = 0.5 / s
  326. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  327. elseif i == 1 then
  328. local s = math.sqrt(m11 - m22 - m00 + 1)
  329. local recip = 0.5 / s
  330. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  331. elseif i == 2 then
  332. local s = math.sqrt(m22 - m00 - m11 + 1)
  333. local recip = 0.5 / s
  334. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  335. end
  336. end
  337. end
  338. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  339. local xs, ys, zs = x + x, y + y, z + z
  340. local wx, wy, wz = w * xs, w * ys, w * zs
  341. local xx = x * xs
  342. local xy = x * ys
  343. local xz = x * zs
  344. local yy = y * ys
  345. local yz = y * zs
  346. local zz = z * zs
  347. 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))
  348. end
  349. function QuaternionSlerp(a, b, t)
  350. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  351. local startInterp, finishInterp
  352. if cosTheta >= 1.0E-4 then
  353. if 1 - cosTheta > 1.0E-4 then
  354. local theta = math.acos(cosTheta)
  355. local invSinTheta = 1 / Sin(theta)
  356. startInterp = Sin((1 - t) * theta) * invSinTheta
  357. finishInterp = Sin(t * theta) * invSinTheta
  358. else
  359. startInterp = 1 - t
  360. finishInterp = t
  361. end
  362. elseif 1 + cosTheta > 1.0E-4 then
  363. local theta = math.acos(-cosTheta)
  364. local invSinTheta = 1 / Sin(theta)
  365. startInterp = Sin((t - 1) * theta) * invSinTheta
  366. finishInterp = Sin(t * theta) * invSinTheta
  367. else
  368. startInterp = t - 1
  369. finishInterp = t
  370. end
  371. 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
  372. end
  373. function rayCast(Position, Direction, Range, Ignore)
  374. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  375. end
  376. local RbxUtility = LoadLibrary("RbxUtility")
  377. local Create = RbxUtility.Create
  378.  
  379. -------------------------------------------------------
  380. --Start Damage Function--
  381. -------------------------------------------------------
  382. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  383. if hit.Parent == nil then
  384. return
  385. end
  386. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  387. for _, v in pairs(hit.Parent:children()) do
  388. if v:IsA("Humanoid") then
  389. h = v
  390. end
  391. end
  392. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  393.  
  394. hit.Parent:FindFirstChild("Head"):BreakJoints()
  395. end
  396.  
  397. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  398. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  399. if hit.Parent.DebounceHit.Value == true then
  400. return
  401. end
  402. end
  403. if insta == true then
  404. hit.Parent:FindFirstChild("Head"):BreakJoints()
  405. end
  406. local c = Create("ObjectValue"){
  407. Name = "creator",
  408. Value = game:service("Players").LocalPlayer,
  409. Parent = h,
  410. }
  411. game:GetService("Debris"):AddItem(c, .5)
  412. if HitSound ~= nil and HitPitch ~= nil then
  413. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  414. end
  415. local Damage = math.random(minim, maxim)
  416. local blocked = false
  417. local block = hit.Parent:findFirstChild("Block")
  418. if block ~= nil then
  419. if block.className == "IntValue" then
  420. if block.Value > 0 then
  421. blocked = true
  422. block.Value = block.Value - 1
  423. print(block.Value)
  424. end
  425. end
  426. end
  427. if blocked == false then
  428. h.Health = h.Health - Damage
  429. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  430. else
  431. h.Health = h.Health - (Damage / 2)
  432. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  433. end
  434. if Type == "Knockdown" then
  435. local hum = hit.Parent.Humanoid
  436. hum.PlatformStand = true
  437. coroutine.resume(coroutine.create(function(HHumanoid)
  438. swait(1)
  439. HHumanoid.PlatformStand = false
  440. end), hum)
  441. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  442. local bodvol = Create("BodyVelocity"){
  443. velocity = angle * knockback,
  444. P = 5000,
  445. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  446. Parent = hit,
  447. }
  448. local rl = Create("BodyAngularVelocity"){
  449. P = 3000,
  450. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  451. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  452. Parent = hit,
  453. }
  454. game:GetService("Debris"):AddItem(bodvol, .5)
  455. game:GetService("Debris"):AddItem(rl, .5)
  456. elseif Type == "Normal" then
  457. local vp = Create("BodyVelocity"){
  458. P = 500,
  459. maxForce = Vector3.new(math.huge, 0, math.huge),
  460. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  461. }
  462. if knockback > 0 then
  463. vp.Parent = hit.Parent.Torso
  464. end
  465. game:GetService("Debris"):AddItem(vp, .5)
  466. elseif Type == "Up" then
  467. local bodyVelocity = Create("BodyVelocity"){
  468. velocity = Vector3.new(0, 20, 0),
  469. P = 5000,
  470. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  471. Parent = hit,
  472. }
  473. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  474. elseif Type == "DarkUp" then
  475. coroutine.resume(coroutine.create(function()
  476. for i = 0, 1, 0.1 do
  477. swait()
  478. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  479. end
  480. end))
  481. local bodyVelocity = Create("BodyVelocity"){
  482. velocity = Vector3.new(0, 20, 0),
  483. P = 5000,
  484. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  485. Parent = hit,
  486. }
  487. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  488. elseif Type == "Snare" then
  489. local bp = Create("BodyPosition"){
  490. P = 2000,
  491. D = 100,
  492. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  493. position = hit.Parent.Torso.Position,
  494. Parent = hit.Parent.Torso,
  495. }
  496. game:GetService("Debris"):AddItem(bp, 1)
  497. elseif Type == "Freeze" then
  498. local BodPos = Create("BodyPosition"){
  499. P = 50000,
  500. D = 1000,
  501. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  502. position = hit.Parent.Torso.Position,
  503. Parent = hit.Parent.Torso,
  504. }
  505. local BodGy = Create("BodyGyro") {
  506. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  507. P = 20e+003,
  508. Parent = hit.Parent.Torso,
  509. cframe = hit.Parent.Torso.CFrame,
  510. }
  511. hit.Parent.Torso.Anchored = true
  512. coroutine.resume(coroutine.create(function(Part)
  513. swait(1.5)
  514. Part.Anchored = false
  515. end), hit.Parent.Torso)
  516. game:GetService("Debris"):AddItem(BodPos, 3)
  517. game:GetService("Debris"):AddItem(BodGy, 3)
  518. end
  519. local debounce = Create("BoolValue"){
  520. Name = "DebounceHit",
  521. Parent = hit.Parent,
  522. Value = true,
  523. }
  524. game:GetService("Debris"):AddItem(debounce, Delay)
  525. c = Create("ObjectValue"){
  526. Name = "creator",
  527. Value = Player,
  528. Parent = h,
  529. }
  530. game:GetService("Debris"):AddItem(c, .5)
  531. end
  532. end
  533. -------------------------------------------------------
  534. --End Damage Function--
  535. -------------------------------------------------------
  536.  
  537. -------------------------------------------------------
  538. --Start Damage Function Customization--
  539. -------------------------------------------------------
  540. function ShowDamage(Pos, Text, Time, Color)
  541. local Rate = (1 / 30)
  542. local Pos = (Pos or Vector3.new(0, 0, 0))
  543. local Text = (Text or "")
  544. local Time = (Time or 2)
  545. local Color = (Color or Color3.new(1, 0, 1))
  546. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  547. EffectPart.Anchored = true
  548. local BillboardGui = Create("BillboardGui"){
  549. Size = UDim2.new(3, 0, 3, 0),
  550. Adornee = EffectPart,
  551. Parent = EffectPart,
  552. }
  553. local TextLabel = Create("TextLabel"){
  554. BackgroundTransparency = 1,
  555. Size = UDim2.new(1, 0, 1, 0),
  556. Text = Text,
  557. Font = "Bodoni",
  558. TextColor3 = Color,
  559. TextScaled = true,
  560. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  561. Parent = BillboardGui,
  562. }
  563. game.Debris:AddItem(EffectPart, (Time))
  564. EffectPart.Parent = game:GetService("Workspace")
  565. delay(0, function()
  566. local Frames = (Time / Rate)
  567. for Frame = 1, Frames do
  568. wait(Rate)
  569. local Percent = (Frame / Frames)
  570. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  571. TextLabel.TextTransparency = Percent
  572. end
  573. if EffectPart and EffectPart.Parent then
  574. EffectPart:Destroy()
  575. end
  576. end)
  577. end
  578. -------------------------------------------------------
  579. --End Damage Function Customization--
  580. -------------------------------------------------------
  581.  
  582. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  583. for _, c in pairs(workspace:children()) do
  584. local hum = c:findFirstChild("Humanoid")
  585. if hum ~= nil then
  586. local head = c:findFirstChild("Head")
  587. if head ~= nil then
  588. local targ = head.Position - Part.Position
  589. local mag = targ.magnitude
  590. if magni >= mag and c.Name ~= plr.Name then
  591. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  592. end
  593. end
  594. end
  595. end
  596. end
  597.  
  598.  
  599. CFuncs = {
  600. Part = {
  601. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  602. local Part = Create("Part")({
  603. Parent = Parent,
  604. Reflectance = Reflectance,
  605. Transparency = Transparency,
  606. CanCollide = false,
  607. Locked = true,
  608. BrickColor = BrickColor.new(tostring(BColor)),
  609. Name = Name,
  610. Size = Size,
  611. Material = Material
  612. })
  613. RemoveOutlines(Part)
  614. return Part
  615. end
  616. },
  617. Mesh = {
  618. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  619. local Msh = Create(Mesh)({
  620. Parent = Part,
  621. Offset = OffSet,
  622. Scale = Scale
  623. })
  624. if Mesh == "SpecialMesh" then
  625. Msh.MeshType = MeshType
  626. Msh.MeshId = MeshId
  627. end
  628. return Msh
  629. end
  630. },
  631. Mesh = {
  632. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  633. local Msh = Create(Mesh)({
  634. Parent = Part,
  635. Offset = OffSet,
  636. Scale = Scale
  637. })
  638. if Mesh == "SpecialMesh" then
  639. Msh.MeshType = MeshType
  640. Msh.MeshId = MeshId
  641. end
  642. return Msh
  643. end
  644. },
  645. Weld = {
  646. Create = function(Parent, Part0, Part1, C0, C1)
  647. local Weld = Create("Weld")({
  648. Parent = Parent,
  649. Part0 = Part0,
  650. Part1 = Part1,
  651. C0 = C0,
  652. C1 = C1
  653. })
  654. return Weld
  655. end
  656. },
  657. Sound = {
  658. Create = function(id, par, vol, pit)
  659. coroutine.resume(coroutine.create(function()
  660. local S = Create("Sound")({
  661. Volume = vol,
  662. Pitch = pit or 1,
  663. SoundId = id,
  664. Parent = par or workspace
  665. })
  666. wait()
  667. S:play()
  668. game:GetService("Debris"):AddItem(S, 6)
  669. end))
  670. end
  671. },
  672. ParticleEmitter = {
  673. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  674. local fp = Create("ParticleEmitter")({
  675. Parent = Parent,
  676. Color = ColorSequence.new(Color1, Color2),
  677. LightEmission = LightEmission,
  678. Size = Size,
  679. Texture = Texture,
  680. Transparency = Transparency,
  681. ZOffset = ZOffset,
  682. Acceleration = Accel,
  683. Drag = Drag,
  684. LockedToPart = LockedToPart,
  685. VelocityInheritance = VelocityInheritance,
  686. EmissionDirection = EmissionDirection,
  687. Enabled = Enabled,
  688. Lifetime = LifeTime,
  689. Rate = Rate,
  690. Rotation = Rotation,
  691. RotSpeed = RotSpeed,
  692. Speed = Speed,
  693. VelocitySpread = VelocitySpread
  694. })
  695. return fp
  696. end
  697. }
  698. }
  699. function RemoveOutlines(part)
  700. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  701. end
  702. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  703. local Part = Create("Part")({
  704. formFactor = FormFactor,
  705. Parent = Parent,
  706. Reflectance = Reflectance,
  707. Transparency = Transparency,
  708. CanCollide = false,
  709. Locked = true,
  710. BrickColor = BrickColor.new(tostring(BColor)),
  711. Name = Name,
  712. Size = Size,
  713. Material = Material
  714. })
  715. RemoveOutlines(Part)
  716. return Part
  717. end
  718. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  719. local Msh = Create(Mesh)({
  720. Parent = Part,
  721. Offset = OffSet,
  722. Scale = Scale
  723. })
  724. if Mesh == "SpecialMesh" then
  725. Msh.MeshType = MeshType
  726. Msh.MeshId = MeshId
  727. end
  728. return Msh
  729. end
  730. function CreateWeld(Parent, Part0, Part1, C0, C1)
  731. local Weld = Create("Weld")({
  732. Parent = Parent,
  733. Part0 = Part0,
  734. Part1 = Part1,
  735. C0 = C0,
  736. C1 = C1
  737. })
  738. return Weld
  739. end
  740.  
  741.  
  742. -------------------------------------------------------
  743. --Start Effect Function--
  744. -------------------------------------------------------
  745. EffectModel = Instance.new("Model", char)
  746. Effects = {
  747. Block = {
  748. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  749. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  750. prt.Anchored = true
  751. prt.CFrame = cframe
  752. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  753. game:GetService("Debris"):AddItem(prt, 10)
  754. if Type == 1 or Type == nil then
  755. table.insert(Effects, {
  756. prt,
  757. "Block1",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh
  763. })
  764. elseif Type == 2 then
  765. table.insert(Effects, {
  766. prt,
  767. "Block2",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. else
  775. table.insert(Effects, {
  776. prt,
  777. "Block3",
  778. delay,
  779. x3,
  780. y3,
  781. z3,
  782. msh
  783. })
  784. end
  785. end
  786. },
  787. Sphere = {
  788. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  789. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  790. prt.Anchored = true
  791. prt.CFrame = cframe
  792. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  793. game:GetService("Debris"):AddItem(prt, 10)
  794. table.insert(Effects, {
  795. prt,
  796. "Cylinder",
  797. delay,
  798. x3,
  799. y3,
  800. z3,
  801. msh
  802. })
  803. end
  804. },
  805. Cylinder = {
  806. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  807. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  808. prt.Anchored = true
  809. prt.CFrame = cframe
  810. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  811. game:GetService("Debris"):AddItem(prt, 10)
  812. table.insert(Effects, {
  813. prt,
  814. "Cylinder",
  815. delay,
  816. x3,
  817. y3,
  818. z3,
  819. msh
  820. })
  821. end
  822. },
  823. Wave = {
  824. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  825. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  826. prt.Anchored = true
  827. prt.CFrame = cframe
  828. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  829. game:GetService("Debris"):AddItem(prt, 10)
  830. table.insert(Effects, {
  831. prt,
  832. "Cylinder",
  833. delay,
  834. x3 / 60,
  835. y3 / 60,
  836. z3 / 60,
  837. msh
  838. })
  839. end
  840. },
  841. Ring = {
  842. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  843. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  844. prt.Anchored = true
  845. prt.CFrame = cframe
  846. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  847. game:GetService("Debris"):AddItem(prt, 10)
  848. table.insert(Effects, {
  849. prt,
  850. "Cylinder",
  851. delay,
  852. x3,
  853. y3,
  854. z3,
  855. msh
  856. })
  857. end
  858. },
  859. Break = {
  860. Create = function(brickcolor, cframe, x1, y1, z1)
  861. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  862. prt.Anchored = true
  863. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  864. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  865. local num = math.random(10, 50) / 1000
  866. game:GetService("Debris"):AddItem(prt, 10)
  867. table.insert(Effects, {
  868. prt,
  869. "Shatter",
  870. num,
  871. prt.CFrame,
  872. math.random() - math.random(),
  873. 0,
  874. math.random(50, 100) / 100
  875. })
  876. end
  877. },
  878. Spiral = {
  879. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  880. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  881. prt.Anchored = true
  882. prt.CFrame = cframe
  883. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. table.insert(Effects, {
  886. prt,
  887. "Cylinder",
  888. delay,
  889. x3,
  890. y3,
  891. z3,
  892. msh
  893. })
  894. end
  895. },
  896. Push = {
  897. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  898. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  899. prt.Anchored = true
  900. prt.CFrame = cframe
  901. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  902. game:GetService("Debris"):AddItem(prt, 10)
  903. table.insert(Effects, {
  904. prt,
  905. "Cylinder",
  906. delay,
  907. x3,
  908. y3,
  909. z3,
  910. msh
  911. })
  912. end
  913. }
  914. }
  915. -------------------------------------------------------
  916. --End Effect Function--
  917. -------------------------------------------------------
  918.  
  919. function CreateSound(ID, PARENT, VOLUME, PITCH)
  920. local NSound = nil
  921. coroutine.resume(coroutine.create(function()
  922. NSound = Instance.new("Sound", PARENT)
  923. NSound.Volume = VOLUME
  924. NSound.Pitch = PITCH
  925. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  926. swait()
  927. NSound:play()
  928. game:GetService("Debris"):AddItem(NSound, 10)
  929. end))
  930. return NSound
  931. end
  932.  
  933. -------------------------------------------------------
  934. --Start Kyu's shitty stuff--
  935. -------------------------------------------------------
  936.  
  937. function ragdoll(model)
  938. local char = model
  939. torso = char.HumanoidRootPart
  940. torso2 = char.Torso
  941. LW.Parent = nil
  942. RW.Parent = nil
  943. LH.Parent = nil
  944. RH.Parent = nil
  945. if hum ~= nil then
  946. hum.PlatformStand = true
  947. end
  948.  
  949. local Head = char:FindFirstChild("Head")
  950. if Head then
  951. local Neck = Instance.new("Weld")
  952. Neck.Name = "Neck"
  953. Neck.Part0 = torso
  954. Neck.Part1 = Head
  955. Neck.C0 = CFrame.new(0, 1.5, 0)
  956. Neck.C1 = CFrame.new()
  957. Neck.Parent = torso
  958. end
  959. local Limb = char:FindFirstChild("Right Arm")
  960. if Limb then
  961.  
  962. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  963. local Joint = Instance.new("Glue")
  964. Joint.Name = "RightShoulder"
  965. Joint.Part0 = torso
  966. Joint.Part1 = Limb
  967. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  968. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  969. Joint.Parent = torso
  970.  
  971. local B = Instance.new("Part")
  972. B.TopSurface = 0
  973. B.BottomSurface = 0
  974. B.formFactor = "Symmetric"
  975. B.Size = Vector3.new(1, 1, 1)
  976. B.Transparency = 1
  977. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  978. B.Parent = char
  979. local W = Instance.new("Weld")
  980. W.Part0 = Limb
  981. W.Part1 = B
  982. W.C0 = CFrame.new(0, -0.5, 0)
  983. W.Parent = Limb
  984.  
  985. end
  986. local Limb = char:FindFirstChild("Left Arm")
  987. if Limb then
  988.  
  989. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  990. local Joint = Instance.new("Glue")
  991. Joint.Name = "LeftShoulder"
  992. Joint.Part0 = torso
  993. Joint.Part1 = Limb
  994. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  995. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  996. Joint.Parent = torso
  997.  
  998. local B = Instance.new("Part")
  999. B.TopSurface = 0
  1000. B.BottomSurface = 0
  1001. B.formFactor = "Symmetric"
  1002. B.Size = Vector3.new(1, 1, 1)
  1003. B.Transparency = 1
  1004. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1005. B.Parent = char
  1006. local W = Instance.new("Weld")
  1007. W.Part0 = Limb
  1008. W.Part1 = B
  1009. W.C0 = CFrame.new(0, -0.5, 0)
  1010. W.Parent = Limb
  1011.  
  1012. end
  1013. local Limb = char:FindFirstChild("Right Leg")
  1014. if Limb then
  1015.  
  1016. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  1017. local Joint = Instance.new("Glue")
  1018. Joint.Name = "RightHip"
  1019. Joint.Part0 = torso
  1020. Joint.Part1 = Limb
  1021. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1022. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1023. Joint.Parent = torso
  1024.  
  1025. local B = Instance.new("Part")
  1026. B.TopSurface = 0
  1027. B.BottomSurface = 0
  1028. B.formFactor = "Symmetric"
  1029. B.Size = Vector3.new(1, 1, 1)
  1030. B.Transparency = 1
  1031. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1032. B.Parent = char
  1033. local W = Instance.new("Weld")
  1034. W.Part0 = Limb
  1035. W.Part1 = B
  1036. W.C0 = CFrame.new(0, -0.5, 0)
  1037. W.Parent = Limb
  1038.  
  1039. end
  1040. local Limb = char:FindFirstChild("Left Leg")
  1041. if Limb then
  1042.  
  1043. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  1044. local Joint = Instance.new("Glue")
  1045. Joint.Name = "LeftHip"
  1046. Joint.Part0 = torso
  1047. Joint.Part1 = Limb
  1048. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1049. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1050. Joint.Parent = torso
  1051.  
  1052. local B = Instance.new("Part")
  1053. B.TopSurface = 0
  1054. B.BottomSurface = 0
  1055. B.formFactor = "Symmetric"
  1056. B.Size = Vector3.new(1, 1, 1)
  1057. B.Transparency = 1
  1058. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1059. B.Parent = char
  1060. local W = Instance.new("Weld")
  1061. W.Part0 = Limb
  1062. W.Part1 = B
  1063. W.C0 = CFrame.new(0, -0.5, 0)
  1064. W.Parent = Limb
  1065.  
  1066. end
  1067. --[
  1068. local Bar = Instance.new("Part")
  1069. Bar.TopSurface = 0
  1070. Bar.BottomSurface = 0
  1071. Bar.formFactor = "Symmetric"
  1072. Bar.Size = Vector3.new(1, 1, 1)
  1073. Bar.Transparency = 1
  1074. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  1075. Bar.Parent = char
  1076. local Weld = Instance.new("Weld")
  1077. Weld.Part0 = torso
  1078. Weld.Part1 = Bar
  1079. Weld.C0 = CFrame.new(0, 0.5, 0)
  1080. Weld.Parent = torso
  1081. --]]
  1082.  
  1083. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  1084.  
  1085. end
  1086.  
  1087. -------------------------------------------------------
  1088. --End Kyu's shitty stuff--
  1089. -------------------------------------------------------
  1090.  
  1091. function New(Object, Parent, Name, Data)
  1092. local Object = Instance.new(Object)
  1093. for Index, Value in pairs(Data or {}) do
  1094. Object[Index] = Value
  1095. end
  1096. Object.Parent = Parent
  1097. Object.Name = Name
  1098. return Object
  1099. end
  1100.  
  1101. local Blood1 = Create("ParticleEmitter")({
  1102. Color = ColorSequence.new(Color3.new(0.7, 0, 0), Color3.new(0.1, 0, 0)),
  1103. Transparency = NumberSequence.new(0.1, 1),
  1104. Size = NumberSequence.new(0.5, 0),
  1105. Texture = "rbxassetid://602578593",
  1106. Lifetime = NumberRange.new(0.8),
  1107. Rate = 255,
  1108. VelocitySpread = 40,
  1109. Rotation = NumberRange.new(100),
  1110. Speed = NumberRange.new(5),
  1111. LightEmission = 0,
  1112. LockedToPart = false,
  1113. Acceleration = Vector3.new(0, -10, 0),
  1114. EmissionDirection = "Bottom"
  1115. })
  1116.  
  1117. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1118. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  1119. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1120. FHead.CanCollide = false
  1121.  
  1122. -------------------------------------------------------
  1123. --End Important Functions--
  1124. -------------------------------------------------------
  1125.  
  1126.  
  1127. -------------------------------------------------------
  1128. --Start Music Option--
  1129. -------------------------------------------------------
  1130. local Music = Instance.new("Sound",tors)
  1131. Music.Volume = 2.5
  1132. Music.SoundId = "rbxassetid://147488802"
  1133. Music.Looped = true
  1134. Music.Pitch = 1 --Pitcher
  1135. Music:Play()
  1136. -------------------------------------------------------
  1137. --End Music Option--
  1138. -------------------------------------------------------
  1139.  
  1140.  
  1141. -------------------------------------------------------
  1142. --Start Attacks N Stuff--
  1143. -------------------------------------------------------
  1144.  
  1145.  
  1146.  
  1147.  
  1148. local sine=0
  1149. function ByeBye()
  1150. local target = nil
  1151. local targettorso = nil
  1152. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1153. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1154. target = mouse.Target.Parent.Humanoid
  1155. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1156. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1157. end
  1158. end
  1159. if target ~= nil then
  1160. targettorso.Anchored = true
  1161. attack = true
  1162. hum.WalkSpeed = 0
  1163. root.CFrame = targettorso.CFrame * CF(0,0,2)
  1164. for i = 0,4.2,0.1 do
  1165. swait()
  1166. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1167. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1168. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1169. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1170. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1171. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(-25)), 0.1)
  1172. end
  1173. local bloody = Instance.new("ParticleEmitter",targettorso)
  1174. bloody.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1175. bloody.LightEmission = .1
  1176. bloody.Size = NumberSequence.new(0.5, 0)
  1177. bloody.Texture = "http://www.roblox.com/asset/?ID=602578593"
  1178. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1179. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1180. bloody.Transparency = bbb
  1181. bloody.Size = aaa
  1182. bloody.ZOffset = -.9
  1183. bloody.Acceleration = Vector3.new(0, -5, 0)
  1184. bloody.LockedToPart = false
  1185. bloody.Lifetime = NumberRange.new(0.8)
  1186. bloody.Rate = 255
  1187. bloody.Rotation = NumberRange.new(-100, 100)
  1188. bloody.RotSpeed = NumberRange.new(-100, 100)
  1189. bloody.Speed = NumberRange.new(6)
  1190. bloody.VelocitySpread = 0
  1191. bloody.Enabled=true
  1192. targethead:Remove()
  1193. CreateSound("429400881", targettorso, 5, .8)
  1194. CreateSound("1093102664", targettorso, 10, 1)
  1195. for i = 0,6.2,0.1 do
  1196. swait()
  1197. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.15)
  1198. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-110)), 0.3)
  1199. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1200. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1201. RW.C0 = clerp(RW.C0, CF(1.3, 0.7 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(100), Rad(0), Rad(-15)), 0.1)
  1202. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1203. end
  1204. targettorso.Anchored = false
  1205. attack = false
  1206. hum.WalkSpeed = 16
  1207. root.CFrame = targettorso.CFrame * CF(0,0,3)
  1208. end
  1209. end
  1210.  
  1211.  
  1212. function Sayonara()
  1213. local target = nil
  1214. local targettorso = nil
  1215. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1216. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1217. target = mouse.Target.Parent.Humanoid
  1218. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1219. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1220. targetrightarm = mouse.Target.Parent:FindFirstChild("Right Arm")
  1221. targetleftarm = mouse.Target.Parent:FindFirstChild("Left Arm")
  1222. end
  1223. end
  1224. if target ~= nil then
  1225. targettorso.Anchored = true
  1226. attack = true
  1227. hum.WalkSpeed = 0
  1228. root.CFrame = targettorso.CFrame * CF(0,0,2.4)
  1229. for i = 0,6.2,0.1 do
  1230. swait()
  1231. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  1232. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(0)), 0.3)
  1233. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1234. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1235. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1)
  1236. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-10)), 0.1)
  1237. end
  1238. do
  1239. CreateSound("429400881", targettorso, 5, 1)
  1240. local ModelArm02 = New("Model", char, "Arm", {})
  1241. local ModelArm03 = New("Model", char, "Arm", {})
  1242. local Humanoid02 = New("Humanoid", ModelArm02, "Humanoid", {})
  1243. local Humanoid03 = New("Humanoid", ModelArm03, "Humanoid", {})
  1244. local Arm02 = targetleftarm:Clone()
  1245. local Arm03 = targetrightarm:Clone()
  1246. targetleftarm.Transparency = 1
  1247. targetrightarm.Transparency = 1
  1248. Arm02.Parent = ModelArm02
  1249. Arm03.Parent = ModelArm03
  1250. for i, v in pairs(Arm02:GetChildren()) do
  1251. v:Destroy()
  1252. end
  1253. for i, v in pairs(Arm03:GetChildren()) do
  1254. v:Destroy()
  1255. end
  1256. local weldArm02 = Instance.new("Weld")
  1257. weldArm02.Parent = Arm02
  1258. weldArm02.Part0 = targetleftarm
  1259. weldArm02.Part1 = Arm02
  1260. weldArm02.C1 = CFrame.new(0, 0, 0)
  1261. local weldArm03 = Instance.new("Weld")
  1262. weldArm03.Parent = Arm03
  1263. weldArm03.Part0 = targetrightarm
  1264. weldArm03.Part1 = Arm03
  1265. weldArm03.C1 = CFrame.new(0, 0, 0)
  1266. for i, v in pairs(target:GetChildren()) do
  1267. if v:IsA("Shirt") then
  1268. v:clone().Parent = ModelArm02
  1269. end
  1270. end
  1271. for i, v in pairs(target:GetChildren()) do
  1272. if v:IsA("Shirt") then
  1273. v:clone().Parent = ModelArm03
  1274. end
  1275. end
  1276. weldArm02.Part0 = la
  1277. weldArm02.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1278. weldArm03.Part0 = ra
  1279. weldArm03.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1280. local BE1 = Blood1:Clone()
  1281. BE1.Parent = targetleftarm
  1282. game:GetService("Debris"):AddItem(BE1, 3)
  1283. BE1.Rate = 255
  1284. local BE2 = Blood1:Clone()
  1285. BE2.Parent = targetrightarm
  1286. game:GetService("Debris"):AddItem(BE2, 3)
  1287. BE2.Rate = 255
  1288. for i = 0,6.2,0.1 do
  1289. swait()
  1290. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.15)
  1291. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1292. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15)
  1293. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15)
  1294. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1295. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1)
  1296. end
  1297. for i = 0,6.2,0.1 do
  1298. swait()
  1299. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1300. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1301. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1302. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1303. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(15)), 0.1)
  1304. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(-15)), 0.1)
  1305. end
  1306. CreateSound("541909763", targettorso, 5, .8)
  1307. weldArm02:Destroy()
  1308. Arm02.CanCollide = true
  1309. weldArm03:Destroy()
  1310. Arm03.CanCollide = true
  1311. local bodyVelocity2 = Create("BodyVelocity")({
  1312. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1313. P = 5000,
  1314. maxForce = Vector3.new(8000, 8000, 8000),
  1315. Parent = Arm02
  1316. })
  1317. local bodyVelocity3 = Create("BodyVelocity")({
  1318. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1319. P = 5000,
  1320. maxForce = Vector3.new(8000, 8000, 8000),
  1321. Parent = Arm03
  1322. })
  1323. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1324. game:GetService("Debris"):AddItem(bodyVelocity3, 0.05)
  1325. for i = 0,6.2,0.1 do
  1326. swait()
  1327. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1328. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1329. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15)
  1330. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1331. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(15)), 0.1)
  1332. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(-15)), 0.1)
  1333. end
  1334. for i = 0,6.2,0.1 do
  1335. swait()
  1336. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1337. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1338. RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1339. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1340. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1341. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1342. end
  1343. targettorso:Remove()
  1344. for i = 0,6.2,0.1 do
  1345. swait()
  1346. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -2.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15)
  1347. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1348. RH.C0 = clerp(RH.C0, CF(1, -0.2 - 0.1 * Cos(sine / 20), -.5 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(90)), 0.15)
  1349. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-35)), 0.15)
  1350. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(15)), 0.1)
  1351. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55), Rad(0), Rad(-15)), 0.1)
  1352. end
  1353. end
  1354. targettorso.Anchored = false
  1355. attack = false
  1356. hum.WalkSpeed = 16
  1357. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1358. end
  1359. end
  1360.  
  1361. function AlohaMyFriend()
  1362. local target = nil
  1363. local targettorso = nil
  1364. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1365. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1366. target = mouse.Target.Parent.Humanoid
  1367. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1368. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1369. end
  1370. end
  1371. if target ~= nil then
  1372. targettorso.Anchored = true
  1373. attack = true
  1374. hum.WalkSpeed = 0
  1375. root.CFrame = targettorso.CFrame * CF(0,0,2.6)
  1376. for i = 0,6.2,0.1 do
  1377. swait()
  1378. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1379. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1380. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1381. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1382. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1)
  1383. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1384. end
  1385. local ModelHead01 = New("Model", char, "Head of Decapitated", {})
  1386. local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {})
  1387. local Head01 = targethead:Clone()
  1388. targethead.Transparency = 1
  1389. Head01.Parent = ModelHead01
  1390. local weldHead01 = Instance.new("Weld")
  1391. weldHead01.Parent = Head01
  1392. weldHead01.Part0 = targethead
  1393. weldHead01.Part1 = Head01
  1394. weldHead01.C1 = CFrame.new(0, 0, 0)
  1395. targethead.face:Remove()
  1396. weldHead01.Part0 = ra
  1397. weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0))
  1398. local BE1 = Blood1:Clone()
  1399. BE1.Parent = targethead
  1400. game:GetService("Debris"):AddItem(BE1, 3)
  1401. BE1.Rate = 255
  1402. targettorso:BreakJoints()
  1403. CreateSound("314390675", targettorso, 5, .7)
  1404. for i = 0,4.2,0.1 do
  1405. swait()
  1406. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1407. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-20)), 0.3)
  1408. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1409. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1410. RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(145), Rad(0), Rad(-15)), 0.1)
  1411. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1412. end
  1413. for i = 0,6.2,0.1 do
  1414. swait()
  1415. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15)
  1416. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3)
  1417. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1418. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1419. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1)
  1420. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1421. end
  1422. CreateSound("541909763", targettorso, 5, .8)
  1423. weldHead01:Destroy()
  1424. Head01.CanCollide = true
  1425. local bodyVelocity2 = Create("BodyVelocity")({
  1426. velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50,
  1427. P = 5000,
  1428. maxForce = Vector3.new(8000, 8000, 8000),
  1429. Parent = Head01
  1430. })
  1431. game:GetService("Debris"):AddItem(bodyVelocity2, 0.05)
  1432. for i = 0,6.2,0.1 do
  1433. swait()
  1434. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1435. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3)
  1436. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1437. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1438. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1)
  1439. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1)
  1440. end
  1441. targettorso.Anchored = false
  1442. attack = false
  1443. hum.WalkSpeed = 16
  1444. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1445. end
  1446. end
  1447.  
  1448. function Good_Bye()
  1449. local target = nil
  1450. local targettorso = nil
  1451. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1452. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1453. target = mouse.Target.Parent.Humanoid
  1454. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1455. targethead = mouse.Target.Parent:FindFirstChild("Head")
  1456. end
  1457. end
  1458. if target ~= nil then
  1459. targettorso.Anchored = true
  1460. attack = true
  1461. hum.WalkSpeed = 0
  1462. root.CFrame = targettorso.CFrame * CF(0,0,3)
  1463. for i = 0,6.2,0.1 do
  1464. swait()
  1465. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.15)
  1466. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(45)), 0.3)
  1467. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1468. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1469. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(25)), 0.1)
  1470. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1471. end
  1472. local BloodColor = Color3.new(1, 0, 0)
  1473. local PE1 = Blood1:Clone()
  1474. local PE2 = Blood1:Clone()
  1475. local Heart = Instance.new("Part")
  1476. Heart.Parent = workspace
  1477. Heart.Size = Vector3.new(1, 1, 1)
  1478. Heart.Archivable = true
  1479. Heart.Transparency = 0
  1480. Heart.CanCollide = false
  1481. Heart.BrickColor = BrickColor.new("Really red")
  1482. Heart.Material = "Granite"
  1483. Heart.CanCollide = true
  1484. local weld1Heart = Instance.new("Weld")
  1485. weld1Heart.Parent = ra
  1486. weld1Heart.Part0 = ra
  1487. weld1Heart.Part1 = Heart
  1488. weld1Heart.C1 = CFrame.new(0, 1.3, 0)
  1489. CreateSound("429400881", targettorso, 5, 1)
  1490. CreateSound("131038747", targettorso, 7, 1)
  1491. PE1.Parent = ra
  1492. PE2.Parent = Heart
  1493. game:GetService("Debris"):AddItem(PE1, 3)
  1494. game:GetService("Debris"):AddItem(weld1Heart, 1.5)
  1495. game:GetService("Debris"):AddItem(Heart, 8)
  1496. for i = 0,8,0.1 do
  1497. swait()
  1498. rootj.C0 = clerp(rootj.C0, RootCF * CF(1.2, -2.5, -0.2) * angles(Rad(0), Rad(0), Rad(40)), 0.15)
  1499. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(-45)), 0.3)
  1500. RH.C0 = clerp(RH.C0, CF(1, -0.8, -0.4) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1501. LH.C0 = clerp(LH.C0, CF(-1, -0.8, -0.2) * LHCF * angles(Rad(-5), Rad(0), Rad(56)), 0.15)
  1502. RW.C0 = clerp(RW.C0, CF(1.5, 0.51 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(40)), 0.1)
  1503. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1504. end
  1505. targettorso:BreakJoints()
  1506. for i = 0,9,0.1 do
  1507. swait()
  1508. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1509. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-20)), 0.3)
  1510. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1511. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1512. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1)
  1513. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1)
  1514. end
  1515. targettorso.Anchored = false
  1516. attack = false
  1517. hum.WalkSpeed = 16
  1518. root.CFrame = targettorso.CFrame * CF(0,0,3.4)
  1519. end
  1520. end
  1521.  
  1522. function Taunt()
  1523. attack = true
  1524. hum.WalkSpeed = 0
  1525. CreateSound("290084602", tors, 10, 1)
  1526. for i = 0,6.2,0.1 do
  1527. swait()
  1528. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1529. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  1530. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1531. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1532. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
  1533. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
  1534. end
  1535. for i = 0,6.2,0.1 do
  1536. swait()
  1537. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1538. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1539. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1540. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1541. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1542. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1543. end
  1544. attack = false
  1545. hum.WalkSpeed = 16
  1546. end
  1547. -------------------------------------------------------
  1548. --End Attacks N Stuff--
  1549. -------------------------------------------------------
  1550. mouse.KeyDown:connect(function(key)
  1551. if attack == false then
  1552. if key == 'e' then
  1553. ByeBye()
  1554. elseif key == 'q' then
  1555. Sayonara()
  1556. elseif key == 'r' then
  1557. AlohaMyFriend()
  1558. elseif key == 'f' then
  1559. Good_Bye()
  1560. elseif key == 't' then
  1561. Taunt()
  1562. end
  1563. end
  1564. end)
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571. -------------------------------------------------------
  1572. --Start Animations--
  1573. -------------------------------------------------------
  1574. local equipped = false
  1575. local idle = 0
  1576. local change = 1
  1577. local val = 0
  1578. local toim = 0
  1579. local idleanim = 0.4
  1580. hum.Animator.Parent = nil
  1581. while true do
  1582. swait()
  1583. sine = sine + change
  1584.  
  1585. Music.Parent = char
  1586. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1587. local velderp = root.Velocity.y
  1588. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1589. if equipped == true or equipped == false then
  1590. if attack == false then
  1591. idle = idle + 1
  1592. else
  1593. idle = 0
  1594. end
  1595. if 1 < root.Velocity.y and hitfloor == nil then
  1596. Anim = "Jump"
  1597. if attack == false then
  1598. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1599. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1600. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1601. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1602. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1603. RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1604. end
  1605. elseif -1 > root.Velocity.y and hitfloor == nil then
  1606. Anim = "Fall"
  1607. if attack == false then
  1608. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1609. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1610. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1611. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1612. LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1613. RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1614. end
  1615. elseif torvel < 1 and hitfloor ~= nil then
  1616. Anim = "Idle"
  1617. change = 1
  1618. if attack == false then
  1619. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(0)), 0.15)
  1620. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3)
  1621. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
  1622. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-7), Rad(0), Rad(-5)), 0.15)
  1623. RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10 + 5 * Sin(sine/ 20))), 0.1)
  1624. LW.C0 = clerp(LW.C0, CF(-1.4, 0.5 + 0.10 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10 - 5 * Sin(sine/ 20))), 0.1)
  1625. end
  1626. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1627. Anim = "Walk"
  1628. change = 1
  1629. if attack == false then
  1630. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1631. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1632. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1633. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1634. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1635. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1636. end
  1637. end
  1638. end
  1639. if 0 < #Effects then
  1640. for e = 1, #Effects do
  1641. if Effects[e] ~= nil then
  1642. local Thing = Effects[e]
  1643. if Thing ~= nil then
  1644. local Part = Thing[1]
  1645. local Mode = Thing[2]
  1646. local Delay = Thing[3]
  1647. local IncX = Thing[4]
  1648. local IncY = Thing[5]
  1649. local IncZ = Thing[6]
  1650. if 1 >= Thing[1].Transparency then
  1651. if Thing[2] == "Block1" then
  1652. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1653. local Mesh = Thing[1].Mesh
  1654. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1655. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1656. elseif Thing[2] == "Block2" then
  1657. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1658. local Mesh = Thing[7]
  1659. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1660. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1661. elseif Thing[2] == "Block3" then
  1662. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1663. local Mesh = Thing[7]
  1664. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1665. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1666. elseif Thing[2] == "Cylinder" then
  1667. local Mesh = Thing[1].Mesh
  1668. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1669. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1670. elseif Thing[2] == "Blood" then
  1671. local Mesh = Thing[7]
  1672. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1673. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1674. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1675. elseif Thing[2] == "Elec" then
  1676. local Mesh = Thing[1].Mesh
  1677. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1678. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1679. elseif Thing[2] == "Disappear" then
  1680. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1681. elseif Thing[2] == "Shatter" then
  1682. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1683. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1684. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1685. Thing[6] = Thing[6] + Thing[5]
  1686. end
  1687. else
  1688. Part.Parent = nil
  1689. table.remove(Effects, e)
  1690. end
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696. -------------------------------------------------------
  1697. --End Animations And Script--
  1698. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement