Advertisement
Rawscript

Untitled

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