coolgoldboy166

botella

Jan 8th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.69 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(self,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Tool0 = Instance.new("Tool")
  18. Part1 = Instance.new("Part")
  19. SpecialMesh2 = Instance.new("SpecialMesh")
  20. Sound3 = Instance.new("Sound")
  21. LocalScript4 = Instance.new("LocalScript")
  22. Script5 = Instance.new("Script")
  23. Animation6 = Instance.new("Animation")
  24. LocalScript7 = Instance.new("LocalScript")
  25. Tool0.Name = "CampingJuice"
  26. Tool0.Parent = mas
  27. Tool0.TextureId = "http://www.roblox.com/asset/?id=57220785 "
  28. Tool0.GripForward = Vector3.new(0, 1, 0)
  29. Tool0.GripPos = Vector3.new(0, 0, -0.5)
  30. Tool0.GripUp = Vector3.new(0, 0, 1)
  31. Part1.Name = "Handle"
  32. Part1.Parent = Tool0
  33. Part1.Rotation = Vector3.new(-90.0299988, 0.0500000007, -90)
  34. Part1.FormFactor = Enum.FormFactor.Custom
  35. Part1.Size = Vector3.new(0.349999994, 0.370000303, 1.23000491)
  36. 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)
  37. Part1.Position = Vector3.new(-61.814415, 0.614736557, 61.8246841)
  38. Part1.Orientation = Vector3.new(-89.9300003, 118.5, 151.5)
  39. SpecialMesh2.Parent = Part1
  40. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=57219451 "
  41. SpecialMesh2.Scale = Vector3.new(1, 1, 1.5)
  42. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=57219520 "
  43. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  44. SpecialMesh2.Scale = Vector3.new(1, 1, 1.5)
  45. Sound3.Name = "JuiceSound"
  46. Sound3.Parent = Part1
  47. Sound3.Pitch = 1.5
  48. Sound3.SoundId = "http://www.roblox.com/asset/?id=57222314"
  49. Sound3.Volume = 1
  50. LocalScript4.Name = "Local Gui"
  51. LocalScript4.Parent = Tool0
  52. table.insert(cors,sandbox(LocalScript4,function()
  53. Tool = script.Parent
  54.  
  55. local stillEquipped = false
  56.  
  57. function onEquippedLocal(mouse)
  58. stillEquipped = true
  59. if mouse == nil then
  60. print("Mouse not found")
  61. return
  62. end
  63. while stillEquipped do
  64. print("Setting Mouse to go")
  65. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  66. while Tool.Enabled and stillEquipped do
  67. wait(0.01)
  68. end
  69. print("Setting Mouse to wait")
  70. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  71. while not Tool.Enabled and stillEquipped do
  72. wait(0.01)
  73. end
  74. end
  75. end
  76.  
  77.  
  78. function onUnequippedLocal()
  79. stillEquipped = false
  80. end
  81.  
  82. Tool.Equipped:connect(onEquippedLocal)
  83. Tool.Unequipped:connect(onUnequippedLocal)
  84. end))
  85. Script5.Name = "PotionScript"
  86. Script5.Parent = Tool0
  87. table.insert(cors,sandbox(Script5,function()
  88. local Tool = script.Parent
  89. local Juice = Tool.Handle
  90.  
  91. local vCharacter
  92. local myTorso
  93. local myHumanoid
  94. local myHead
  95.  
  96. Tool.Enabled = true
  97.  
  98. local juiceSound
  99. local sparkles
  100.  
  101. local connection
  102.  
  103. newBV = Instance.new("BodyVelocity")
  104. newBV.P = 10000
  105. newBV.maxForce = Vector3.new(0.0, newBV.P, 0.0)
  106. newBV.Name = "BootsBV"
  107.  
  108. function onJump()
  109. print("Jumping")
  110. vCharacter = Tool.Parent
  111. myTorso = vCharacter:FindFirstChild("Torso")
  112. BV = newBV:Clone()
  113. BV.velocity = Vector3.new(0.0, 20.0, 0.0)
  114. BV.Parent = myTorso
  115. wait(2.0)
  116. children = myTorso:GetChildren()
  117. for i = 1, #children do
  118. if children[i].Name == "BootsBV" then
  119. children[i]:Remove()
  120. end
  121. end
  122. end
  123.  
  124. function onActivated()
  125. if Tool.Enabled == false then
  126. return
  127. end
  128.  
  129. Tool.Enabled = false
  130. juiceSound = Juice:FindFirstChild("JuiceSound")
  131. if juiceSound then juiceSound:Play() end
  132. vCharacter = Tool.Parent
  133. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  134. myHead = vCharacter:FindFirstChild("Head")
  135. if myHumanoid == nil then
  136. return
  137. end
  138. if myHead then
  139. sparkles = Instance.new("Sparkles")
  140. sparkles.Parent = myHead
  141. sparkles.Color = Color3.new(102, 153, 0)
  142. end
  143.  
  144. myHumanoid.WalkSpeed = 30
  145. ratio = myHumanoid.Health/myHumanoid.MaxHealth
  146. myHumanoid.MaxHealth = 999
  147. wait(0.10)
  148. myHumanoid.Health = ratio * 999
  149. if connection == nil then connection = myHumanoid.Jumping:connect(onJump) print(connection) end
  150. wait(0.5)
  151. Juice.Transparency = 1.0
  152. wait(0)
  153. if sparkles then sparkles:Remove() end
  154. Juice.Transparency = 0.0
  155. Tool.Enabled = true
  156. end
  157.  
  158. function onEquipped()
  159. end
  160.  
  161. function onUnequipped()
  162. if juiceSound then juiceSound:Stop() end
  163. --[[if myHumanoid then
  164. myHumanoid.WalkSpeed = 16.0
  165. myHumanoid.Health = myHumanoid.Health/myHumanoid.MaxHealth * 100
  166. myHumanoid.MaxHealth = 100
  167. wait(0.10)
  168.  
  169. end]]
  170. if connection then connection:disconnect() connection = nil end
  171. end
  172.  
  173. Tool.Activated:connect(onActivated)
  174. Tool.Equipped:connect(onEquipped)
  175. Tool.Unequipped:connect(onUnequipped)
  176. end))
  177. Animation6.Name = "JuiceAnim"
  178. Animation6.Parent = Tool0
  179. Animation6.AnimationId = "http://www.roblox.com/Asset?ID=57224942"
  180. LocalScript7.Name = "AnimateScript"
  181. LocalScript7.Parent = Tool0
  182. table.insert(cors,sandbox(LocalScript7,function()
  183. local Tool = script.Parent
  184. local Juice = Tool.Handle
  185.  
  186. local vCharacter
  187. local myHumanoid
  188.  
  189. function onActivated()
  190. vCharacter = Tool.Parent
  191. myHumanoid = vCharacter:FindFirstChild("Humanoid")
  192.  
  193. if myHumanoid == nil then
  194. return
  195. end
  196.  
  197. juiceAnim = myHumanoid:LoadAnimation(Tool.JuiceAnim)
  198. if juiceAnim then juiceAnim:Play() end
  199. end
  200.  
  201. function onUnequipped()
  202. if juiceAnim then juiceAnim:Stop() end
  203. end
  204.  
  205. Tool.Activated:connect(onActivated)
  206. Tool.Unequipped:connect(onUnequipped)
  207.  
  208. end))
  209. for i,v in pairs(mas:GetChildren()) do
  210. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  211. pcall(function() v:MakeJoints() end)
  212. end
  213. mas:Destroy()
  214. for i,v in pairs(cors) do
  215. spawn(function()
  216. pcall(v)
  217. end)
  218. end
Add Comment
Please, Sign In to add comment