RuineKiller

Coffee God

Oct 6th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.43 KB | None | 0 0
  1. --[[The Coffee God V2 Prototype
  2. Added custom clerp animation
  3. Nerfed and Changed almost every move
  4. Improved orb rotation smoothness
  5. Added Coffee cup
  6. Added limited amount of Coffee and Coffee refills
  7. Added coffee puddles
  8. Will Add Revival with animation
  9.  
  10. Made by gamingsugo
  11. Discord: Arvain
  12. Also ignore titles like Variables etc. I got lazy lol--]]
  13. --Variables--
  14. math.randomseed(tick())
  15. wait(2)
  16. Coffee = 100
  17. MaxCoffee = 100
  18. Nope = false
  19. function GetCoff()
  20. if Coffee < 0 then Coffee = 0 end
  21. return math.floor(Coffee/MaxCoffee*100)
  22. end
  23. function GetProgressScale()
  24. return Coffee/MaxCoffee
  25. end
  26. function UseC(amount)
  27. if amount > Coffee then
  28. Nope = true
  29. end
  30. if amount < Coffee or amount == Coffee then
  31. Coffee = Coffee - amount
  32. end
  33. end
  34. function AddC(amount)
  35. Coffee = Coffee + amount
  36. if Coffee + amount > MaxCoffee then
  37. Coffee = 100
  38. end
  39. end
  40. melee = false
  41. Spawned = true
  42. lol = false
  43. animstopr = false
  44. spill2 = false
  45. animstop = false
  46. Spawning = true
  47. Debounce = false
  48. mov = false
  49. p = game.Players.LocalPlayer
  50. local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
  51. mouse= p:GetMouse()
  52. char = p.Character
  53. rarm = char["Right Arm"]
  54. larm = char["Left Arm"]
  55. rleg = char["Right Leg"]
  56. lleg = char["Left Leg"]
  57. hed = char.Head
  58. torso = char.Torso
  59. root = char.HumanoidRootPart
  60. sinestep = 0
  61. local sine, change = 0, 1
  62. local animpose = "Idle"
  63. local lastanimpose = "Idle"
  64. local sine = 0
  65. local change = 1
  66. local val = 0
  67. local och = 0
  68. local ffing = false
  69. local rs = game:service'RunService'
  70. local srs = rs.Stepped
  71. local cf, ang, eu, v3 = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ, Vector3.new
  72. function clerp(c1,c2,al)
  73. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  74. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  75. for i,v in pairs(com1) do
  76. com1[i] = v+(com2[i]-v)*al
  77. end
  78. return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))
  79. end
  80. srs:connect(function()
  81. sine = tick() * (change * 25)
  82. end)
  83. --Welds--
  84. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  85. local wld = Instance.new("Weld", wp1)
  86. wld.Part0 = wp0
  87. wld.Part1 = wp1
  88. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  89. end
  90. newWeld(torso, larm, -1.5, 0.5, 0)
  91. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  92. newWeld(torso, rarm, 1.5, 0.5, 0)
  93. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  94. newWeld(torso, hed, 0, 1.5, 0)
  95. newWeld(torso, lleg, -0.5, -1, 0)
  96. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  97. newWeld(torso, rleg, 0.5, -1, 0)
  98. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  99. newWeld(root, torso, 0, -1, 0)
  100. torso.Weld.C1 = CFrame.new(0, -1, 0)
  101. --GUI--
  102. local GUI = Instance.new("ScreenGui",p.PlayerGui)
  103. GUI.Name = "BloodlustGUI"
  104. local f1 = Instance.new("Frame",GUI)
  105. f1.Name = "Container"
  106. f1.BackgroundColor3 = Color3.new(1,1,1)
  107. f1.ZIndex = 1
  108. f1.BackgroundTransparency = 0.25
  109. f1.Size = UDim2.new(0,400,0,50)
  110. f1.Position = UDim2.new(0,100,0.75,0)
  111. local f2 = Instance.new("Frame",f1)
  112. f2.Name = "CoffeeMeter"
  113. f2.BackgroundColor3 = Color3.new(.4,0,.1)
  114. f2.Size = UDim2.new(0,0,0,40)
  115. f2.Position = UDim2.new(0,0,0,5)
  116. local tl = Instance.new("TextLabel",f1)
  117. tl.Size = UDim2.new(1,0,1,0)
  118. tl.BackgroundTransparency = 1
  119. tl.TextColor3 = Color3.new(0,0,0)
  120. tl.Font = Enum.Font.Arial
  121. tl.TextSize = 24
  122. local naeeym = Instance.new("BillboardGui",char)
  123. naeeym.Size = UDim2.new(0,100,0,40)
  124. naeeym.StudsOffset = Vector3.new(0,2,0)
  125. naeeym.Adornee = char.Head
  126. local tecks = Instance.new("TextLabel",naeeym)
  127. tecks.BackgroundTransparency = 1
  128. tecks.BorderSizePixel = 0
  129. tecks.Font = "Bodoni"
  130. tecks.FontSize = "Size36"
  131. tecks.TextStrokeTransparency = 0.5
  132. tecks.TextColor3 = Color3.new(0,0,0)
  133. tecks.Size = UDim2.new(1,0,0.5,0)
  134. tecks.Text = ""
  135. function chat(text)
  136.  
  137. tecks.Text = text
  138.  
  139. end
  140. --Coffee Cup--
  141. cup = Instance.new("Part")
  142. cup.Parent = rarm
  143. cup.Size = Vector3.new(0.1,0.1,0.1)
  144. cup.BrickColor = BrickColor.new("Institutional white")
  145. cupm = Instance.new("SpecialMesh")
  146. cupm.MeshId = 'rbxassetid://433095032'
  147. cupm.Scale = Vector3.new(.1,.1,.1)
  148. cupm.Parent = cup
  149. newWeld(rarm, cup,0,0,0)
  150. cup.Weld.C1 = CFrame.new(0.3,0.3,1.2) * CFrame.Angles(rad(70),rad(0),rad(0))
  151. liq = Instance.new("Part")
  152. liq.Size = Vector3.new(.4,.5,.4)
  153. liq.Material = "Slate"
  154. liq.Shape = "Cylinder"
  155. liq.Parent = cup
  156. liq.BrickColor = BrickColor.new("Burnt Sienna")
  157. newWeld(cup, liq,0,0,0)
  158. liq.Weld.C1 = CFrame.new(0,0.1,0) * ang(rad(0),rad(0),rad(90))
  159. function Empty()
  160. animstop = true
  161. wait()
  162. chat("Not Enough Coffee")
  163. char.Humanoid.WalkSpeed = 0
  164. for i=0,30,1 do
  165. wait()
  166. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
  167. end
  168. wait(0.5)
  169. for i=0,30,1 do
  170. wait()
  171. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-50),rad(-20),rad(180)),.1)
  172. end
  173. wait(0.01)
  174. for i=0,30,1 do
  175. wait()
  176. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
  177. end
  178. for i=0,30,1 do
  179. wait()
  180. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-50),rad(-20),rad(180)),.1)
  181. end
  182. wait(0.01)
  183. for i=0,30,1 do
  184. wait()
  185. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
  186.  
  187. end
  188. wait(0.5)
  189. tecks.Text = ""
  190. char.Humanoid.WalkSpeed = 16
  191. animstop = false
  192. end
  193. mouse.KeyDown:connect(function(key)
  194. if key == 'q' then
  195. if Spawned == true then
  196. if Debounce == false then
  197. Debounce = true
  198. UseC(10)
  199. if Nope == true then
  200. Empty()
  201. end
  202. if Nope == false then
  203. Debounce = true
  204. animstop = true
  205. char.Humanoid.WalkSpeed = 0
  206. spill = true
  207. wait(2)
  208. spill = false
  209. spill2 = true
  210. blob = Instance.new("Part")
  211. blob.Parent = char
  212. blob.Material = "Slate"
  213. blob.Size = Vector3.new(0.7,0.7,0.7)
  214. blob.Anchored = false
  215. blob.Shape = "Ball"
  216. blob.CanCollide = false
  217. blob.Transparency = 0.1
  218. newWeld(torso,blob,0,0,0)
  219.  
  220. blob.BrickColor = BrickColor.new("Burnt Sienna")
  221. blod = Instance.new("Part")
  222. blod.Parent = char
  223. blod.Material = "Slate"
  224. blod.Size = Vector3.new(0.7,0.7,0.7)
  225. blod.Anchored = false
  226. blod.Shape = "Ball"
  227. blod.CanCollide = false
  228. blod.Transparency = 0.1
  229. blod.BrickColor = BrickColor.new("Burnt Sienna")
  230. newWeld(torso,blod,0,0,0)
  231.  
  232. blode = Instance.new("Part")
  233. blode.Parent = char
  234. blode.Material = "Slate"
  235. blode.Size = Vector3.new(0.7,0.7,0.7)
  236. blode.Anchored = false
  237. blode.CanCollide = false
  238. blode.Shape = "Ball"
  239. blode.Transparency = 0.1
  240. blode.BrickColor = BrickColor.new("Burnt Sienna")
  241. newWeld(torso,blode,0,0,0)
  242.  
  243. mov = true
  244.  
  245.  
  246. wait(2)
  247. mov = false
  248. spill2 = false
  249. animstop = false
  250. blode.Weld:Destroy()
  251. blode.CFrame = CFrame.new(blode.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  252. local heck = Instance.new('BodyVelocity',blode)
  253. heck.Velocity = (blode.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
  254. local coru = coroutine.wrap(function()
  255. wait(0.45)
  256. if heck then
  257. heck:Destroy()
  258. end
  259. end)
  260. coru()
  261. blode.Touched:connect(function(hit)
  262. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  263. if ehum ~= char.Humanoid and ehum ~= nil then
  264.  
  265. ehum:TakeDamage(25)
  266. local echar = ehum.Parent
  267. for i=1,10 do
  268.  
  269.  
  270. local par = blode:Clone()
  271. par.Size = Vector3.new(0.4,0.4,0.4)
  272. par.Parent = workspace
  273. par.CFrame = blode.CFrame
  274. par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
  275. par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  276. game.Debris:AddItem(par,1)
  277. end
  278.  
  279. elseif hit.Anchored == true and hit.CanCollide == true then
  280. local ring = Instance.new("Part")
  281. ring.Parent = workspace
  282. ring.CFrame = blode.CFrame * ang(rad(0),rad(0),rad(90))
  283. local siz = 0
  284. ring.CanCollide = false
  285. ring.Name = "Ring"
  286. ring.Anchored = true
  287. ring.Shape = "Cylinder"
  288. ring.BrickColor = BrickColor.new("Burnt Sienna")
  289. ring.Material = "Slate"
  290. ring.Touched:connect(function(hit)
  291. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  292. if ehum ~= char.Humanoid and ehum ~= nil then
  293.  
  294. ehum:TakeDamage(25)
  295. end
  296. end)
  297. while siz < 10 do
  298. wait()
  299. local start = ring.CFrame * cf(-.12,0,0)
  300. siz = siz + 0.5
  301. ring.Size = Vector3.new(0.1,siz,siz)
  302. ring.CFrame = start
  303. end
  304. ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
  305. ring.Anchored = false
  306. ring.CanCollide = true
  307. wait(1)
  308. ring.Anchored = true
  309. ring.CanCollide = false
  310. end
  311.  
  312. blode:Destroy()
  313. end)
  314. wait(.7)
  315. blob.Weld:Destroy()
  316. blob.CFrame = CFrame.new(blob.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  317. local heck = Instance.new('BodyVelocity',blob)
  318. heck.Velocity = (blob.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
  319. local coru = coroutine.wrap(function()
  320. wait(0.45)
  321. if heck then
  322. heck:Destroy()
  323. end
  324. end)
  325. coru()
  326. blob.Touched:connect(function(hit)
  327. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  328. if ehum ~= char.Humanoid and ehum ~= nil then
  329.  
  330. ehum:TakeDamage(25)
  331. local echar = ehum.Parent
  332. for i=1,10 do
  333.  
  334.  
  335. local par = blob:Clone()
  336. par.Size = Vector3.new(0.4,0.4,0.4)
  337. par.Parent = workspace
  338. par.CFrame = blob.CFrame
  339. par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
  340. par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  341. game.Debris:AddItem(par,1)
  342. end
  343.  
  344. elseif hit.Anchored == true and hit.CanCollide == true then
  345. local ring = Instance.new("Part")
  346. ring.Parent = workspace
  347. ring.CFrame = blob.CFrame * ang(rad(0),rad(0),rad(90))
  348. local siz = 0
  349. ring.CanCollide = false
  350. ring.Anchored = true
  351. ring.Name = "Ring"
  352. ring.BrickColor = BrickColor.new("Burnt Sienna")
  353. ring.Material = "Slate"
  354. ring.Shape = "Cylinder"
  355. ring.Touched:connect(function(hit)
  356. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  357. if ehum ~= char.Humanoid and ehum ~= nil then
  358.  
  359. ehum:TakeDamage(25)
  360. end
  361. end)
  362. while siz < 10 do
  363. wait()
  364. local start = ring.CFrame * cf(-.12,0,0)
  365. siz = siz + 0.5
  366. ring.Size = Vector3.new(0.1,siz,siz)
  367. ring.CFrame = start
  368. end
  369. ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
  370. ring.Anchored = false
  371. ring.CanCollide = true
  372. wait(1)
  373. ring.Anchored = true
  374. ring.CanCollide = false
  375. end
  376.  
  377. blob:Destroy()
  378. end)
  379. wait(.7)
  380. blod.Weld:Destroy()
  381. blod.CFrame = CFrame.new(blod.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  382. local heck = Instance.new('BodyVelocity',blod)
  383. heck.Velocity = (blod.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
  384. local coru = coroutine.wrap(function()
  385. wait(0.45)
  386. if heck then
  387. heck:Destroy()
  388. end
  389. end)
  390. coru()
  391. blod.Touched:connect(function(hit)
  392. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  393. if ehum ~= char.Humanoid and ehum ~= nil then
  394.  
  395. ehum:TakeDamage(25)
  396. local echar = ehum.Parent
  397. for i=1,10 do
  398.  
  399.  
  400. local par = blod:Clone()
  401. par.Size = Vector3.new(0.4,0.4,0.4)
  402. par.Parent = workspace
  403. par.CFrame = blod.CFrame
  404. par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
  405. par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  406. game.Debris:AddItem(par,1)
  407. end
  408.  
  409. elseif hit.Anchored == true and hit.CanCollide == true then
  410. local ring = Instance.new("Part")
  411. ring.Parent = workspace
  412. ring.CFrame = blod.CFrame * ang(rad(0),rad(0),rad(90))
  413. local siz = 0
  414. ring.CanCollide = false
  415. ring.Anchored = true
  416. ring.Material = "Slate"
  417. ring.Name = "Ring"
  418. ring.BrickColor = BrickColor.new("Burnt Sienna")
  419. ring.Shape = "Cylinder"
  420. ring.Touched:connect(function(hit)
  421. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  422. if ehum ~= char.Humanoid and ehum ~= nil then
  423.  
  424. ehum:TakeDamage(25)
  425. end
  426. end)
  427. while siz < 10 do
  428. wait()
  429. local start = ring.CFrame * cf(-.12,0,0)
  430. siz = siz + 0.5
  431. ring.Size = Vector3.new(0.1,siz,siz)
  432. ring.CFrame = start
  433. end
  434. ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
  435. ring.Anchored = false
  436. ring.CanCollide = true
  437. wait(1)
  438. ring.Anchored = true
  439. ring.CanCollide = false
  440. end
  441.  
  442. blod:Destroy()
  443. end)
  444. char.Humanoid.WalkSpeed = 16
  445. Debounce = false
  446.  
  447. end
  448. Nope = false
  449. Debounce = false
  450. end
  451. end
  452. end
  453.  
  454. end)
  455. mouse.KeyDown:connect(function(key)
  456. if key == 'x' then
  457. if Debounce == false then
  458. Debounce = true
  459.  
  460. for i,v in pairs(game.Workspace:GetChildren()) do
  461. if v.Name == "Ring" and v:IsA("Part") then
  462. v.Shape = "Ball"
  463. v.CFrame = v.CFrame * cf(2,0,0)
  464. si = 5
  465. v.Size = Vector3.new(5,5,5)
  466. AddC(1.66666667)
  467. while si > 0 do
  468. wait()
  469. si = si - 0.5
  470. v.Size = Vector3.new(si,si,si)
  471. end
  472. v:Destroy()
  473. end
  474. end
  475. Debounce = false
  476. end
  477. end
  478. end)
  479. --coffee machine--
  480. function putin()
  481. animstop = true
  482. char.Humanoid.WalkSpeed = 0
  483. for i=1,30,1 do
  484. wait()
  485. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.8,.2) * ang(rad(-80),rad(15),rad(0)),.1)
  486. end
  487. end
  488. o1 = Instance.new("Model")
  489. o2 = Instance.new("Part")
  490. o3 = Instance.new("Part")
  491. o4 = Instance.new("SpecialMesh")
  492. o5 = Instance.new("Part")
  493. o6 = Instance.new("Part")
  494. o7 = Instance.new("CylinderMesh")
  495. o8 = Instance.new("Part")
  496. o9 = Instance.new("CylinderMesh")
  497. o10 = Instance.new("Part")
  498. o11 = Instance.new("CylinderMesh")
  499. o1.Name = "Coffee"
  500. o1.Parent = workspace
  501. o2.Parent = o1
  502. o2.BrickColor = BrickColor.new("Institutional white")
  503. o2.Position = Vector3.new(1.8299713, 0.209024996, -1.5288849)--88 and 52 is main
  504. o2.Rotation = Vector3.new(-180, 89.9599991, 0)
  505. o2.Anchored = true
  506. o2.CanCollide = false
  507. o2.FormFactor = Enum.FormFactor.Plate
  508. o2.Size = Vector3.new(2, 0.400000006, 1)
  509. o2.CFrame = CFrame.new(1.8299713, 0.209024996, -2.5288849, 1.0914377e-11, 0, 0.999999762, -1.45519135e-11, 0.999999881, 0, -0.999999642, 1.45519135e-11, -1.09143788e-11)
  510. o2.BottomSurface = Enum.SurfaceType.Smooth
  511. o2.TopSurface = Enum.SurfaceType.Smooth
  512. o2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  513. o3.Parent = o1
  514. o3.BrickColor = BrickColor.new("Institutional white")
  515. o3.Position = Vector3.new(1.8299713, 0.909020007, -3.0288773)
  516. o3.Anchored = true
  517. o3.FormFactor = Enum.FormFactor.Plate
  518. o3.Size = Vector3.new(1, 1.20000005, 1)
  519. o3.CanCollide = false
  520. o3.CFrame = CFrame.new(1.8299713, 0.909020007, -3.0288773, 0.999999762, 0, -1.0914377e-11, 0, 0.999999881, 1.45519135e-11, -1.09143788e-11, 1.45519135e-11, 0.999999642)
  521. o3.BottomSurface = Enum.SurfaceType.Smooth
  522. o3.TopSurface = Enum.SurfaceType.Smooth
  523. o3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  524. o4.Parent = o3
  525. o4.Scale = Vector3.new(1, 1.20000005, 1)
  526. o4.MeshType = Enum.MeshType.Brick
  527. o5.Parent = o1
  528. o5.BrickColor = BrickColor.new("Institutional white")
  529. o5.Position = Vector3.new(1.8299713, 1.80901897, -2.5288849)
  530. o5.Rotation = Vector3.new(-180, 89.9599991, 0)
  531. o5.Anchored = true
  532. o5.CanCollide = false
  533. o5.FormFactor = Enum.FormFactor.Plate
  534. o5.Size = Vector3.new(2, 0.400000006, 1)
  535. o5.CFrame = CFrame.new(1.8299713, 1.80901897, -2.5288849, 1.0914377e-11, 0, 0.999999762, -1.45519135e-11, 0.999999881, 0, -0.999999642, 1.45519135e-11, -1.09143788e-11)
  536. o5.BottomSurface = Enum.SurfaceType.Smooth
  537. o5.TopSurface = Enum.SurfaceType.Smooth
  538. o5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  539. o6.Name = "Smooth Block Model"
  540. o6.Parent = o1
  541. o6.BrickColor = BrickColor.new("Institutional white")
  542. o6.Position = Vector3.new(1.8299713, 1.80901897, -1.5288773)
  543. o6.Rotation = Vector3.new(-180, 0, 180)
  544. o6.Anchored = true
  545. o6.CanCollide = false
  546. o6.FormFactor = Enum.FormFactor.Plate
  547. o6.Size = Vector3.new(1, 0.400000006, 1)
  548. o6.CFrame = CFrame.new(1.8299713, 1.80901897, -1.5288773, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  549. o6.TopSurface = Enum.SurfaceType.Smooth
  550. o6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  551. o7.Parent = o6
  552. o7.Offset = Vector3.new(0, -0.150000006, 0)
  553. o7.Scale = Vector3.new(1, 1.79999995, 1)
  554. o8.Name = "Smooth Block Model"
  555. o8.Parent = o1
  556. o8.BrickColor = BrickColor.new("Institutional white")
  557. o8.Position = Vector3.new(1.8299713, 0.209024996, -1.5288773)
  558. o8.Rotation = Vector3.new(-180, 0, 180)
  559. o8.Anchored = true
  560. o8.CanCollide = false
  561. o8.FormFactor = Enum.FormFactor.Plate
  562. o8.Size = Vector3.new(1, 0.400000006, 1)
  563. o8.CFrame = CFrame.new(1.8299713, 0.209024996, -1.5288773, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  564. o8.TopSurface = Enum.SurfaceType.Smooth
  565. o8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  566. o9.Parent = o8
  567. o9.Offset = Vector3.new(0, -0.150000006, 0)
  568. o9.Scale = Vector3.new(1, 1.79999995, 1)
  569. o10.Name = "Smooth Block Model"
  570. o10.Parent = o1
  571. o10.BrickColor = BrickColor.new("Institutional white")
  572. o10.Position = Vector3.new(1.8299713, 2.80800796, -1.5288849)
  573. o10.Rotation = Vector3.new(-180, 0, 180)
  574. o10.Anchored = true
  575. o10.CanCollide = false
  576. o10.FormFactor = Enum.FormFactor.Plate
  577. o10.Size = Vector3.new(1, 0.400000006, 1)
  578. o10.CFrame = CFrame.new(1.8299713, 2.80800796, -2.5288849, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  579. o10.TopSurface = Enum.SurfaceType.Smooth
  580. o10.Color = Color3.new(0.972549, 0.972549, 0.972549)
  581. o11.Parent = o10
  582. o11.Offset = Vector3.new(0, -1.5, -1)
  583. o11.Scale = Vector3.new(1.20000005, 0.600000024, 1.5)
  584. o2.Transparency = 1
  585. o3.Transparency = 1
  586. o5.Transparency = 1
  587. o6.Transparency = 1
  588. o8.Transparency = 1
  589. o10.Transparency = 1
  590. --cont--
  591. mouse.KeyDown:connect(function(key)
  592. if key == 'r' then
  593. if Debounce == false then
  594. Debounce = true
  595. AddC(100)
  596. o2.Transparency = 0
  597. o3.Transparency = 0
  598. o5.Transparency = 0
  599. o6.Transparency = 0
  600. o8.Transparency = 0
  601. o10.Transparency = 0
  602. o2.CFrame = torso.CFrame * CFrame.new(1.8299713, 0.209024996, -2.5288849, 1.0914377e-11, 0, 0.999999762, -1.45519135e-11, 0.999999881, 0, -0.999999642, 1.45519135e-11, -1.09143788e-11)
  603. o3.CFrame = torso.CFrame * CFrame.new(1.8299713, 0.909020007, -3.0288773, 0.999999762, 0, -1.0914377e-11, 0, 0.999999881, 1.45519135e-11, -1.09143788e-11, 1.45519135e-11, 0.999999642)
  604. o5.CFrame = torso.CFrame * CFrame.new(1.8299713, 1.80901897, -2.5288849, 1.0914377e-11, 0, 0.999999762, -1.45519135e-11, 0.999999881, 0, -0.999999642, 1.45519135e-11, -1.09143788e-11)
  605. o6.CFrame = torso.CFrame * CFrame.new(1.8299713, 1.80901897, -1.5288773, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  606. o8.CFrame = torso.CFrame * CFrame.new(1.8299713, 0.209024996, -1.5288773, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  607. o10.CFrame = torso.CFrame * CFrame.new(1.8299713, 2.80800796, -2.5288849, -0.999999762, -3.05180365e-05, 3.05171161e-05, -3.05171088e-05, 0.999999881, 3.0518022e-05, -3.05180147e-05, 3.05171161e-05, -0.999999642)
  608. putin()
  609. local S = Instance.new("Sound",o2)
  610. S.Volume = 20
  611. S.SoundId = "rbxassetid://984790117"
  612. S:Play()
  613. wait(5)
  614. S:Destroy()
  615. animstop = false
  616. char.Humanoid.WalkSpeed = 16
  617. o2.Transparency = 1
  618. o3.Transparency = 1
  619. o5.Transparency = 1
  620. o6.Transparency = 1
  621. o8.Transparency = 1
  622. o10.Transparency = 1
  623. Debounce = false
  624. end
  625. end
  626. end)
  627. mouse.KeyDown:connect(function(key)
  628. if key == 'e' then
  629. if Debounce == false then
  630. Debounce = true
  631. UseC(50)
  632. if Nope == true then
  633. Empty()
  634. end
  635. if Nope == false then
  636. char.Humanoid.WalkSpeed = 0
  637. blob = Instance.new("Part")
  638. blob.Parent = char
  639. blob.Material = "Slate"
  640. blob.Size = Vector3.new(.7,.7,.7)
  641. blob.Anchored = true
  642. blobm = Instance.new("SpecialMesh")
  643. blobm.Parent = blob
  644. blob.Shape = "Ball"
  645. blobm.MeshId = "rbxassetid://430736398"
  646. blob.CanCollide = false
  647. blob.Transparency = 0.1
  648. blob.CFrame = torso.CFrame * cf(0,10,0)
  649. blob.BrickColor = BrickColor.new("Burnt Sienna")
  650. blobe = Instance.new("Part")
  651. blobe.Parent = char
  652. blobe.Material = "Slate"
  653. blobe.Size = Vector3.new(0.7,0.7,0.7)
  654. blobe.Anchored = true
  655. blobe.Shape = "Ball"
  656. blobe.CanCollide = false
  657. blobe.Transparency = 0.1
  658. blobe.Name = "blobe"
  659. blobe.BrickColor = BrickColor.new("Burnt Sienna")
  660. blobe.CFrame = blob.CFrame * cf(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  661. local si = 0
  662. for i=0,100,1 do
  663. wait(0.05)
  664. clo = blobe:Clone()
  665. clo.Parent = char
  666. clo.CFrame = blob.CFrame * cf(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  667. end
  668. for i=0,30,1 do
  669. wait()
  670. for i,v in pairs (char:GetChildren()) do
  671. if v.Name == "blobe" then
  672. v.CFrame = clerp(v.CFrame,blob.CFrame,.1)
  673. end
  674. end
  675. end
  676. for i,v in pairs (char:GetChildren()) do
  677. if v.Name == "blobe" then
  678. v:Destroy()
  679. end
  680.  
  681. end
  682. while si < 5 do
  683. wait()
  684. si = si + 0.5
  685. blobm.Scale = Vector3.new(si,si,si)
  686. end
  687. blob.Anchored = false
  688. wait()
  689. blob.CFrame = CFrame.new(blob.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  690. local heck = Instance.new('BodyVelocity',blob)
  691. heck.Velocity = (blob.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
  692. local coru = coroutine.wrap(function()
  693. wait(.45)
  694. if heck then
  695. heck:Destroy()
  696. end
  697. end)
  698. coru()
  699. blob.Touched:connect(function(hit)
  700. local S = Instance.new("Sound",blob)
  701. S.Volume = 100
  702. S.SoundId = "rbxassetid://142070127"
  703. S:Play()
  704. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  705. if ehum ~= char.Humanoid and ehum ~= nil then
  706. ehum:TakeDamage(75)
  707. local echar = ehum.Parent
  708. for i=1,10 do
  709. local par = blob:Clone()
  710. par.Size = Vector3.new(3,3,3)
  711. par.Parent = workspace
  712. par.Touched:connect(function(hit)
  713. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  714. if ehum ~= char.Humanoid and ehum ~= nil then
  715.  
  716. ehum:TakeDamage(10)
  717. end
  718. end)
  719. par.CFrame = blob.CFrame
  720. par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
  721. par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  722. game.Debris:AddItem(par,1)
  723. end
  724. elseif hit.Anchored == true and hit.CanCollide == true then
  725. local ring = Instance.new("Part")
  726. local rin = Instance.new("Part")
  727. local rinm = Instance.new("SpecialMesh")
  728. rinm.MeshId = "rbxassetid://1323306"
  729. rinm.Parent = rin
  730. rin.Parent = workspace
  731. rin.CFrame = blob.CFrame * cf(0,1,0) * ang(rad(0),rad(0),rad(0))
  732. rin.Anchored = false
  733. rin.CanCollide = true
  734. rin.BrickColor = BrickColor.new("Burnt Sienna")
  735. rin.Material = "Slate"
  736. ring.Parent = workspace
  737. ring.CFrame = blob.CFrame * ang(rad(0),rad(0),rad(90))
  738. local siz = 0
  739. ring.CanCollide = false
  740. ring.Anchored = true
  741. ring.Material = "Slate"
  742. ring.Name = "Ring"
  743. ring.BrickColor = BrickColor.new("Burnt Sienna")
  744. ring.Shape = "Cylinder"
  745. ring.Touched:connect(function(hit)
  746. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  747. if ehum ~= char.Humanoid and ehum ~= nil then
  748.  
  749. ehum:TakeDamage(50)
  750. end
  751. end)
  752. rin.Touched:connect(function(hit)
  753. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  754. if ehum ~= char.Humanoid and ehum ~= nil then
  755. ehum:TakeDamage(30)
  756. end
  757. end)
  758. rin.CanCollide = false
  759. rin.Anchored = true
  760. while siz < 20 do
  761. wait()
  762. local start = ring.CFrame * cf(-.12,0,0)
  763. siz = siz + 0.5
  764. ring.Size = Vector3.new(0.1,siz,siz)
  765. ring.CFrame = start
  766. local start2 = rin.CFrame
  767. rin.Size = Vector3.new(siz,siz,siz)
  768. rinm.Scale = Vector3.new(siz,siz,siz)
  769. rin.CFrame = start2
  770. end
  771. ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
  772. ring.Anchored = false
  773. ring.CanCollide = true
  774. wait(1)
  775. ring.Anchored = true
  776. ring.CanCollide = false
  777. rin:Destroy()
  778. end
  779.  
  780. blob:Destroy()
  781. wait(2)
  782. S:Destroy()
  783. end)
  784. char.Humanoid.WalkSpeed = 16
  785. Debounce = false
  786. end
  787. Debounce = false
  788. Nope = false
  789. end
  790. end
  791. end)
  792. mouse.KeyDown:connect(function(key)
  793. if key == 'f' then
  794. if Debounce == false then
  795. Debounce = true
  796. if melee == false then
  797. UseC(100)
  798. end
  799. if Nope == true then
  800. Empty()
  801. end
  802. if Nope == false then
  803. if melee == true then
  804. melee = false
  805. lol = true
  806. AddC(100)
  807. end
  808. if melee == false then
  809. if lol == false then
  810. melee = true
  811. end
  812. end
  813. lol = false
  814. end
  815. Debounce = false
  816. Nope = false
  817. end
  818. end
  819. end)
  820. mouse.Button1Down:connect(function()
  821. if melee == true then
  822. if Debounce == false then
  823. Debounce = true
  824. local HitBox = Instance.new("Part",cup)
  825. HitBox.Size = Vector3.new(2,2,2)
  826. HitBox.Transparency = 1
  827. HitBox.CanCollide = false
  828. HitBox.Anchored = false
  829. newWeld(cup,HitBox,0,0,0)
  830. HitBox.Weld.C1 = CFrame.new(0,0,0)
  831. animstopr = true
  832. for i=1,20 do
  833. wait()
  834. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.5,.2) * ang(rad(-100),rad(30),rad(0)),.1)
  835. end
  836. HitBox.Touched:connect(function(hit)
  837. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  838. if ehum ~= char.Humanoid and ehum ~= nil then
  839. local S = Instance.new("Sound",HitBox)
  840. S.Volume = 100
  841. S.SoundId = "rbxassetid://367499850"
  842. ehum:TakeDamage(20)
  843. S:Play()
  844. wait(1)
  845. S:Destroy()
  846. HitBox:Destroy()
  847. end
  848. end)
  849. for i=1,20 do
  850. wait()
  851. rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.8,.2) * ang(rad(-80),rad(-50),rad(0)),.3)
  852. end
  853. wait(1)
  854. animstopr = false
  855. HitBox:Destroy()
  856. Debounce = false
  857. end
  858. end
  859. end)
  860. mouse.KeyDown:connect(function(key)
  861. if key == 'z' then
  862. if Debounce == false then
  863. Debounce = true
  864.  
  865. if Nope == true then
  866. Empty()
  867. end
  868. if Nope == false then
  869. for i=0,25 do
  870. wait()
  871. UseC(2)
  872. blob = Instance.new("Part",workspace)
  873. blob.Name = "blob"
  874. blob.Material = "Slate"
  875. blob.Size = Vector3.new(.2,.2,.2)
  876. blob.Anchored = true
  877. blob.Shape = "Ball"
  878. blob.CanCollide = false
  879. blob.Transparency = 0.1
  880. blob.CFrame = torso.CFrame * cf(math.random(-4,4),math.random(8,10),math.random(-4,4))
  881. blob.BrickColor = BrickColor.new("Burnt Sienna")
  882.  
  883. end
  884. wait(1)
  885. for i,v in pairs(workspace:GetChildren())do
  886. if v.Name == "blob" then
  887. v.Anchored = false
  888. wait()
  889. v.CFrame = CFrame.new(v.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  890. local heck = Instance.new('BodyVelocity',v)
  891. heck.Velocity = (v.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
  892. local coru = coroutine.wrap(function()
  893. wait(.45)
  894. if heck then
  895. heck:Destroy()
  896. end
  897. end)
  898. coru()
  899. v.Touched:connect(function(hit)
  900. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  901. if ehum ~= char.Humanoid and ehum ~= nil then
  902. ehum:TakeDamage(5)
  903. local echar = ehum.Parent
  904. for i=1,10 do
  905. local par = v:Clone()
  906. par.Size = Vector3.new(0.1,0.1,0.1)
  907. par.Parent = workspace
  908. par.Touched:connect(function(hit)
  909. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  910. if ehum ~= char.Humanoid and ehum ~= nil then
  911.  
  912. ehum:TakeDamage(5)
  913. end
  914. end)
  915. par.CFrame = v.CFrame
  916. par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
  917. par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  918. game.Debris:AddItem(par,1)
  919. end
  920. elseif hit.Anchored == true and hit.CanCollide == true then
  921. local ring = Instance.new("Part")
  922. ring.Parent = workspace
  923. ring.CFrame = v.CFrame * ang(rad(0),rad(0),rad(90))
  924. local siz = 0
  925. ring.CanCollide = false
  926. ring.Anchored = true
  927. ring.Material = "Slate"
  928. ring.Name = "Ring"
  929. ring.BrickColor = BrickColor.new("Burnt Sienna")
  930. ring.Shape = "Cylinder"
  931. ring.Touched:connect(function(hit)
  932.  
  933.  
  934. local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
  935. if ehum ~= char.Humanoid and ehum ~= nil then
  936.  
  937. ehum:TakeDamage(5)
  938. end
  939. end)
  940. while siz < 5 do
  941. wait()
  942. local start = ring.CFrame * cf(-.12,0,0)
  943. siz = siz + 0.5
  944. ring.Size = Vector3.new(0.1,siz,siz)
  945. ring.CFrame = start
  946. end
  947. ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
  948. ring.Anchored = false
  949. ring.CanCollide = true
  950. wait(1)
  951. ring.Anchored = true
  952. ring.CanCollide = false
  953. end
  954.  
  955. v:Destroy()
  956. wait(2)
  957.  
  958. end)
  959. end
  960. end
  961.  
  962. end
  963. Debounce = false
  964. Nope = false
  965. end
  966. end
  967. end)
  968. --Animations--
  969. srs:connect(function()
  970. f2:TweenSize(UDim2.new(GetProgressScale(),0,0,40),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,0.5,true)
  971. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  972. animpose = "Idle"
  973. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  974. animpose = "Walking"
  975. end
  976. if animpose == "Walking" then
  977. if animstop == false then
  978. local animspd = .1
  979. rleg.Weld.C1 = clerp(rleg.Weld.C1, cf(0,1,0) * ang(-rad(1)+-sin(sine/6)/2.2,-sin(sine/6)/13,rad(1)),animspd)
  980. lleg.Weld.C1 = clerp(lleg.Weld.C1, cf(0,1,0) * ang(rad(1)-sin(-sine/6)/2.2,sin(-sine/6)/13,-rad(1)),animspd)
  981. if animstopr == false then
  982. rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70)-sin(-sine/12)/13,rad(-30)+sin(-sine/12)/13,-rad(1)),animspd)
  983. end
  984. larm.Weld.C1 = clerp(larm.Weld.C1, cf(0,.5,0) * ang(rad(1)-sin(sine/6)/1.1,sin(sine/6)/13,-rad(1)),animspd)
  985. end
  986. end
  987. if animpose == "Idle" then
  988. if animstop == false then
  989. local animspd = .1
  990. rleg.Weld.C1 = clerp(rleg.Weld.C1, cf(0,1,0) * ang(rad(0),rad(0),rad(0)),animspd)
  991. lleg.Weld.C1 = clerp(lleg.Weld.C1, cf(0,1,0) * ang(rad(0),rad(0),rad(0)),animspd)
  992. if animstopr == false then
  993. rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70)-sin(-sine/12)/13,rad(-30)+sin(-sine/12)/13,-rad(1)),animspd)
  994. end
  995. larm.Weld.C1 = clerp(larm.Weld.C1, cf(0,.5,0) * ang(rad(0)-sin(sine/12)/13,rad(0)+sin(sine/12)/13,-rad(0)),animspd)
  996. torso.Weld.C1 = clerp(torso.Weld.C1, cf(0,-1+cos(sine/10)/11,0),animspd)
  997. end
  998. end
  999. if spill == true then
  1000. rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70),rad(-50),rad(1)),.1)
  1001. end
  1002. if spill2 == true then
  1003. rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70),rad(-5),rad(-30)),.1)
  1004. end
  1005. if mov == true then
  1006. blob.Weld.C0 = clerp(blob.Weld.C0,cf(0,1+cos(sine/5)/6,-2),.1)
  1007. blod.Weld.C0 = clerp(blod.Weld.C0,cf(2,1+cos(sine/4)/5,-2),.1)
  1008. blode.Weld.C0 = clerp(blode.Weld.C0,cf(-2,1+cos(sine/4)/5,-2),.1)
  1009. end
  1010. tl.Text = "Coffee ["..GetCoff().."%]"
  1011. end)
Add Comment
Please, Sign In to add comment