Prephy

Coca cola

Apr 22nd, 2021
722
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Tool = Instance.new("Tool",owner.Backpack)
  2. Tool.TextureId="http://www.roblox.com/asset/?id=6049537884"
  3. Tool.Name="Cola"
  4. local COLA = Instance.new("Part",Tool)
  5. COLA.Name= "Handle"
  6. COLA.Size = Vector3.new(1, 1.2, 1)
  7. local mesh = Instance.new("SpecialMesh",COLA)
  8. mesh.MeshId = "http://www.roblox.com/asset/?id=28501599"
  9. mesh.TextureId = "http://www.roblox.com/asset/?id=34136088"
  10.  
  11.  
  12. enabled = true
  13.  
  14.  
  15. function onActivated()
  16.     if not enabled  then
  17.         return
  18.     end
  19.  
  20.     enabled = false
  21.     Tool.GripForward = Vector3.new(0,-.759,-.651)
  22.     Tool.GripPos = Vector3.new(1.5,-.5,.3)
  23.     Tool.GripRight = Vector3.new(1,0,0)
  24.     Tool.GripUp = Vector3.new(0,.651,-.759)
  25.  
  26.    
  27.     local dr = COLA:FindFirstChild("Drink")
  28.     if dr then
  29.         dr:Play()
  30.     else
  31.         local drinks = Instance.new("Sound",COLA) drinks.SoundId='http://www.roblox.com/asset/?id=10722059' drinks.Name='Drink'
  32.         drinks:Play()
  33.     end
  34.  
  35.     wait(3)
  36.  
  37.     local h = Tool.Parent:FindFirstChild("Humanoid")
  38.     if (h ~= nil) then
  39.         if (h.MaxHealth > h.Health + 5) then
  40.             h.Health = h.Health + 5
  41.         else   
  42.             h.Health = h.MaxHealth
  43.         end
  44.     end
  45.  
  46.     Tool.GripForward = Vector3.new(-.976,0,-0.217)
  47.     Tool.GripPos = Vector3.new(0.03,0,0)
  48.     Tool.GripRight = Vector3.new(.217,0,-.976)
  49.     Tool.GripUp = Vector3.new(0,1,0)
  50.  
  51.     enabled = true
  52.  
  53. end
  54.  
  55. function onEquipped()
  56.     local dre = COLA:FindFirstChild("open")
  57.     if dre then
  58.         dre:Play()
  59.     else
  60.         local open = Instance.new("Sound",COLA) open.SoundId='http://www.roblox.com/asset/?id=10721950'
  61.         open:Play() open.Name='open'
  62.     end
  63. end
  64.  
  65. Tool.Activated:connect(onActivated)
  66. Tool.Equipped:connect(onEquipped)
  67.  
  68.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×