Advertisement
Kiutb

Untitled

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