WagnerJunio07

Cafezin

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