Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Tool = Instance.new("Tool",owner.Backpack)
- Tool.TextureId="http://www.roblox.com/asset/?id=6049537884"
- Tool.Name="Cola"
- local COLA = Instance.new("Part",Tool)
- COLA.Name= "Handle"
- COLA.Size = Vector3.new(1, 1.2, 1)
- local mesh = Instance.new("SpecialMesh",COLA)
- mesh.MeshId = "http://www.roblox.com/asset/?id=28501599"
- mesh.TextureId = "http://www.roblox.com/asset/?id=34136088"
- enabled = true
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- Tool.GripForward = Vector3.new(0,-.759,-.651)
- Tool.GripPos = Vector3.new(1.5,-.5,.3)
- Tool.GripRight = Vector3.new(1,0,0)
- Tool.GripUp = Vector3.new(0,.651,-.759)
- local dr = COLA:FindFirstChild("Drink")
- if dr then
- dr:Play()
- else
- local drinks = Instance.new("Sound",COLA) drinks.SoundId='http://www.roblox.com/asset/?id=10722059' drinks.Name='Drink'
- drinks:Play()
- end
- wait(3)
- local h = Tool.Parent:FindFirstChild("Humanoid")
- if (h ~= nil) then
- if (h.MaxHealth > h.Health + 5) then
- h.Health = h.Health + 5
- else
- h.Health = h.MaxHealth
- end
- end
- Tool.GripForward = Vector3.new(-.976,0,-0.217)
- Tool.GripPos = Vector3.new(0.03,0,0)
- Tool.GripRight = Vector3.new(.217,0,-.976)
- Tool.GripUp = Vector3.new(0,1,0)
- enabled = true
- end
- function onEquipped()
- local dre = COLA:FindFirstChild("open")
- if dre then
- dre:Play()
- else
- local open = Instance.new("Sound",COLA) open.SoundId='http://www.roblox.com/asset/?id=10721950'
- open:Play() open.Name='open'
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement