Gametoy

1

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