Advertisement
DarkScriptZEditors

Coffe God

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