Advertisement
mememasterYT

DisgustingTea FE

Apr 12th, 2019
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------------------
  2. --[[ Name : CoffeeCopter ]]--
  3. --[[ Description : Based off an old name. ]]--
  4. --[[ \ None / ]]--
  5. -------------------------------------------------------
  6. --A script By Creterisk/makhail07
  7. --Discord Creterisk#2958
  8. -------------------------------------------------------
  9.  
  10. --Everything is Meaningless.....
  11.  
  12. wait(1 / 60)
  13. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  14. --hi
  15. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  16. do
  17. print("FE Compatibility code by Mokiros")
  18. script.Parent = Player.Character
  19.  
  20. --RemoteEvent for communicating
  21. local Event = Instance.new("RemoteEvent")
  22. Event.Name = "UserInput_Event"
  23.  
  24. --Fake event to make stuff like Mouse.KeyDown work
  25. local function fakeEvent()
  26. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  27. t.connect = t.Connect
  28. return t
  29. end
  30.  
  31. --Creating fake input objects with fake variables
  32. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function te(self,ev,...)
  42. local t = m[ev]
  43. if t and t._fakeEvent and t.Function then
  44. t.Function(...)
  45. end
  46. end
  47. m.TrigEvent = te
  48. UIS.TrigEvent = te
  49.  
  50. Event.OnServerEvent:Connect(function(plr,io)
  51. if plr~=Player then return end
  52. if io.isMouse then
  53. m.Target = io.Target
  54. m.Hit = io.Hit
  55. else
  56. local b = io.UserInputState == Enum.UserInputState.Begin
  57. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  58. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  59. end
  60. for _,t in pairs(CAS.Actions) do
  61. for _,k in pairs(t.Keys) do
  62. if k==io.KeyCode then
  63. t.Function(t.Name,io.UserInputState,io)
  64. end
  65. end
  66. end
  67. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  68. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  69. end
  70. end)
  71. Event.Parent = NLS([==[
  72. local Player = game:GetService("Players").LocalPlayer
  73. local Event = script:WaitForChild("UserInput_Event")
  74.  
  75. local UIS = game:GetService("UserInputService")
  76. local input = function(io,a)
  77. if a then return end
  78. --Since InputObject is a client-side instance, we create and pass table instead
  79. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  80. end
  81. UIS.InputBegan:Connect(input)
  82. UIS.InputEnded:Connect(input)
  83.  
  84. local Mouse = Player:GetMouse()
  85. local h,t
  86. --Give the server mouse data 30 times every second, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. while wait(1/30) do
  89. if h~=Mouse.Hit or t~=Mouse.Target then
  90. h,t=Mouse.Hit,Mouse.Target
  91. Event:FireServer({isMouse=true,Target=t,Hit=h})
  92. end
  93. end]==],Player.Character)
  94. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  95. end
  96.  
  97. local plr = owner
  98. print('Local User is '..plr.Name)
  99. print('CoffeeCopter Loaded')
  100. print([[
  101. I honestly, don't know why I made this,
  102. but it's a simple script, so I don't really care much about it.
  103.  
  104. Controls :
  105. Y - Sound Taunt ( Random sounds )
  106. T - Taunt ( Random Sentences )
  107. Q - Sitt
  108. Click - Sipp
  109. ]])
  110. local char = plr.character
  111. local hum = char:FindFirstChildOfClass'Humanoid'
  112. local hed = char.Head
  113. local root = char:FindFirstChild'HumanoidRootPart'
  114. local rootj = root.RootJoint
  115. local tors = char.Torso
  116. local ra = char["Right Arm"]
  117. local la = char["Left Arm"]
  118. local rl = char["Right Leg"]
  119. local ll = char["Left Leg"]
  120. local neck = tors["Neck"]
  121. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  122. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  123. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  124. local maincolor = BrickColor.new("Institutional white")
  125. -------------------------------------------------------
  126. --Start Good Stuff--
  127. -------------------------------------------------------
  128. cam = game.Workspace.CurrentCamera
  129. CF = CFrame.new
  130. angles = CFrame.Angles
  131. attack = false
  132. Euler = CFrame.fromEulerAnglesXYZ
  133. Rad = math.rad
  134. IT = Instance.new
  135. BrickC = BrickColor.new
  136. Cos = math.cos
  137. Acos = math.acos
  138. Sin = math.sin
  139. Asin = math.asin
  140. Abs = math.abs
  141. Mrandom = math.random
  142. Floor = math.floor
  143. -------------------------------------------------------
  144. --End Good Stuff--
  145. -------------------------------------------------------
  146. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  147. RSH, LSH = nil, nil
  148. RW = Instance.new("Weld")
  149. LW = Instance.new("Weld")
  150. RH = tors["Right Hip"]
  151. LH = tors["Left Hip"]
  152. RSH = tors["Right Shoulder"]
  153. LSH = tors["Left Shoulder"]
  154. RSH.Parent = nil
  155. LSH.Parent = nil
  156. RW.Name = "RW"
  157. RW.Part0 = tors
  158. RW.C0 = CF(1.5, 0.5, 0)
  159. RW.C1 = CF(0, 0.5, 0)
  160. RW.Part1 = ra
  161. RW.Parent = tors
  162. LW.Name = "LW"
  163. LW.Part0 = tors
  164. LW.C0 = CF(-1.5, 0.5, 0)
  165. LW.C1 = CF(0, 0.5, 0)
  166. LW.Part1 = la
  167. LW.Parent = tors
  168. Effects = {}
  169. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  170. local wld = Instance.new("Weld", wp1)
  171. wld.Part0 = wp0
  172. wld.Part1 = wp1
  173. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  174. end
  175. newWeld(tors, ll, -0.5, -1, 0)
  176. ll.Weld.C1 = CFrame.new(0, 1, 0)
  177. newWeld(tors, rl, 0.5, -1, 0)
  178. rl.Weld.C1 = CFrame.new(0, 1, 0)
  179. -------------------------------------------------------
  180. --Start HeartBeat--
  181. -------------------------------------------------------
  182. ArtificialHB = Instance.new("BindableEvent", script)
  183. ArtificialHB.Name = "Heartbeat"
  184. script:WaitForChild("Heartbeat")
  185.  
  186. frame = 1 / 60
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190.  
  191.  
  192. lastframe = tick()
  193. script.Heartbeat:Fire()
  194.  
  195.  
  196. game:GetService("RunService").Heartbeat:connect(function(s, p)
  197. tf = tf + s
  198. if tf >= frame then
  199. if allowframeloss then
  200. script.Heartbeat:Fire()
  201. lastframe = tick()
  202. else
  203. for i = 1, math.floor(tf / frame) do
  204. script.Heartbeat:Fire()
  205. end
  206. lastframe = tick()
  207. end
  208. if tossremainder then
  209. tf = 0
  210. else
  211. tf = tf - frame * math.floor(tf / frame)
  212. end
  213. end
  214. end)
  215. -------------------------------------------------------
  216. --End HeartBeat--
  217. -------------------------------------------------------
  218.  
  219. -------------------------------------------------------
  220. --Start Important Functions--
  221. -------------------------------------------------------
  222. function swait(num)
  223. if num == 0 or num == nil then
  224. game:service("RunService").Stepped:wait(0)
  225. else
  226. for i = 0, num do
  227. game:service("RunService").Stepped:wait(0)
  228. end
  229. end
  230. end
  231. function thread(f)
  232. coroutine.resume(coroutine.create(f))
  233. end
  234. function clerp(a, b, t)
  235. local qa = {
  236. QuaternionFromCFrame(a)
  237. }
  238. local qb = {
  239. QuaternionFromCFrame(b)
  240. }
  241. local ax, ay, az = a.x, a.y, a.z
  242. local bx, by, bz = b.x, b.y, b.z
  243. local _t = 1 - t
  244. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  245. end
  246. function QuaternionFromCFrame(cf)
  247. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  248. local trace = m00 + m11 + m22
  249. if trace > 0 then
  250. local s = math.sqrt(1 + trace)
  251. local recip = 0.5 / s
  252. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  253. else
  254. local i = 0
  255. if m00 < m11 then
  256. i = 1
  257. end
  258. if m22 > (i == 0 and m00 or m11) then
  259. i = 2
  260. end
  261. if i == 0 then
  262. local s = math.sqrt(m00 - m11 - m22 + 1)
  263. local recip = 0.5 / s
  264. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  265. elseif i == 1 then
  266. local s = math.sqrt(m11 - m22 - m00 + 1)
  267. local recip = 0.5 / s
  268. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  269. elseif i == 2 then
  270. local s = math.sqrt(m22 - m00 - m11 + 1)
  271. local recip = 0.5 / s
  272. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  273. end
  274. end
  275. end
  276. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  277. local xs, ys, zs = x + x, y + y, z + z
  278. local wx, wy, wz = w * xs, w * ys, w * zs
  279. local xx = x * xs
  280. local xy = x * ys
  281. local xz = x * zs
  282. local yy = y * ys
  283. local yz = y * zs
  284. local zz = z * zs
  285. 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))
  286. end
  287. function QuaternionSlerp(a, b, t)
  288. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  289. local startInterp, finishInterp
  290. if cosTheta >= 1.0E-4 then
  291. if 1 - cosTheta > 1.0E-4 then
  292. local theta = math.acos(cosTheta)
  293. local invSinTheta = 1 / Sin(theta)
  294. startInterp = Sin((1 - t) * theta) * invSinTheta
  295. finishInterp = Sin(t * theta) * invSinTheta
  296. else
  297. startInterp = 1 - t
  298. finishInterp = t
  299. end
  300. elseif 1 + cosTheta > 1.0E-4 then
  301. local theta = math.acos(-cosTheta)
  302. local invSinTheta = 1 / Sin(theta)
  303. startInterp = Sin((t - 1) * theta) * invSinTheta
  304. finishInterp = Sin(t * theta) * invSinTheta
  305. else
  306. startInterp = t - 1
  307. finishInterp = t
  308. end
  309. 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
  310. end
  311. function rayCast(Position, Direction, Range, Ignore)
  312. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  313. end
  314. local RbxUtility = LoadLibrary("RbxUtility")
  315. local Create = RbxUtility.Create
  316.  
  317. -------------------------------------------------------
  318. --Start Damage Function--
  319. -------------------------------------------------------
  320. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  321. if hit.Parent == nil then
  322. return
  323. end
  324. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  325. for _, v in pairs(hit.Parent:children()) do
  326. if v:IsA("Humanoid") then
  327. h = v
  328. end
  329. end
  330. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  331.  
  332. hit.Parent:FindFirstChild("Head"):BreakJoints()
  333. end
  334.  
  335. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  336. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  337. if hit.Parent.DebounceHit.Value == true then
  338. return
  339. end
  340. end
  341. if insta == true then
  342. hit.Parent:FindFirstChild("Head"):BreakJoints()
  343. end
  344. local c = Create("ObjectValue"){
  345. Name = "creator",
  346. Value = game:service("Players").LocalPlayer,
  347. Parent = h,
  348. }
  349. game:GetService("Debris"):AddItem(c, .5)
  350. if HitSound ~= nil and HitPitch ~= nil then
  351. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  352. end
  353. local Damage = math.random(minim, maxim)
  354. local blocked = false
  355. local block = hit.Parent:findFirstChild("Block")
  356. if block ~= nil then
  357. if block.className == "IntValue" then
  358. if block.Value > 0 then
  359. blocked = true
  360. block.Value = block.Value - 1
  361. print(block.Value)
  362. end
  363. end
  364. end
  365. if blocked == false then
  366. h.Health = h.Health - Damage
  367. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  368. else
  369. h.Health = h.Health - (Damage / 2)
  370. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  371. end
  372. if Type == "Knockdown" then
  373. local hum = hit.Parent.Humanoid
  374. hum.PlatformStand = true
  375. coroutine.resume(coroutine.create(function(HHumanoid)
  376. swait(1)
  377. HHumanoid.PlatformStand = false
  378. end), hum)
  379. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  380. local bodvol = Create("BodyVelocity"){
  381. velocity = angle * knockback,
  382. P = 5000,
  383. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  384. Parent = hit,
  385. }
  386. local rl = Create("BodyAngularVelocity"){
  387. P = 3000,
  388. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  389. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  390. Parent = hit,
  391. }
  392. game:GetService("Debris"):AddItem(bodvol, .5)
  393. game:GetService("Debris"):AddItem(rl, .5)
  394. elseif Type == "Normal" then
  395. local vp = Create("BodyVelocity"){
  396. P = 500,
  397. maxForce = Vector3.new(math.huge, 0, math.huge),
  398. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  399. }
  400. if knockback > 0 then
  401. vp.Parent = hit.Parent.Torso
  402. end
  403. game:GetService("Debris"):AddItem(vp, .5)
  404. elseif Type == "Up" then
  405. local bodyVelocity = Create("BodyVelocity"){
  406. velocity = Vector3.new(0, 20, 0),
  407. P = 5000,
  408. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  409. Parent = hit,
  410. }
  411. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  412. elseif Type == "DarkUp" then
  413. coroutine.resume(coroutine.create(function()
  414. for i = 0, 1, 0.1 do
  415. swait()
  416. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  417. end
  418. end))
  419. local bodyVelocity = Create("BodyVelocity"){
  420. velocity = Vector3.new(0, 20, 0),
  421. P = 5000,
  422. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  423. Parent = hit,
  424. }
  425. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  426. elseif Type == "Snare" then
  427. local bp = Create("BodyPosition"){
  428. P = 2000,
  429. D = 100,
  430. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  431. position = hit.Parent.Torso.Position,
  432. Parent = hit.Parent.Torso,
  433. }
  434. game:GetService("Debris"):AddItem(bp, 1)
  435. elseif Type == "Freeze" then
  436. local BodPos = Create("BodyPosition"){
  437. P = 50000,
  438. D = 1000,
  439. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  440. position = hit.Parent.Torso.Position,
  441. Parent = hit.Parent.Torso,
  442. }
  443. local BodGy = Create("BodyGyro") {
  444. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  445. P = 20e+003,
  446. Parent = hit.Parent.Torso,
  447. cframe = hit.Parent.Torso.CFrame,
  448. }
  449. hit.Parent.Torso.Anchored = true
  450. coroutine.resume(coroutine.create(function(Part)
  451. swait(1.5)
  452. Part.Anchored = false
  453. end), hit.Parent.Torso)
  454. game:GetService("Debris"):AddItem(BodPos, 3)
  455. game:GetService("Debris"):AddItem(BodGy, 3)
  456. end
  457. local debounce = Create("BoolValue"){
  458. Name = "DebounceHit",
  459. Parent = hit.Parent,
  460. Value = true,
  461. }
  462. game:GetService("Debris"):AddItem(debounce, Delay)
  463. c = Create("ObjectValue"){
  464. Name = "creator",
  465. Value = Player,
  466. Parent = h,
  467. }
  468. game:GetService("Debris"):AddItem(c, .5)
  469. end
  470. end
  471. -------------------------------------------------------
  472. --End Damage Function--
  473. -------------------------------------------------------
  474.  
  475. -------------------------------------------------------
  476. --Start Damage Function Customization--
  477. -------------------------------------------------------
  478. function ShowDamage(Pos, Text, Time, Color)
  479. local Rate = (1 / 30)
  480. local Pos = (Pos or Vector3.new(0, 0, 0))
  481. local Text = (Text or "")
  482. local Time = (Time or 2)
  483. local Color = (Color or Color3.new(1, 0, 1))
  484. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  485. EffectPart.Anchored = true
  486. local BillboardGui = Create("BillboardGui"){
  487. Size = UDim2.new(3, 0, 3, 0),
  488. Adornee = EffectPart,
  489. Parent = EffectPart,
  490. }
  491. local TextLabel = Create("TextLabel"){
  492. BackgroundTransparency = 1,
  493. Size = UDim2.new(1, 0, 1, 0),
  494. Text = Text,
  495. Font = "Bodoni",
  496. TextColor3 = Color,
  497. TextScaled = true,
  498. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  499. Parent = BillboardGui,
  500. }
  501. game.Debris:AddItem(EffectPart, (Time))
  502. EffectPart.Parent = game:GetService("Workspace")
  503. delay(0, function()
  504. local Frames = (Time / Rate)
  505. for Frame = 1, Frames do
  506. wait(Rate)
  507. local Percent = (Frame / Frames)
  508. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  509. TextLabel.TextTransparency = Percent
  510. end
  511. if EffectPart and EffectPart.Parent then
  512. EffectPart:Destroy()
  513. end
  514. end)
  515. end
  516. -------------------------------------------------------
  517. --End Damage Function Customization--
  518. -------------------------------------------------------
  519.  
  520. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  521. for _, c in pairs(workspace:children()) do
  522. local hum = c:findFirstChild("Humanoid")
  523. if hum ~= nil then
  524. local head = c:findFirstChild("Head")
  525. if head ~= nil then
  526. local targ = head.Position - Part.Position
  527. local mag = targ.magnitude
  528. if magni >= mag and c.Name ~= plr.Name then
  529. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  530. end
  531. end
  532. end
  533. end
  534. end
  535.  
  536.  
  537. CFuncs = {
  538. Part = {
  539. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  540. local Part = Create("Part")({
  541. Parent = Parent,
  542. Reflectance = Reflectance,
  543. Transparency = Transparency,
  544. CanCollide = false,
  545. Locked = true,
  546. BrickColor = BrickColor.new(tostring(BColor)),
  547. Name = Name,
  548. Size = Size,
  549. Material = Material
  550. })
  551. RemoveOutlines(Part)
  552. return Part
  553. end
  554. },
  555. Mesh = {
  556. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  557. local Msh = Create(Mesh)({
  558. Parent = Part,
  559. Offset = OffSet,
  560. Scale = Scale
  561. })
  562. if Mesh == "SpecialMesh" then
  563. Msh.MeshType = MeshType
  564. Msh.MeshId = MeshId
  565. end
  566. return Msh
  567. end
  568. },
  569. Mesh = {
  570. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  571. local Msh = Create(Mesh)({
  572. Parent = Part,
  573. Offset = OffSet,
  574. Scale = Scale
  575. })
  576. if Mesh == "SpecialMesh" then
  577. Msh.MeshType = MeshType
  578. Msh.MeshId = MeshId
  579. end
  580. return Msh
  581. end
  582. },
  583. Weld = {
  584. Create = function(Parent, Part0, Part1, C0, C1)
  585. local Weld = Create("Weld")({
  586. Parent = Parent,
  587. Part0 = Part0,
  588. Part1 = Part1,
  589. C0 = C0,
  590. C1 = C1
  591. })
  592. return Weld
  593. end
  594. },
  595. Sound = {
  596. Create = function(id, par, vol, pit)
  597. coroutine.resume(coroutine.create(function()
  598. local S = Create("Sound")({
  599. Volume = vol,
  600. Pitch = pit or 1,
  601. SoundId = id,
  602. Parent = par or workspace
  603. })
  604. wait()
  605. S:play()
  606. game:GetService("Debris"):AddItem(S, 6)
  607. end))
  608. end
  609. },
  610. ParticleEmitter = {
  611. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  612. local fp = Create("ParticleEmitter")({
  613. Parent = Parent,
  614. Color = ColorSequence.new(Color1, Color2),
  615. LightEmission = LightEmission,
  616. Size = Size,
  617. Texture = Texture,
  618. Transparency = Transparency,
  619. ZOffset = ZOffset,
  620. Acceleration = Accel,
  621. Drag = Drag,
  622. LockedToPart = LockedToPart,
  623. VelocityInheritance = VelocityInheritance,
  624. EmissionDirection = EmissionDirection,
  625. Enabled = Enabled,
  626. Lifetime = LifeTime,
  627. Rate = Rate,
  628. Rotation = Rotation,
  629. RotSpeed = RotSpeed,
  630. Speed = Speed,
  631. VelocitySpread = VelocitySpread
  632. })
  633. return fp
  634. end
  635. }
  636. }
  637. function RemoveOutlines(part)
  638. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  639. end
  640. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  641. local Part = Create("Part")({
  642. formFactor = FormFactor,
  643. Parent = Parent,
  644. Reflectance = Reflectance,
  645. Transparency = Transparency,
  646. CanCollide = false,
  647. Locked = true,
  648. BrickColor = BrickColor.new(tostring(BColor)),
  649. Name = Name,
  650. Size = Size,
  651. Material = Material
  652. })
  653. RemoveOutlines(Part)
  654. return Part
  655. end
  656. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  657. local Msh = Create(Mesh)({
  658. Parent = Part,
  659. Offset = OffSet,
  660. Scale = Scale
  661. })
  662. if Mesh == "SpecialMesh" then
  663. Msh.MeshType = MeshType
  664. Msh.MeshId = MeshId
  665. end
  666. return Msh
  667. end
  668. function CreateWeld(Parent, Part0, Part1, C0, C1)
  669. local Weld = Create("Weld")({
  670. Parent = Parent,
  671. Part0 = Part0,
  672. Part1 = Part1,
  673. C0 = C0,
  674. C1 = C1
  675. })
  676. return Weld
  677. end
  678.  
  679.  
  680. -------------------------------------------------------
  681. --Start Effect Function--
  682. -------------------------------------------------------
  683. EffectModel = Instance.new("Model", char)
  684. Effects = {
  685. Block = {
  686. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  687. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  688. prt.Anchored = true
  689. prt.CFrame = cframe
  690. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  691. game:GetService("Debris"):AddItem(prt, 10)
  692. if Type == 1 or Type == nil then
  693. table.insert(Effects, {
  694. prt,
  695. "Block1",
  696. delay,
  697. x3,
  698. y3,
  699. z3,
  700. msh
  701. })
  702. elseif Type == 2 then
  703. table.insert(Effects, {
  704. prt,
  705. "Block2",
  706. delay,
  707. x3,
  708. y3,
  709. z3,
  710. msh
  711. })
  712. else
  713. table.insert(Effects, {
  714. prt,
  715. "Block3",
  716. delay,
  717. x3,
  718. y3,
  719. z3,
  720. msh
  721. })
  722. end
  723. end
  724. },
  725. Sphere = {
  726. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  727. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  728. prt.Anchored = true
  729. prt.CFrame = cframe
  730. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  731. game:GetService("Debris"):AddItem(prt, 10)
  732. table.insert(Effects, {
  733. prt,
  734. "Cylinder",
  735. delay,
  736. x3,
  737. y3,
  738. z3,
  739. msh
  740. })
  741. end
  742. },
  743. Cylinder = {
  744. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  745. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  746. prt.Anchored = true
  747. prt.CFrame = cframe
  748. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  749. game:GetService("Debris"):AddItem(prt, 10)
  750. table.insert(Effects, {
  751. prt,
  752. "Cylinder",
  753. delay,
  754. x3,
  755. y3,
  756. z3,
  757. msh
  758. })
  759. end
  760. },
  761. Wave = {
  762. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  763. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  764. prt.Anchored = true
  765. prt.CFrame = cframe
  766. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  767. game:GetService("Debris"):AddItem(prt, 10)
  768. table.insert(Effects, {
  769. prt,
  770. "Cylinder",
  771. delay,
  772. x3 / 60,
  773. y3 / 60,
  774. z3 / 60,
  775. msh
  776. })
  777. end
  778. },
  779. Ring = {
  780. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  781. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  782. prt.Anchored = true
  783. prt.CFrame = cframe
  784. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  785. game:GetService("Debris"):AddItem(prt, 10)
  786. table.insert(Effects, {
  787. prt,
  788. "Cylinder",
  789. delay,
  790. x3,
  791. y3,
  792. z3,
  793. msh
  794. })
  795. end
  796. },
  797. Break = {
  798. Create = function(brickcolor, cframe, x1, y1, z1)
  799. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  800. prt.Anchored = true
  801. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  802. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  803. local num = math.random(10, 50) / 1000
  804. game:GetService("Debris"):AddItem(prt, 10)
  805. table.insert(Effects, {
  806. prt,
  807. "Shatter",
  808. num,
  809. prt.CFrame,
  810. math.random() - math.random(),
  811. 0,
  812. math.random(50, 100) / 100
  813. })
  814. end
  815. },
  816. Spiral = {
  817. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  818. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  819. prt.Anchored = true
  820. prt.CFrame = cframe
  821. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  822. game:GetService("Debris"):AddItem(prt, 10)
  823. table.insert(Effects, {
  824. prt,
  825. "Cylinder",
  826. delay,
  827. x3,
  828. y3,
  829. z3,
  830. msh
  831. })
  832. end
  833. },
  834. Push = {
  835. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  836. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  837. prt.Anchored = true
  838. prt.CFrame = cframe
  839. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  840. game:GetService("Debris"):AddItem(prt, 10)
  841. table.insert(Effects, {
  842. prt,
  843. "Cylinder",
  844. delay,
  845. x3,
  846. y3,
  847. z3,
  848. msh
  849. })
  850. end
  851. }
  852. }
  853. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  854. local fp = IT("Part")
  855. fp.formFactor = formfactor
  856. fp.Parent = parent
  857. fp.Reflectance = reflectance
  858. fp.Transparency = transparency
  859. fp.CanCollide = false
  860. fp.Locked = true
  861. fp.BrickColor = brickcolor
  862. fp.Name = name
  863. fp.Size = size
  864. fp.Position = tors.Position
  865. RemoveOutlines(fp)
  866. fp.Material = "SmoothPlastic"
  867. fp:BreakJoints()
  868. return fp
  869. end
  870.  
  871. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  872. local mesh = IT(Mesh)
  873. mesh.Parent = part
  874. if Mesh == "SpecialMesh" then
  875. mesh.MeshType = meshtype
  876. if meshid ~= "nil" then
  877. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  878. end
  879. end
  880. mesh.Offset = offset
  881. mesh.Scale = scale
  882. return mesh
  883. end
  884.  
  885. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  886. local type = type
  887. local rng = Instance.new("Part", char)
  888. rng.Anchored = true
  889. rng.BrickColor = color
  890. rng.CanCollide = false
  891. rng.FormFactor = 3
  892. rng.Name = "Ring"
  893. rng.Material = "Neon"
  894. rng.Size = Vector3.new(1, 1, 1)
  895. rng.Transparency = 0
  896. rng.TopSurface = 0
  897. rng.BottomSurface = 0
  898. rng.CFrame = pos
  899. local rngm = Instance.new("SpecialMesh", rng)
  900. rngm.MeshType = MType
  901. rngm.Scale = scale
  902. local scaler2 = 1
  903. if type == "Add" then
  904. scaler2 = 1 * value
  905. elseif type == "Divide" then
  906. scaler2 = 1 / value
  907. end
  908. coroutine.resume(coroutine.create(function()
  909. for i = 0, 10 / bonuspeed, 0.1 do
  910. swait()
  911. if type == "Add" then
  912. scaler2 = scaler2 - 0.01 * value / bonuspeed
  913. elseif type == "Divide" then
  914. scaler2 = scaler2 - 0.01 / value * bonuspeed
  915. end
  916. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  917. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  918. end
  919. rng:Destroy()
  920. end))
  921. end
  922.  
  923. function Eviscerate(dude)
  924. if dude.Name ~= char then
  925. local bgf = IT("BodyGyro", dude.Head)
  926. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  927. local val = IT("BoolValue", dude)
  928. val.Name = "IsHit"
  929. local ds = coroutine.wrap(function()
  930. dude:WaitForChild("Head"):BreakJoints()
  931. wait(0.5)
  932. target = nil
  933. coroutine.resume(coroutine.create(function()
  934. for i, v in pairs(dude:GetChildren()) do
  935. if v:IsA("Accessory") then
  936. v:Destroy()
  937. end
  938. if v:IsA("Humanoid") then
  939. v:Destroy()
  940. end
  941. if v:IsA("CharacterMesh") then
  942. v:Destroy()
  943. end
  944. if v:IsA("Model") then
  945. v:Destroy()
  946. end
  947. if v:IsA("Part") or v:IsA("MeshPart") then
  948. for x, o in pairs(v:GetChildren()) do
  949. if o:IsA("Decal") then
  950. o:Destroy()
  951. end
  952. end
  953. coroutine.resume(coroutine.create(function()
  954. v.Material = "Neon"
  955. v.CanCollide = false
  956. local PartEmmit1 = IT("ParticleEmitter", v)
  957. PartEmmit1.LightEmission = 1
  958. PartEmmit1.Texture = "rbxassetid://284205403"
  959. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  960. PartEmmit1.Rate = 150
  961. PartEmmit1.Lifetime = NumberRange.new(1)
  962. PartEmmit1.Size = NumberSequence.new({
  963. NumberSequenceKeypoint.new(0, 0.75, 0),
  964. NumberSequenceKeypoint.new(1, 0, 0)
  965. })
  966. PartEmmit1.Transparency = NumberSequence.new({
  967. NumberSequenceKeypoint.new(0, 0, 0),
  968. NumberSequenceKeypoint.new(1, 1, 0)
  969. })
  970. PartEmmit1.Speed = NumberRange.new(0, 0)
  971. PartEmmit1.VelocitySpread = 30000
  972. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  973. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  974. local BodPoss = IT("BodyPosition", v)
  975. BodPoss.P = 3000
  976. BodPoss.D = 1000
  977. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  978. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  979. v.Color = maincolor.Color
  980. coroutine.resume(coroutine.create(function()
  981. for i = 0, 49 do
  982. swait(1)
  983. v.Transparency = v.Transparency + 0.08
  984. end
  985. wait(0.5)
  986. PartEmmit1.Enabled = false
  987. wait(3)
  988. v:Destroy()
  989. dude:Destroy()
  990. end))
  991. end))
  992. end
  993. end
  994. end))
  995. end)
  996. ds()
  997. end
  998. end
  999.  
  1000. function FindNearestHead(Position, Distance, SinglePlayer)
  1001. if SinglePlayer then
  1002. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1003. end
  1004. local List = {}
  1005. for i, v in pairs(workspace:GetChildren()) do
  1006. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1007. table.insert(List, v)
  1008. end
  1009. end
  1010. return List
  1011. end
  1012.  
  1013. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1014. local type = type
  1015. local rng = Instance.new("Part", char)
  1016. rng.Anchored = true
  1017. rng.BrickColor = color
  1018. rng.CanCollide = false
  1019. rng.FormFactor = 3
  1020. rng.Name = "Ring"
  1021. rng.Material = "Neon"
  1022. rng.Size = Vector3.new(1, 1, 1)
  1023. rng.Transparency = 0
  1024. rng.TopSurface = 0
  1025. rng.BottomSurface = 0
  1026. rng.CFrame = pos
  1027. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1028. local rngm = Instance.new("SpecialMesh", rng)
  1029. rngm.MeshType = MType
  1030. rngm.Scale = Vector3.new(x1, y1, z1)
  1031. local scaler2 = 1
  1032. local speeder = FastSpeed
  1033. if type == "Add" then
  1034. scaler2 = 1 * value
  1035. elseif type == "Divide" then
  1036. scaler2 = 1 / value
  1037. end
  1038. coroutine.resume(coroutine.create(function()
  1039. for i = 0, 10 / bonuspeed, 0.1 do
  1040. swait()
  1041. if type == "Add" then
  1042. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1043. elseif type == "Divide" then
  1044. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1045. end
  1046. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1047. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1048. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1049. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1050. end
  1051. rng:Destroy()
  1052. end))
  1053. end
  1054.  
  1055. function SoulSteal(dude)
  1056. if dude.Name ~= char then
  1057. local bgf = IT("BodyGyro", dude.Head)
  1058. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1059. local val = IT("BoolValue", dude)
  1060. val.Name = "IsHit"
  1061. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1062. local soulst = coroutine.wrap(function()
  1063. local soul = Instance.new("Part",dude)
  1064. soul.Size = Vector3.new(1,1,1)
  1065. soul.CanCollide = false
  1066. soul.Anchored = false
  1067. soul.Position = torso.Position
  1068. soul.Transparency = 1
  1069. local PartEmmit1 = IT("ParticleEmitter", soul)
  1070. PartEmmit1.LightEmission = 1
  1071. PartEmmit1.Texture = "rbxassetid://569507414"
  1072. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1073. PartEmmit1.Rate = 250
  1074. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1075. PartEmmit1.Size = NumberSequence.new({
  1076. NumberSequenceKeypoint.new(0, 1, 0),
  1077. NumberSequenceKeypoint.new(1, 0, 0)
  1078. })
  1079. PartEmmit1.Transparency = NumberSequence.new({
  1080. NumberSequenceKeypoint.new(0, 0, 0),
  1081. NumberSequenceKeypoint.new(1, 1, 0)
  1082. })
  1083. PartEmmit1.Speed = NumberRange.new(0, 0)
  1084. PartEmmit1.VelocitySpread = 30000
  1085. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1086. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1087. local BodPoss = IT("BodyPosition", soul)
  1088. BodPoss.P = 3000
  1089. BodPoss.D = 1000
  1090. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1091. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1092. wait(1.6)
  1093. soul.Touched:connect(function(hit)
  1094. if hit.Parent == char then
  1095. soul:Destroy()
  1096. end
  1097. end)
  1098. wait(1.2)
  1099. while soul do
  1100. swait()
  1101. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1102. BodPoss.Position = tors.Position
  1103. end
  1104. end)
  1105. soulst()
  1106. end
  1107. end
  1108. function FaceMouse()
  1109. local Cam = workspace.CurrentCamera
  1110. return {
  1111. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1112. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1113. }
  1114. end
  1115. Effects = {
  1116. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  1117. local p = Instance.new("Part",EffectModel)
  1118. p.BrickColor = BrickColor.new(colour)
  1119. p.Size = partsize
  1120. p.Anchored = true
  1121. p.CanCollide = false
  1122. p.Material = matr
  1123. p.CFrame = cf
  1124. if inverse == true then
  1125. p.Transparency = 1
  1126. else
  1127. p.Transparency = 0
  1128. end
  1129. local m = Instance.new("BlockMesh",p)
  1130. m.Scale = meshstart
  1131. coroutine.wrap(function()
  1132. for i = 0, 1, factor do
  1133. swait()
  1134. if inverse == true then
  1135. p.Transparency = 1-i
  1136. else
  1137. p.Transparency = i
  1138. end
  1139. m.Scale = m.Scale + meshadd
  1140. if spin == true then
  1141. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1142. end
  1143. end
  1144. p:Destroy()
  1145. end)()
  1146. return p
  1147. end,
  1148. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1149. local p = Instance.new("Part",EffectModel)
  1150. p.BrickColor = BrickColor.new(colour)
  1151. p.Size = partsize
  1152. p.Anchored = true
  1153. p.CanCollide = false
  1154. p.Material = matr
  1155. p.CFrame = cf
  1156. if inverse == true then
  1157. p.Transparency = 1
  1158. else
  1159. p.Transparency = 0
  1160. end
  1161. local m = Instance.new("SpecialMesh",p)
  1162. m.MeshType = "Sphere"
  1163. m.Scale = meshstart
  1164. coroutine.wrap(function()
  1165. for i=0,1,factor do
  1166. swait()
  1167. if inverse == true then
  1168. p.Transparency = 1-i
  1169. else
  1170. p.Transparency = i
  1171. end
  1172. m.Scale = m.Scale + meshadd
  1173. end
  1174. p:Destroy()
  1175. end)()
  1176. return p
  1177. end,
  1178.  
  1179. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1180. local p = Instance.new("Part",EffectModel)
  1181. p.BrickColor = BrickColor.new(colour)
  1182. p.Size = partsize
  1183. p.Anchored = true
  1184. p.CanCollide = false
  1185. p.Material = matr
  1186. p.CFrame = cf
  1187. if inverse == true then
  1188. p.Transparency = 1
  1189. else
  1190. p.Transparency = 0
  1191. end
  1192. local m = Instance.new("CylinderMesh",p)
  1193. m.Scale = meshstart
  1194. coroutine.wrap(function()
  1195. for i=0,1,factor do
  1196. swait()
  1197. if inverse == true then
  1198. p.Transparency = 1-i
  1199. else
  1200. p.Transparency = i
  1201. end
  1202. m.Scale = m.Scale + meshadd
  1203. end
  1204. p:Destroy()
  1205. end)()
  1206. return p
  1207. end,
  1208.  
  1209. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  1210. local p = Instance.new("Part",EffectModel)
  1211. p.BrickColor = BrickColor.new(colour)
  1212. p.Size = Vector3.new()
  1213. p.Anchored = true
  1214. p.CanCollide = false
  1215. p.CFrame = cf
  1216. if inverse == true then
  1217. p.Transparency = 1
  1218. else
  1219. p.Transparency = 0
  1220. end
  1221. local m = Instance.new("SpecialMesh",p)
  1222. m.MeshId = "rbxassetid://20329976"
  1223. m.Scale = meshstart
  1224. coroutine.wrap(function()
  1225. for i=0,1,factor do
  1226. swait()
  1227. if inverse == true then
  1228. p.Transparency = 1-i
  1229. else
  1230. p.Transparency = i
  1231. end
  1232. m.Scale = m.Scale + meshadd
  1233. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  1234. end
  1235. p:Destroy()
  1236. end)()
  1237. return p
  1238. end,
  1239.  
  1240. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  1241. local p = Instance.new("Part",EffectModel)
  1242. p.BrickColor = BrickColor.new(colour)
  1243. p.Size = Vector3.new()
  1244. p.Anchored = true
  1245. p.CanCollide = false
  1246. p.CFrame = cf
  1247. if inverse == true then
  1248. p.Transparency = 1
  1249. else
  1250. p.Transparency = 0
  1251. end
  1252. local m = Instance.new("SpecialMesh",p)
  1253. m.MeshId = "rbxassetid://3270017"
  1254. m.Scale = meshstart
  1255. coroutine.wrap(function()
  1256. for i=0,1,factor do
  1257. swait()
  1258. if inverse == true then
  1259. p.Transparency = 1-i
  1260. else
  1261. p.Transparency = i
  1262. end
  1263. m.Scale = m.Scale + meshadd
  1264. end
  1265. p:Destroy()
  1266. end)()
  1267. return p
  1268. end,
  1269.  
  1270. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  1271. local p = Instance.new("Part",EffectModel)
  1272. p.BrickColor = BrickColor.new(colour)
  1273. p.Size = Vector3.new()
  1274. p.Anchored = true
  1275. p.CanCollide = false
  1276. p.CFrame = cf
  1277. if inverse == true then
  1278. p.Transparency = 1
  1279. else
  1280. p.Transparency = 0
  1281. end
  1282. local m = Instance.new("SpecialMesh",p)
  1283. m.MeshId = meshid
  1284. m.TextureId = textid
  1285. m.Scale = meshstart
  1286. coroutine.wrap(function()
  1287. for i=0,1,factor do
  1288. swait()
  1289. if inverse == true then
  1290. p.Transparency = 1-i
  1291. else
  1292. p.Transparency = i
  1293. end
  1294. m.Scale = m.Scale + meshadd
  1295. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  1296. end
  1297. p:Destroy()
  1298. end)()
  1299. return p
  1300. end,
  1301.  
  1302. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  1303. local p = Instance.new("Part",EffectModel)
  1304. p.BrickColor = BrickColor.new(colour)
  1305. p.Size = partsize
  1306. p.Anchored = true
  1307. p.CanCollide = false
  1308. p.Material = matr
  1309. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1310. if inverse == true then
  1311. p.Transparency = 1
  1312. else
  1313. p.Transparency = 0
  1314. end
  1315. local m = Instance.new("SpecialMesh",p)
  1316. m.MeshType = "Sphere"
  1317. m.Scale = meshstart
  1318. coroutine.wrap(function()
  1319. for i=0,1,factor do
  1320. swait()
  1321. if inverse == true then
  1322. p.Transparency = 1-i
  1323. else
  1324. p.Transparency = i
  1325. end
  1326. m.Scale = m.Scale + meshadd
  1327. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  1328. end
  1329. p:Destroy()
  1330. end)()
  1331. return p
  1332. end,
  1333.  
  1334. }
  1335. -------------------------------------------------------
  1336. --End Effect Function--
  1337. -------------------------------------------------------
  1338. function Cso(ID, PARENT, VOLUME, PITCH)
  1339. local NSound = nil
  1340. coroutine.resume(coroutine.create(function()
  1341. NSound = IT("Sound", PARENT)
  1342. NSound.Volume = VOLUME
  1343. NSound.Pitch = PITCH
  1344. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1345. swait()
  1346. NSound:play()
  1347. game:GetService("Debris"):AddItem(NSound, 10)
  1348. end))
  1349. return NSound
  1350. end
  1351. function CamShake(Length, Intensity)
  1352. coroutine.resume(coroutine.create(function()
  1353. local intensity = 1 * Intensity
  1354. local rotM = 0.01 * Intensity
  1355. for i = 0, Length, 0.1 do
  1356. swait()
  1357. intensity = intensity - 0.05 * Intensity / Length
  1358. rotM = rotM - 5.0E-4 * Intensity / Length
  1359. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1360. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1361. end
  1362. hum.CameraOffset = Vector3.new(0, 0, 0)
  1363. end))
  1364. end
  1365. NewInstance = function(instance,parent,properties)
  1366. local inst = Instance.new(instance)
  1367. inst.Parent = parent
  1368. if(properties)then
  1369. for i,v in next, properties do
  1370. pcall(function() inst[i] = v end)
  1371. end
  1372. end
  1373. return inst;
  1374. end
  1375. hum.MaxHealth = 1.0E298
  1376. hum.Health = 1.0E298
  1377. game:GetService("RunService"):BindToRenderStep("HOT", 0, function()
  1378. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  1379. hum.MaxHealth = 1.0E298
  1380. hum.Health = 1.0E298
  1381. end
  1382. end)
  1383. function chatfunc(text, color)
  1384. local chat = coroutine.wrap(function()
  1385. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1386. char:FindFirstChild("TalkingBillBoard"):destroy()
  1387. end
  1388. local naeeym2 = Instance.new("BillboardGui", char)
  1389. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1390. naeeym2.StudsOffset = Vector3.new(0, 1.5, 0)
  1391. naeeym2.Adornee = hed
  1392. naeeym2.Name = "TalkingBillBoard"
  1393. local tecks2 = Instance.new("TextLabel", naeeym2)
  1394. tecks2.BackgroundTransparency = 1
  1395. tecks2.BorderSizePixel = 0
  1396. tecks2.Text = ""
  1397. tecks2.Font = "Fantasy"
  1398. tecks2.TextSize = 30
  1399. tecks2.TextStrokeTransparency = 0
  1400. tecks2.TextColor3 = color
  1401. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1402. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1403. for i = 1, string.len(text) do
  1404. CFuncs.Sound.Create("rbxassetid://418252437", hed, 1, Mrandom(8,12)/15)
  1405. tecks2.Text = string.sub(text, 1, i)
  1406. swait(1)
  1407. end
  1408. wait(1)
  1409. naeeym2:Destroy()
  1410. end)
  1411. chat()
  1412. end
  1413. New = function(Object, Parent, Name, Data)
  1414. local Object = Instance.new(Object)
  1415. for Index, Value in pairs(Data or {}) do
  1416. Object[Index] = Value
  1417. end
  1418. Object.Parent = Parent
  1419. Object.Name = Name
  1420. return Object
  1421. end
  1422.  
  1423. Cupo = New("Model",char,"Cupo",{})
  1424. Handle = New("Part",Cupo,"Handle",{BrickColor = BrickColor.new("Black"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.232986, 1.05098712, -175.132965, -2.66358597e-06, 0.50003612, -0.866004288, 0.999999762, 3.72325388e-08, -3.4009206e-06, -2.13981866e-06, -0.866004527, -0.500036418),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1425. Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  1426. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Black"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.482986, 1.05098701, -174.699982, 0.866004169, -0.500036061, 4.80877497e-06, 3.40900579e-06, -4.61425361e-06, -0.999999642, 0.500036597, 0.866004586, -1.59157071e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1427. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 6),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  1428. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.866004348, 3.3928352e-06, 0.500036359, -0.500036299, -4.34130516e-06, 0.866004407, 4.95926542e-06, -0.999999881, -1.81985979e-06),C1 = CFrame.new(-1.1920929e-07, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  1429. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Black"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 0.75998807, -174.699982, 0.500036061, -4.80877497e-06, 0.866004169, 4.61425361e-06, 0.999999642, 3.40900579e-06, -0.866004586, 1.59157071e-06, 0.500036597),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1430. Mesh = New("CylinderMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.200000003, 0),Scale = Vector3.new(1, 0.100000001, 1),})
  1431. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(-0.290999115, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  1432. Coffee = New("Part",Cupo,"Coffee",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 1.15998101, -174.699982, 0.500036299, -4.95926542e-06, 0.866004348, 4.34130516e-06, 0.999999881, 3.3928352e-06, -0.866004407, 1.81985979e-06, 0.500036359),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.411765, 0.25098, 0.156863),})
  1433. Mesh = New("CylinderMesh",Coffee,"Mesh",{Scale = Vector3.new(1, 1.20000005, 1),})
  1434. mot = New("Motor",Coffee,"mot",{Part0 = Coffee,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(0.108993888, -0.499977112, -1.52587891e-05, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  1435.  
  1436. local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CFrame.new(0, -1.1, -0.1) * CFrame.Angles(Rad(0), Rad(90), Rad(0))})
  1437.  
  1438. -------------------------------------------------------
  1439. --End Important Functions--
  1440. -------------------------------------------------------
  1441.  
  1442.  
  1443. -------------------------------------------------------
  1444. --Start Customization--
  1445. -------------------------------------------------------
  1446. local Player_Size = 1
  1447. if Player_Size ~= 1 then
  1448. root.Size = root.Size * Player_Size
  1449. tors.Size = tors.Size * Player_Size
  1450. hed.Size = hed.Size * Player_Size
  1451. ra.Size = ra.Size * Player_Size
  1452. la.Size = la.Size * Player_Size
  1453. rl.Size = rl.Size * Player_Size
  1454. ll.Size = ll.Size * Player_Size
  1455. ----------------------------------------------------------------------------------
  1456. rootj.Parent = root
  1457. neck.Parent = tors
  1458. RW.Parent = tors
  1459. LW.Parent = tors
  1460. RH.Parent = tors
  1461. LH.Parent = tors
  1462. ----------------------------------------------------------------------------------
  1463. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1464. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1465. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1466. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1467. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1468. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1469. ----------------------------------------------------------------------------------
  1470. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1471. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1472. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1473. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1474. --hat.Parent = Character
  1475. end
  1476. ----------------------------------------------------------------------------------
  1477. local SONG = 1128536404
  1478. local SONG2 = 0
  1479. local Music = Instance.new("Sound",tors)
  1480. Music.Volume = 2.5
  1481. Music.Looped = true
  1482. Music.Pitch = 1 --Pitcher
  1483. ----------------------------------------------------------------------------------
  1484. local equipped = false
  1485. local idle = 0
  1486. local change = 1
  1487. local val = 0
  1488. local toim = 0
  1489. local idleanim = 0.4
  1490. local sine = 0
  1491. local Sit = 1
  1492. local WasAir = false
  1493. local InAir = false
  1494. local LandTick = 0
  1495. local movelegs = false
  1496. local FF = Instance.new("ForceField",char)
  1497. FF.Visible = false
  1498. local Speed = 16
  1499. local Sitt = false
  1500. local VALUE1 = false
  1501. ----------------------------------------------------------------------------------
  1502. hum.JumpPower = 55
  1503. hum.Animator.Parent = nil
  1504. -------------------------------------------------------
  1505. --End Customization--
  1506. -------------------------------------------------------
  1507.  
  1508. wrur = Instance.new("Sound",game.Workspace.mememasterYT65910)
  1509. wrur.Volume = 2
  1510. wrur.SoundId = "rbxassetid://1451817235"
  1511.  
  1512. -------------------------------------------------------
  1513. --Start Attacks N Stuff--
  1514. -------------------------------------------------------
  1515. function AttackTemplate()
  1516. attack = true
  1517. for i = 0, 2, 0.1 do
  1518. swait()
  1519. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  1520. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  1521. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  1522. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1523. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 + 5 * Sin(sine / 20)), Rad(10 + 5 * Sin(sine / 20))), 0.1)
  1524. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  1525. end
  1526. attack = false
  1527. end
  1528. function Taunt()
  1529. attack = true
  1530. movelegs = true
  1531. Speed = 12
  1532. local Chatty = Mrandom(1,8)
  1533. if Chatty == 1 then
  1534. chatfunc("Sureyoucan!", maincolor.Color)
  1535. elseif Chatty == 2 then
  1536. chatfunc("This tea tastes weird??", maincolor.Color)
  1537. elseif Chatty == 3 then
  1538. chatfunc("God forbid.", maincolor.Color)
  1539. elseif Chatty == 4 then
  1540. chatfunc("Ugh.", maincolor.Color)
  1541. elseif Chatty == 5 then
  1542. chatfunc("Burger king foot lettuce.", maincolor.Color)
  1543. elseif Chatty == 6 then
  1544. chatfunc("Hmmm....", maincolor.Color)
  1545. elseif Chatty == 7 then
  1546. chatfunc("oof", maincolor.Color)
  1547. elseif Chatty == 8 then
  1548. chatfunc("What flavor was this again?", maincolor.Color)
  1549. end
  1550. if Chatty ~= 5 then
  1551. for i = 0, 9, 0.1 do
  1552. swait()
  1553. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1)
  1554. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(10 - 5 * Cos(sine / 3))), 0.1)
  1555. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  1556. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1557. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1558. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  1559. end
  1560. else
  1561. for i = 0, 9, 0.1 do
  1562. swait()
  1563. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0 - 4 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(-10)), 0.1)
  1564. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 2 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  1565. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) - Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 24)), Rad(0), Rad(5)), 0.1)
  1566. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) + Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(-0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 24)), Rad(0), Rad(-5)), 0.1)
  1567. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1568. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  1569. end
  1570. end
  1571. movelegs = false
  1572. attack = false
  1573. Speed = 16
  1574. end
  1575. --Taunt2 sounds--
  1576.  
  1577. nou = Instance.new("Sound",game.Workspace.mememasterYT65910)
  1578. nou.SoundId = "rbxassetid://1543318456"
  1579. nou.Volume = 3
  1580.  
  1581. ok = Instance.new("Sound",game.Workspace.mememasterYT65910)
  1582. ok.SoundId = "rbxassetid://684598298"
  1583. ok.Volume = 3
  1584.  
  1585. hit = Instance.new("Sound",game.Workspace.mememasterYT65910)
  1586. hit.SoundId = "rbxassetid://2571866856"
  1587. hit.Volume = 3
  1588.  
  1589. -----------------
  1590. function Taunt2()
  1591. attack = true
  1592. movelegs = true
  1593. Speed = 12
  1594. local said = Mrandom(1,3)
  1595. if said == 1 then
  1596. nou.Playing = true
  1597. elseif said == 2 then
  1598. ok.Playing = true
  1599. elseif said == 3 then
  1600. hit.Playing = true
  1601. end
  1602. if sound ~= 3 then
  1603. for i = 0, 9, 0.1 do
  1604. swait()
  1605. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1)
  1606. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(10 - 5 * Cos(sine / 3))), 0.1)
  1607. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  1608. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1609. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1610. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  1611. end
  1612. else
  1613. for i = 0, 9, 0.1 do
  1614. swait()
  1615. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0 - 4 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(-10)), 0.1)
  1616. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 2 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  1617. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) - Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 24)), Rad(0), Rad(5)), 0.1)
  1618. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) + Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(-0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 24)), Rad(0), Rad(-5)), 0.1)
  1619. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1620. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  1621. end
  1622. end
  1623. movelegs = false
  1624. attack = false
  1625. Speed = 16
  1626. end
  1627.  
  1628.  
  1629.  
  1630. function Sippy()
  1631. attack = true
  1632. Speed = 0
  1633. local Sip = Cso("1420260652", hed, 1.2, 1)
  1634. swait()
  1635. repeat
  1636. swait()
  1637. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1)
  1638. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 5 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  1639. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  1640. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1641. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.4 + 0.05 * Sin(sine / 20)* Player_Size, 0.1* Player_Size) * angles(Rad(125), Rad(0), Rad(-45)), 0.1)
  1642. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(10 - 5 * Sin(sine / 20))), 0.1)
  1643. until Sip.Playing == false
  1644. game.Workspace.mememasterYT65910.Head.face.Texture = "rbxassetid://190328259"
  1645. wrur.Playing = true
  1646. wait(0.5)
  1647. Speed = 50
  1648. attack = false
  1649. wait(6.6870000000000003000)
  1650. game.Workspace.mememasterYT65910.Head.face.Texture = "rbxassetid://162136529"
  1651. Speed = 16
  1652.  
  1653.  
  1654. end
  1655. function SittyBoi()
  1656. attack = true
  1657. Sitt = true
  1658. Speed = 0
  1659. repeat
  1660. swait()
  1661. for i = 0, 1, 0.1 do
  1662. swait()
  1663. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -1.6 + 0.1 * Player_Size * Cos(sine / 20)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  1664. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  1665. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(75), Rad(0), Rad(5)), 0.1)
  1666. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(75), Rad(0), Rad(-5)), 0.1)
  1667. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1668. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-15), Rad(20), Rad(-15)), 0.1)
  1669. end
  1670. until Sitt == false
  1671. attack = false
  1672. Speed = 16
  1673. end
  1674. -------------------------------------------------------
  1675. --End Attacks N Stuff--
  1676. -------------------------------------------------------
  1677. mouse.Button1Down:connect(function(key)
  1678. if attack == false then
  1679. Sippy()
  1680. end
  1681. end)
  1682. mouse.KeyDown:connect(function(key)
  1683. if (VALUE1 == false and attack == false) or Sitt == true then
  1684. if key == "q" then
  1685. if Sitt == false then
  1686. SittyBoi()
  1687. elseif Sitt == true then
  1688. Sitt = false
  1689. end
  1690. end
  1691. end
  1692. if attack == false then
  1693. if key == "t" then
  1694. Taunt()
  1695. end
  1696. end
  1697. if attack == false then
  1698. if key == "y" then
  1699. Taunt2()
  1700. end
  1701. end
  1702. end)
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712. -------------------------------------------------------
  1713. --Start Animations--
  1714. -------------------------------------------------------
  1715. print("By Makhail07")
  1716. while true do
  1717. swait()
  1718. sine = sine + change
  1719. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1720. local velderp = root.Velocity.y
  1721. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1722. if equipped == true or equipped == false then
  1723. if attack == false then
  1724. idle = idle + 1
  1725. else
  1726. idle = 0
  1727. end
  1728. local Landed = false
  1729. if(hitfloor)then
  1730. WasAir = false
  1731. else
  1732. WasAir = true
  1733. end
  1734. if(WasAir == false)then
  1735. if(InAir == true)then
  1736. LandTick = time()
  1737. Landed = true
  1738. end
  1739. end
  1740. if(time()-LandTick < .3)then
  1741. Landed = true
  1742. end
  1743. if(hitfloor)then
  1744. InAir = false
  1745. else
  1746. InAir = true
  1747. end
  1748. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  1749. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or Landed and 'Land' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  1750. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  1751. if(State == 'Jump')then
  1752. hum.JumpPower = 55
  1753. if attack == false then
  1754. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.1)
  1755. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1756. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -.2 - 0.1 * Cos(sine / 20), -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  1757. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  1758. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1759. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1760. end
  1761. elseif(State == 'Fall')then
  1762. if attack == false then
  1763. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1764. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1765. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1766. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1767. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(165), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1768. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(165), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1769. end
  1770. elseif(State == 'Land')then
  1771. hum.JumpPower = 0
  1772. if attack == false then
  1773. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  1774. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1775. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, 0.1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
  1776. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, 0.1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(-5)), 0.15)
  1777. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(0), Rad(25 + 4.5 * Sin(sine / 20))), 0.1)
  1778. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(0), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1779. end
  1780. elseif(State == 'Idle')then
  1781. change = 0.90
  1782. if attack == false then
  1783. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0 - 4 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(-10)), 0.1)
  1784. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(7 - 2 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  1785. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) - Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 24)), Rad(0), Rad(5)), 0.1)
  1786. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) + Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(-0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 24)), Rad(0), Rad(-5)), 0.1)
  1787. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  1788. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(10 - 5 * Sin(sine / 20))), 0.1)
  1789. end
  1790. elseif(State == 'Walk')then
  1791. change = 0.76
  1792. hum.JumpPower = 55
  1793. if attack == false then
  1794. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.3 - 0.15 * Cos(sine / (WALKSPEEDVALUE / 2))) * angles(Rad(10), Rad(0), Rad(0 - 0.75 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75), 0.1)
  1795. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 + 5 * Sin(sine / (WALKSPEEDVALUE / 2))), Rad(0), Rad(0 - 0.75 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 13), 0.1)
  1796. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.8 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, 0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 - 25 * Sin(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  1797. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.8 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, -0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 + 25 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  1798. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / WALKSPEEDVALUE)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / WALKSPEEDVALUE)), Rad(-30 + 5 * Sin(sine / WALKSPEEDVALUE))), 0.1)
  1799. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE)* Player_Size, 0 + 0.5 * Sin(sine / WALKSPEEDVALUE)* Player_Size) * angles(Rad(-45 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(-10) + root.RotVelocity.Y / -75), 0.1)
  1800. elseif attack == true and movelegs == true then
  1801. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.8 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, 0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 - 25 * Sin(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  1802. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.8 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, -0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 + 25 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  1803. end
  1804. end
  1805. end
  1806. hum.Name = "HUM"
  1807. hum.WalkSpeed = Speed
  1808. Music.SoundId = "rbxassetid://"..SONG
  1809. Music.Looped = true
  1810. Music.Pitch = 1
  1811. Music.Volume = 1.5
  1812. Music.Parent = tors
  1813. Music.Playing = true
  1814. if 0 < #Effects then
  1815. for e = 1, #Effects do
  1816. if Effects[e] ~= nil then
  1817. local Thing = Effects[e]
  1818. if Thing ~= nil then
  1819. local Part = Thing[1]
  1820. local Mode = Thing[2]
  1821. local Delay = Thing[3]
  1822. local IncX = Thing[4]
  1823. local IncY = Thing[5]
  1824. local IncZ = Thing[6]
  1825. if 1 >= Thing[1].Transparency then
  1826. if Thing[2] == "Block1" then
  1827. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1828. local Mesh = Thing[1].Mesh
  1829. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1830. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1831. elseif Thing[2] == "Block2" then
  1832. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1833. local Mesh = Thing[7]
  1834. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1835. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1836. elseif Thing[2] == "Block3" then
  1837. 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)
  1838. local Mesh = Thing[7]
  1839. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1840. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1841. elseif Thing[2] == "Cylinder" then
  1842. local Mesh = Thing[1].Mesh
  1843. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1844. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1845. elseif Thing[2] == "Blood" then
  1846. local Mesh = Thing[7]
  1847. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1848. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1849. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1850. elseif Thing[2] == "Elec" then
  1851. local Mesh = Thing[1].Mesh
  1852. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1853. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1854. elseif Thing[2] == "Disappear" then
  1855. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1856. elseif Thing[2] == "Shatter" then
  1857. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1858. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1859. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1860. Thing[6] = Thing[6] + Thing[5]
  1861. end
  1862. else
  1863. Part.Parent = nil
  1864. table.remove(Effects, e)
  1865. end
  1866. end
  1867. end
  1868. end
  1869. end
  1870. end
  1871. -------------------------------------------------------
  1872. --End Animations And Script--
  1873. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement