Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- LocalScript4 = Instance.new("LocalScript")
- Script5 = Instance.new("Script")
- Script6 = Instance.new("Script")
- Tool0.Name = "Slurpee"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=85108372 "
- Tool0.Grip = CFrame.new(0.200000003, -0.200000003, 0, 0.800000012, -0, 0.600000024, 0.600000024, 0, -0.800000012, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-0.600000024, 0.800000012, -0)
- Tool0.GripPos = Vector3.new(0.200000003, -0.200000003, 0)
- Tool0.GripRight = Vector3.new(0.800000012, 0.600000024, 0)
- Tool0.GripUp = Vector3.new(-0, 0, 1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(8.31000042, 0.694999993, 152.369995, 0, -1, 0, 0, 0, 1, -1, 0, 0)
- Part1.Orientation = Vector3.new(-90, 90, 0)
- Part1.Position = Vector3.new(8.31000042, 0.694999993, 152.369995)
- Part1.Rotation = Vector3.new(-90, 0, 90)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Size = Vector3.new(0.620002508, 0.740000069, 1.3899982)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Locked = true
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dark stone grey")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=54969977 "
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=85108280 "
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Sound3.Name = "DrinkSound"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=10722059"
- LocalScript4.Name = "Local Gui"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- Tool = script.Parent
- local stillEquipped = false
- function onEquippedLocal(mouse)
- stillEquipped = true
- if mouse == nil then
- print("Mouse not found")
- return
- end
- while stillEquipped do
- print("Setting Mouse to go")
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- while Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- print("Setting Mouse to wait")
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- while not Tool.Enabled and stillEquipped do
- wait(0.01)
- end
- end
- end
- function onUnequippedLocal()
- stillEquipped = false
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script5.Name = "SlurpeeScript"
- Script5.Parent = Tool0
- table.insert(cors,sandbox(Script5,function()
- local Tool = script.Parent;
- enabled = true
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- Tool.GripForward = Vector3.new(0, 0.4472, -0.8944)
- Tool.GripPos = Vector3.new(1.5, -0.5, -0.1)
- Tool.GripRight = Vector3.new(1.0, 0.0, 0.0)
- Tool.GripUp = Vector3.new(0, 0.8944, 0.4472)
- Tool.Handle.DrinkSound:Play()
- wait(2.0)
- local h = Tool.Parent:FindFirstChild("Humanoid")
- if (h ~= nil) then
- if (Tool.Parent:FindFirstChild("SpeedEffect") == nil) then
- local s = script.Parent.SpeedEffect:Clone()
- s.Disabled = false
- s.Parent = Tool.Parent
- end
- end
- Tool.GripForward = Vector3.new(-0.6, 0.8, 0.0)
- Tool.GripPos = Vector3.new(0.2, -0.2,0)
- Tool.GripRight = Vector3.new(0.8, 0.6, 0.0)
- Tool.GripUp = Vector3.new(0.0, 0.0, 1.0)
- wait(30)
- enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end))
- Script6.Name = "SpeedEffect"
- Script6.Parent = Tool0
- table.insert(cors,sandbox(Script6,function()
- print("run latte")
- -- assume we are in the character, let's check
- function sepuku()
- script.Parent = nil
- end
- local h = script.Parent:FindFirstChild("Humanoid")
- if (h == nil) then sepuku() end
- local oldSpeed = h.WalkSpeed
- h.WalkSpeed = h.WalkSpeed * 1.5
- local ratio = h.Health/h.MaxHealth
- h.MaxHealth = 125
- h.Health = ratio * 125
- local torso = script.Parent:FindFirstChild("Torso") or script.Parent:FindFirstChild("UpperTorso")
- if (torso == nil) then sepuku() end
- local head = script.Parent:FindFirstChild("Head")
- if (head == nil) then head = torso end
- local s = Instance.new("Sparkles")
- s.Color = Color3.new(0.6, 0, 0)
- s.Parent = torso
- local count = h:FindFirstChild("CoffeeCount")
- if (count == nil) then
- count = Instance.new("IntValue")
- count.Name = "CoffeeCount"
- count.Value = 1
- count.Parent = h
- else
- if (count.Value > 3) then
- if (math.random() > .5) then
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
- sound.Parent = head
- sound.Volume = 1
- sound:play()
- local e = Instance.new("Explosion")
- e.BlastRadius = 4
- e.Position = head.Position
- s:Clone().Parent = head
- e.Parent = head
- end
- end
- count.Value = count.Value + 1
- end
- wait(30)
- h.WalkSpeed = oldSpeed
- ratio = h.Health/h.MaxHealth
- h.Health = ratio * 100
- h.MaxHealth = 100
- s:Remove()
- script.Parent = nil
- end))
- Script6.Disabled = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement