Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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")
- Animation6 = Instance.new("Animation")
- LocalScript7 = Instance.new("LocalScript")
- Tool0.Name = "CampingJuice"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=57220785 "
- Tool0.GripForward = Vector3.new(0, 1, 0)
- Tool0.GripPos = Vector3.new(0, 0, -0.5)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Rotation = Vector3.new(-90.0299988, 0.0500000007, -90)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.349999994, 0.370000303, 1.23000491)
- Part1.CFrame = CFrame.new(-61.814415, 0.614736557, 61.8246841, 3.23359444e-07, 0.999999821, 0.000948157394, 0.000514732325, -0.000948157161, 0.999999344, 1.00000024, 6.11897235e-08, -0.000514732616)
- Part1.Position = Vector3.new(-61.814415, 0.614736557, 61.8246841)
- Part1.Orientation = Vector3.new(-89.9300003, 118.5, 151.5)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=57219451 "
- SpecialMesh2.Scale = Vector3.new(1, 1, 1.5)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=57219520 "
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1, 1, 1.5)
- Sound3.Name = "JuiceSound"
- Sound3.Parent = Part1
- Sound3.Pitch = 1.5
- Sound3.SoundId = "http://www.roblox.com/asset/?id=57222314"
- Sound3.Volume = 1
- 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 = "PotionScript"
- Script5.Parent = Tool0
- table.insert(cors,sandbox(Script5,function()
- local Tool = script.Parent
- local Juice = Tool.Handle
- local vCharacter
- local myTorso
- local myHumanoid
- local myHead
- Tool.Enabled = true
- local juiceSound
- local sparkles
- local connection
- newBV = Instance.new("BodyVelocity")
- newBV.P = 10000
- newBV.maxForce = Vector3.new(0.0, newBV.P, 0.0)
- newBV.Name = "BootsBV"
- function onJump()
- print("Jumping")
- vCharacter = Tool.Parent
- myTorso = vCharacter:FindFirstChild("Torso")
- BV = newBV:Clone()
- BV.velocity = Vector3.new(0.0, 20.0, 0.0)
- BV.Parent = myTorso
- wait(2.0)
- children = myTorso:GetChildren()
- for i = 1, #children do
- if children[i].Name == "BootsBV" then
- children[i]:Remove()
- end
- end
- end
- function onActivated()
- if Tool.Enabled == false then
- return
- end
- Tool.Enabled = false
- juiceSound = Juice:FindFirstChild("JuiceSound")
- if juiceSound then juiceSound:Play() end
- vCharacter = Tool.Parent
- myHumanoid = vCharacter:FindFirstChild("Humanoid")
- myHead = vCharacter:FindFirstChild("Head")
- if myHumanoid == nil then
- return
- end
- if myHead then
- sparkles = Instance.new("Sparkles")
- sparkles.Parent = myHead
- sparkles.Color = Color3.new(102, 153, 0)
- end
- myHumanoid.WalkSpeed = 30
- ratio = myHumanoid.Health/myHumanoid.MaxHealth
- myHumanoid.MaxHealth = 999
- wait(0.10)
- myHumanoid.Health = ratio * 999
- if connection == nil then connection = myHumanoid.Jumping:connect(onJump) print(connection) end
- wait(0.5)
- Juice.Transparency = 1.0
- wait(0)
- if sparkles then sparkles:Remove() end
- Juice.Transparency = 0.0
- Tool.Enabled = true
- end
- function onEquipped()
- end
- function onUnequipped()
- if juiceSound then juiceSound:Stop() end
- --[[if myHumanoid then
- myHumanoid.WalkSpeed = 16.0
- myHumanoid.Health = myHumanoid.Health/myHumanoid.MaxHealth * 100
- myHumanoid.MaxHealth = 100
- wait(0.10)
- end]]
- if connection then connection:disconnect() connection = nil end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- end))
- Animation6.Name = "JuiceAnim"
- Animation6.Parent = Tool0
- Animation6.AnimationId = "http://www.roblox.com/Asset?ID=57224942"
- LocalScript7.Name = "AnimateScript"
- LocalScript7.Parent = Tool0
- table.insert(cors,sandbox(LocalScript7,function()
- local Tool = script.Parent
- local Juice = Tool.Handle
- local vCharacter
- local myHumanoid
- function onActivated()
- vCharacter = Tool.Parent
- myHumanoid = vCharacter:FindFirstChild("Humanoid")
- if myHumanoid == nil then
- return
- end
- juiceAnim = myHumanoid:LoadAnimation(Tool.JuiceAnim)
- if juiceAnim then juiceAnim:Play() end
- end
- function onUnequipped()
- if juiceAnim then juiceAnim:Stop() end
- end
- Tool.Activated:connect(onActivated)
- Tool.Unequipped:connect(onUnequipped)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment