Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[The Coffee God V2 Prototype
- Added custom clerp animation
- Nerfed and Changed almost every move
- Improved orb rotation smoothness
- Added Coffee cup
- Added limited amount of Coffee and Coffee refills
- Added coffee puddles
- Will Add Revival with animation
- Made by gamingsugo
- Discord: Arvain
- Also ignore titles like Variables etc. I got lazy lol--]]
- --Variables--
- math.randomseed(tick())
- wait(2)
- Coffee = 100
- MaxCoffee = 100
- Nope = false
- function GetCoff()
- if Coffee < 0 then Coffee = 0 end
- return math.floor(Coffee/MaxCoffee*100)
- end
- function GetProgressScale()
- return Coffee/MaxCoffee
- end
- function UseC(amount)
- if amount > Coffee then
- Nope = true
- end
- if amount < Coffee or amount == Coffee then
- Coffee = Coffee - amount
- end
- end
- function AddC(amount)
- Coffee = Coffee + amount
- if Coffee + amount > MaxCoffee then
- Coffee = 100
- end
- end
- melee = false
- Spawned = true
- lol = false
- animstopr = false
- spill2 = false
- animstop = false
- Spawning = true
- Debounce = false
- mov = false
- p = game.Players.LocalPlayer
- local sin, cos, atan, rad, rand, rands = math.sin, math.cos, math.atan, math.rad, math.random, math.randomseed
- mouse= p:GetMouse()
- char = p.Character
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- rleg = char["Right Leg"]
- lleg = char["Left Leg"]
- hed = char.Head
- torso = char.Torso
- root = char.HumanoidRootPart
- sinestep = 0
- local sine, change = 0, 1
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local och = 0
- local ffing = false
- local rs = game:service'RunService'
- local srs = rs.Stepped
- local cf, ang, eu, v3 = CFrame.new, CFrame.Angles, CFrame.fromEulerAnglesXYZ, Vector3.new
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return cf(com1[1],com1[2],com1[3]) * ang(select(4,unpack(com1)))
- end
- srs:connect(function()
- sine = tick() * (change * 25)
- end)
- --Welds--
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- --GUI--
- local GUI = Instance.new("ScreenGui",p.PlayerGui)
- GUI.Name = "BloodlustGUI"
- local f1 = Instance.new("Frame",GUI)
- f1.Name = "Container"
- f1.BackgroundColor3 = Color3.new(1,1,1)
- f1.ZIndex = 1
- f1.BackgroundTransparency = 0.25
- f1.Size = UDim2.new(0,400,0,50)
- f1.Position = UDim2.new(0,100,0.75,0)
- local f2 = Instance.new("Frame",f1)
- f2.Name = "CoffeeMeter"
- f2.BackgroundColor3 = Color3.new(.4,0,.1)
- f2.Size = UDim2.new(0,0,0,40)
- f2.Position = UDim2.new(0,0,0,5)
- local tl = Instance.new("TextLabel",f1)
- tl.Size = UDim2.new(1,0,1,0)
- tl.BackgroundTransparency = 1
- tl.TextColor3 = Color3.new(0,0,0)
- tl.Font = Enum.Font.Arial
- tl.TextSize = 24
- local naeeym = Instance.new("BillboardGui",char)
- naeeym.Size = UDim2.new(0,100,0,40)
- naeeym.StudsOffset = Vector3.new(0,2,0)
- naeeym.Adornee = char.Head
- local tecks = Instance.new("TextLabel",naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Font = "Bodoni"
- tecks.FontSize = "Size36"
- tecks.TextStrokeTransparency = 0.5
- tecks.TextColor3 = Color3.new(0,0,0)
- tecks.Size = UDim2.new(1,0,0.5,0)
- tecks.Text = ""
- function chat(text)
- tecks.Text = text
- end
- --Coffee Cup--
- cup = Instance.new("Part")
- cup.Parent = rarm
- cup.Size = Vector3.new(0.1,0.1,0.1)
- cup.BrickColor = BrickColor.new("Institutional white")
- cupm = Instance.new("SpecialMesh")
- cupm.MeshId = 'rbxassetid://433095032'
- cupm.Scale = Vector3.new(.1,.1,.1)
- cupm.Parent = cup
- newWeld(rarm, cup,0,0,0)
- cup.Weld.C1 = CFrame.new(0.3,0.3,1.2) * CFrame.Angles(rad(70),rad(0),rad(0))
- liq = Instance.new("Part")
- liq.Size = Vector3.new(.4,.5,.4)
- liq.Material = "Slate"
- liq.Shape = "Cylinder"
- liq.Parent = cup
- liq.BrickColor = BrickColor.new("Burnt Sienna")
- newWeld(cup, liq,0,0,0)
- liq.Weld.C1 = CFrame.new(0,0.1,0) * ang(rad(0),rad(0),rad(90))
- function Empty()
- animstop = true
- wait()
- chat("Not Enough Coffee")
- char.Humanoid.WalkSpeed = 0
- for i=0,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
- end
- wait(0.5)
- for i=0,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-50),rad(-20),rad(180)),.1)
- end
- wait(0.01)
- for i=0,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
- end
- for i=0,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,0.2,.2) * ang(rad(-50),rad(-20),rad(180)),.1)
- end
- wait(0.01)
- for i=0,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-1,.2,.2) * ang(rad(-70),rad(-20),rad(180)),.1)
- end
- wait(0.5)
- tecks.Text = ""
- char.Humanoid.WalkSpeed = 16
- animstop = false
- end
- mouse.KeyDown:connect(function(key)
- if key == 'q' then
- if Spawned == true then
- if Debounce == false then
- Debounce = true
- UseC(10)
- if Nope == true then
- Empty()
- end
- if Nope == false then
- Debounce = true
- animstop = true
- char.Humanoid.WalkSpeed = 0
- spill = true
- wait(2)
- spill = false
- spill2 = true
- blob = Instance.new("Part")
- blob.Parent = char
- blob.Material = "Slate"
- blob.Size = Vector3.new(0.7,0.7,0.7)
- blob.Anchored = false
- blob.Shape = "Ball"
- blob.CanCollide = false
- blob.Transparency = 0.1
- newWeld(torso,blob,0,0,0)
- blob.BrickColor = BrickColor.new("Burnt Sienna")
- blod = Instance.new("Part")
- blod.Parent = char
- blod.Material = "Slate"
- blod.Size = Vector3.new(0.7,0.7,0.7)
- blod.Anchored = false
- blod.Shape = "Ball"
- blod.CanCollide = false
- blod.Transparency = 0.1
- blod.BrickColor = BrickColor.new("Burnt Sienna")
- newWeld(torso,blod,0,0,0)
- blode = Instance.new("Part")
- blode.Parent = char
- blode.Material = "Slate"
- blode.Size = Vector3.new(0.7,0.7,0.7)
- blode.Anchored = false
- blode.CanCollide = false
- blode.Shape = "Ball"
- blode.Transparency = 0.1
- blode.BrickColor = BrickColor.new("Burnt Sienna")
- newWeld(torso,blode,0,0,0)
- mov = true
- wait(2)
- mov = false
- spill2 = false
- animstop = false
- blode.Weld:Destroy()
- blode.CFrame = CFrame.new(blode.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
- local heck = Instance.new('BodyVelocity',blode)
- heck.Velocity = (blode.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
- local coru = coroutine.wrap(function()
- wait(0.45)
- if heck then
- heck:Destroy()
- end
- end)
- coru()
- blode.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- local echar = ehum.Parent
- for i=1,10 do
- local par = blode:Clone()
- par.Size = Vector3.new(0.4,0.4,0.4)
- par.Parent = workspace
- par.CFrame = blode.CFrame
- par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- game.Debris:AddItem(par,1)
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- local ring = Instance.new("Part")
- ring.Parent = workspace
- ring.CFrame = blode.CFrame * ang(rad(0),rad(0),rad(90))
- local siz = 0
- ring.CanCollide = false
- ring.Name = "Ring"
- ring.Anchored = true
- ring.Shape = "Cylinder"
- ring.BrickColor = BrickColor.new("Burnt Sienna")
- ring.Material = "Slate"
- ring.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- end
- end)
- while siz < 10 do
- wait()
- local start = ring.CFrame * cf(-.12,0,0)
- siz = siz + 0.5
- ring.Size = Vector3.new(0.1,siz,siz)
- ring.CFrame = start
- end
- ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
- ring.Anchored = false
- ring.CanCollide = true
- wait(1)
- ring.Anchored = true
- ring.CanCollide = false
- end
- blode:Destroy()
- end)
- wait(.7)
- blob.Weld:Destroy()
- blob.CFrame = CFrame.new(blob.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
- local heck = Instance.new('BodyVelocity',blob)
- heck.Velocity = (blob.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
- local coru = coroutine.wrap(function()
- wait(0.45)
- if heck then
- heck:Destroy()
- end
- end)
- coru()
- blob.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- local echar = ehum.Parent
- for i=1,10 do
- local par = blob:Clone()
- par.Size = Vector3.new(0.4,0.4,0.4)
- par.Parent = workspace
- par.CFrame = blob.CFrame
- par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- game.Debris:AddItem(par,1)
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- local ring = Instance.new("Part")
- ring.Parent = workspace
- ring.CFrame = blob.CFrame * ang(rad(0),rad(0),rad(90))
- local siz = 0
- ring.CanCollide = false
- ring.Anchored = true
- ring.Name = "Ring"
- ring.BrickColor = BrickColor.new("Burnt Sienna")
- ring.Material = "Slate"
- ring.Shape = "Cylinder"
- ring.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- end
- end)
- while siz < 10 do
- wait()
- local start = ring.CFrame * cf(-.12,0,0)
- siz = siz + 0.5
- ring.Size = Vector3.new(0.1,siz,siz)
- ring.CFrame = start
- end
- ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
- ring.Anchored = false
- ring.CanCollide = true
- wait(1)
- ring.Anchored = true
- ring.CanCollide = false
- end
- blob:Destroy()
- end)
- wait(.7)
- blod.Weld:Destroy()
- blod.CFrame = CFrame.new(blod.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
- local heck = Instance.new('BodyVelocity',blod)
- heck.Velocity = (blod.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
- local coru = coroutine.wrap(function()
- wait(0.45)
- if heck then
- heck:Destroy()
- end
- end)
- coru()
- blod.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- local echar = ehum.Parent
- for i=1,10 do
- local par = blod:Clone()
- par.Size = Vector3.new(0.4,0.4,0.4)
- par.Parent = workspace
- par.CFrame = blod.CFrame
- par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- game.Debris:AddItem(par,1)
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- local ring = Instance.new("Part")
- ring.Parent = workspace
- ring.CFrame = blod.CFrame * ang(rad(0),rad(0),rad(90))
- local siz = 0
- ring.CanCollide = false
- ring.Anchored = true
- ring.Material = "Slate"
- ring.Name = "Ring"
- ring.BrickColor = BrickColor.new("Burnt Sienna")
- ring.Shape = "Cylinder"
- ring.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(25)
- end
- end)
- while siz < 10 do
- wait()
- local start = ring.CFrame * cf(-.12,0,0)
- siz = siz + 0.5
- ring.Size = Vector3.new(0.1,siz,siz)
- ring.CFrame = start
- end
- ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
- ring.Anchored = false
- ring.CanCollide = true
- wait(1)
- ring.Anchored = true
- ring.CanCollide = false
- end
- blod:Destroy()
- end)
- char.Humanoid.WalkSpeed = 16
- Debounce = false
- end
- Nope = false
- Debounce = false
- end
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'x' then
- if Debounce == false then
- Debounce = true
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "Ring" and v:IsA("Part") then
- v.Shape = "Ball"
- v.CFrame = v.CFrame * cf(2,0,0)
- si = 5
- v.Size = Vector3.new(5,5,5)
- AddC(1.66666667)
- while si > 0 do
- wait()
- si = si - 0.5
- v.Size = Vector3.new(si,si,si)
- end
- v:Destroy()
- end
- end
- Debounce = false
- end
- end
- end)
- --coffee machine--
- function putin()
- animstop = true
- char.Humanoid.WalkSpeed = 0
- for i=1,30,1 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.8,.2) * ang(rad(-80),rad(15),rad(0)),.1)
- end
- end
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("CylinderMesh")
- o8 = Instance.new("Part")
- o9 = Instance.new("CylinderMesh")
- o10 = Instance.new("Part")
- o11 = Instance.new("CylinderMesh")
- o1.Name = "Coffee"
- o1.Parent = workspace
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Institutional white")
- o2.Position = Vector3.new(1.8299713, 0.209024996, -1.5288849)--88 and 52 is main
- o2.Rotation = Vector3.new(-180, 89.9599991, 0)
- o2.Anchored = true
- o2.CanCollide = false
- o2.FormFactor = Enum.FormFactor.Plate
- o2.Size = Vector3.new(2, 0.400000006, 1)
- 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)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Institutional white")
- o3.Position = Vector3.new(1.8299713, 0.909020007, -3.0288773)
- o3.Anchored = true
- o3.FormFactor = Enum.FormFactor.Plate
- o3.Size = Vector3.new(1, 1.20000005, 1)
- o3.CanCollide = false
- 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)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o4.Parent = o3
- o4.Scale = Vector3.new(1, 1.20000005, 1)
- o4.MeshType = Enum.MeshType.Brick
- o5.Parent = o1
- o5.BrickColor = BrickColor.new("Institutional white")
- o5.Position = Vector3.new(1.8299713, 1.80901897, -2.5288849)
- o5.Rotation = Vector3.new(-180, 89.9599991, 0)
- o5.Anchored = true
- o5.CanCollide = false
- o5.FormFactor = Enum.FormFactor.Plate
- o5.Size = Vector3.new(2, 0.400000006, 1)
- 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)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o6.Name = "Smooth Block Model"
- o6.Parent = o1
- o6.BrickColor = BrickColor.new("Institutional white")
- o6.Position = Vector3.new(1.8299713, 1.80901897, -1.5288773)
- o6.Rotation = Vector3.new(-180, 0, 180)
- o6.Anchored = true
- o6.CanCollide = false
- o6.FormFactor = Enum.FormFactor.Plate
- o6.Size = Vector3.new(1, 0.400000006, 1)
- 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)
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o7.Parent = o6
- o7.Offset = Vector3.new(0, -0.150000006, 0)
- o7.Scale = Vector3.new(1, 1.79999995, 1)
- o8.Name = "Smooth Block Model"
- o8.Parent = o1
- o8.BrickColor = BrickColor.new("Institutional white")
- o8.Position = Vector3.new(1.8299713, 0.209024996, -1.5288773)
- o8.Rotation = Vector3.new(-180, 0, 180)
- o8.Anchored = true
- o8.CanCollide = false
- o8.FormFactor = Enum.FormFactor.Plate
- o8.Size = Vector3.new(1, 0.400000006, 1)
- 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)
- o8.TopSurface = Enum.SurfaceType.Smooth
- o8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o9.Parent = o8
- o9.Offset = Vector3.new(0, -0.150000006, 0)
- o9.Scale = Vector3.new(1, 1.79999995, 1)
- o10.Name = "Smooth Block Model"
- o10.Parent = o1
- o10.BrickColor = BrickColor.new("Institutional white")
- o10.Position = Vector3.new(1.8299713, 2.80800796, -1.5288849)
- o10.Rotation = Vector3.new(-180, 0, 180)
- o10.Anchored = true
- o10.CanCollide = false
- o10.FormFactor = Enum.FormFactor.Plate
- o10.Size = Vector3.new(1, 0.400000006, 1)
- 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)
- o10.TopSurface = Enum.SurfaceType.Smooth
- o10.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o11.Parent = o10
- o11.Offset = Vector3.new(0, -1.5, -1)
- o11.Scale = Vector3.new(1.20000005, 0.600000024, 1.5)
- o2.Transparency = 1
- o3.Transparency = 1
- o5.Transparency = 1
- o6.Transparency = 1
- o8.Transparency = 1
- o10.Transparency = 1
- --cont--
- mouse.KeyDown:connect(function(key)
- if key == 'r' then
- if Debounce == false then
- Debounce = true
- AddC(100)
- o2.Transparency = 0
- o3.Transparency = 0
- o5.Transparency = 0
- o6.Transparency = 0
- o8.Transparency = 0
- o10.Transparency = 0
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- putin()
- local S = Instance.new("Sound",o2)
- S.Volume = 20
- S.SoundId = "rbxassetid://984790117"
- S:Play()
- wait(5)
- S:Destroy()
- animstop = false
- char.Humanoid.WalkSpeed = 16
- o2.Transparency = 1
- o3.Transparency = 1
- o5.Transparency = 1
- o6.Transparency = 1
- o8.Transparency = 1
- o10.Transparency = 1
- Debounce = false
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'e' then
- if Debounce == false then
- Debounce = true
- UseC(50)
- if Nope == true then
- Empty()
- end
- if Nope == false then
- char.Humanoid.WalkSpeed = 0
- blob = Instance.new("Part")
- blob.Parent = char
- blob.Material = "Slate"
- blob.Size = Vector3.new(.7,.7,.7)
- blob.Anchored = true
- blobm = Instance.new("SpecialMesh")
- blobm.Parent = blob
- blob.Shape = "Ball"
- blobm.MeshId = "rbxassetid://430736398"
- blob.CanCollide = false
- blob.Transparency = 0.1
- blob.CFrame = torso.CFrame * cf(0,10,0)
- blob.BrickColor = BrickColor.new("Burnt Sienna")
- blobe = Instance.new("Part")
- blobe.Parent = char
- blobe.Material = "Slate"
- blobe.Size = Vector3.new(0.7,0.7,0.7)
- blobe.Anchored = true
- blobe.Shape = "Ball"
- blobe.CanCollide = false
- blobe.Transparency = 0.1
- blobe.Name = "blobe"
- blobe.BrickColor = BrickColor.new("Burnt Sienna")
- blobe.CFrame = blob.CFrame * cf(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- local si = 0
- for i=0,100,1 do
- wait(0.05)
- clo = blobe:Clone()
- clo.Parent = char
- clo.CFrame = blob.CFrame * cf(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- end
- for i=0,30,1 do
- wait()
- for i,v in pairs (char:GetChildren()) do
- if v.Name == "blobe" then
- v.CFrame = clerp(v.CFrame,blob.CFrame,.1)
- end
- end
- end
- for i,v in pairs (char:GetChildren()) do
- if v.Name == "blobe" then
- v:Destroy()
- end
- end
- while si < 5 do
- wait()
- si = si + 0.5
- blobm.Scale = Vector3.new(si,si,si)
- end
- blob.Anchored = false
- wait()
- blob.CFrame = CFrame.new(blob.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
- local heck = Instance.new('BodyVelocity',blob)
- heck.Velocity = (blob.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
- local coru = coroutine.wrap(function()
- wait(.45)
- if heck then
- heck:Destroy()
- end
- end)
- coru()
- blob.Touched:connect(function(hit)
- local S = Instance.new("Sound",blob)
- S.Volume = 100
- S.SoundId = "rbxassetid://142070127"
- S:Play()
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(75)
- local echar = ehum.Parent
- for i=1,10 do
- local par = blob:Clone()
- par.Size = Vector3.new(3,3,3)
- par.Parent = workspace
- par.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(10)
- end
- end)
- par.CFrame = blob.CFrame
- par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- game.Debris:AddItem(par,1)
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- local ring = Instance.new("Part")
- local rin = Instance.new("Part")
- local rinm = Instance.new("SpecialMesh")
- rinm.MeshId = "rbxassetid://1323306"
- rinm.Parent = rin
- rin.Parent = workspace
- rin.CFrame = blob.CFrame * cf(0,1,0) * ang(rad(0),rad(0),rad(0))
- rin.Anchored = false
- rin.CanCollide = true
- rin.BrickColor = BrickColor.new("Burnt Sienna")
- rin.Material = "Slate"
- ring.Parent = workspace
- ring.CFrame = blob.CFrame * ang(rad(0),rad(0),rad(90))
- local siz = 0
- ring.CanCollide = false
- ring.Anchored = true
- ring.Material = "Slate"
- ring.Name = "Ring"
- ring.BrickColor = BrickColor.new("Burnt Sienna")
- ring.Shape = "Cylinder"
- ring.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(50)
- end
- end)
- rin.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(30)
- end
- end)
- rin.CanCollide = false
- rin.Anchored = true
- while siz < 20 do
- wait()
- local start = ring.CFrame * cf(-.12,0,0)
- siz = siz + 0.5
- ring.Size = Vector3.new(0.1,siz,siz)
- ring.CFrame = start
- local start2 = rin.CFrame
- rin.Size = Vector3.new(siz,siz,siz)
- rinm.Scale = Vector3.new(siz,siz,siz)
- rin.CFrame = start2
- end
- ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
- ring.Anchored = false
- ring.CanCollide = true
- wait(1)
- ring.Anchored = true
- ring.CanCollide = false
- rin:Destroy()
- end
- blob:Destroy()
- wait(2)
- S:Destroy()
- end)
- char.Humanoid.WalkSpeed = 16
- Debounce = false
- end
- Debounce = false
- Nope = false
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'f' then
- if Debounce == false then
- Debounce = true
- if melee == false then
- UseC(100)
- end
- if Nope == true then
- Empty()
- end
- if Nope == false then
- if melee == true then
- melee = false
- lol = true
- AddC(100)
- end
- if melee == false then
- if lol == false then
- melee = true
- end
- end
- lol = false
- end
- Debounce = false
- Nope = false
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if melee == true then
- if Debounce == false then
- Debounce = true
- local HitBox = Instance.new("Part",cup)
- HitBox.Size = Vector3.new(2,2,2)
- HitBox.Transparency = 1
- HitBox.CanCollide = false
- HitBox.Anchored = false
- newWeld(cup,HitBox,0,0,0)
- HitBox.Weld.C1 = CFrame.new(0,0,0)
- animstopr = true
- for i=1,20 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.5,.2) * ang(rad(-100),rad(30),rad(0)),.1)
- end
- HitBox.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- local S = Instance.new("Sound",HitBox)
- S.Volume = 100
- S.SoundId = "rbxassetid://367499850"
- ehum:TakeDamage(20)
- S:Play()
- wait(1)
- S:Destroy()
- HitBox:Destroy()
- end
- end)
- for i=1,20 do
- wait()
- rarm.Weld.C1 = clerp(rarm.Weld.C1,cf(-.1,.8,.2) * ang(rad(-80),rad(-50),rad(0)),.3)
- end
- wait(1)
- animstopr = false
- HitBox:Destroy()
- Debounce = false
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'z' then
- if Debounce == false then
- Debounce = true
- if Nope == true then
- Empty()
- end
- if Nope == false then
- for i=0,25 do
- wait()
- UseC(2)
- blob = Instance.new("Part",workspace)
- blob.Name = "blob"
- blob.Material = "Slate"
- blob.Size = Vector3.new(.2,.2,.2)
- blob.Anchored = true
- blob.Shape = "Ball"
- blob.CanCollide = false
- blob.Transparency = 0.1
- blob.CFrame = torso.CFrame * cf(math.random(-4,4),math.random(8,10),math.random(-4,4))
- blob.BrickColor = BrickColor.new("Burnt Sienna")
- end
- wait(1)
- for i,v in pairs(workspace:GetChildren())do
- if v.Name == "blob" then
- v.Anchored = false
- wait()
- v.CFrame = CFrame.new(v.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
- local heck = Instance.new('BodyVelocity',v)
- heck.Velocity = (v.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
- local coru = coroutine.wrap(function()
- wait(.45)
- if heck then
- heck:Destroy()
- end
- end)
- coru()
- v.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(5)
- local echar = ehum.Parent
- for i=1,10 do
- local par = v:Clone()
- par.Size = Vector3.new(0.1,0.1,0.1)
- par.Parent = workspace
- par.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(5)
- end
- end)
- par.CFrame = v.CFrame
- par.BodyVelocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- par.BodyVelocity.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- game.Debris:AddItem(par,1)
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- local ring = Instance.new("Part")
- ring.Parent = workspace
- ring.CFrame = v.CFrame * ang(rad(0),rad(0),rad(90))
- local siz = 0
- ring.CanCollide = false
- ring.Anchored = true
- ring.Material = "Slate"
- ring.Name = "Ring"
- ring.BrickColor = BrickColor.new("Burnt Sienna")
- ring.Shape = "Cylinder"
- ring.Touched:connect(function(hit)
- local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid")
- if ehum ~= char.Humanoid and ehum ~= nil then
- ehum:TakeDamage(5)
- end
- end)
- while siz < 5 do
- wait()
- local start = ring.CFrame * cf(-.12,0,0)
- siz = siz + 0.5
- ring.Size = Vector3.new(0.1,siz,siz)
- ring.CFrame = start
- end
- ring.CFrame = ring.CFrame * CFrame.new(0,1,0)
- ring.Anchored = false
- ring.CanCollide = true
- wait(1)
- ring.Anchored = true
- ring.CanCollide = false
- end
- v:Destroy()
- wait(2)
- end)
- end
- end
- end
- Debounce = false
- Nope = false
- end
- end
- end)
- --Animations--
- srs:connect(function()
- f2:TweenSize(UDim2.new(GetProgressScale(),0,0,40),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,0.5,true)
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- end
- if animpose == "Walking" then
- if animstop == false then
- local animspd = .1
- 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)
- 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)
- if animstopr == false then
- 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)
- end
- 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)
- end
- end
- if animpose == "Idle" then
- if animstop == false then
- local animspd = .1
- rleg.Weld.C1 = clerp(rleg.Weld.C1, cf(0,1,0) * ang(rad(0),rad(0),rad(0)),animspd)
- lleg.Weld.C1 = clerp(lleg.Weld.C1, cf(0,1,0) * ang(rad(0),rad(0),rad(0)),animspd)
- if animstopr == false then
- 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)
- end
- 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)
- torso.Weld.C1 = clerp(torso.Weld.C1, cf(0,-1+cos(sine/10)/11,0),animspd)
- end
- end
- if spill == true then
- rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70),rad(-50),rad(1)),.1)
- end
- if spill2 == true then
- rarm.Weld.C1 = clerp(rarm.Weld.C1, cf(-.1,.8,.2) * ang(rad(-70),rad(-5),rad(-30)),.1)
- end
- if mov == true then
- blob.Weld.C0 = clerp(blob.Weld.C0,cf(0,1+cos(sine/5)/6,-2),.1)
- blod.Weld.C0 = clerp(blod.Weld.C0,cf(2,1+cos(sine/4)/5,-2),.1)
- blode.Weld.C0 = clerp(blode.Weld.C0,cf(-2,1+cos(sine/4)/5,-2),.1)
- end
- tl.Text = "Coffee ["..GetCoff().."%]"
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement