Advertisement
PasterXIV

Untitled

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