Advertisement
Godzillagamerzz10

FE Bye Bye

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