Advertisement
Insanity_Mark

020

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