foxy_game4

yes

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