Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local explode = false
- local player = game.Workspace.x_w8
- local backpack = game:GetService("Players"):FindFirstChild(player.Name).Backpack
- local Tool = Instance.new("Tool",backpack)
- Tool.GripForward = Vector3.new(-0.976, 0, -0.217)
- Tool.GripPos = Vector3.new(0.03, 0, 0)
- Tool.GripRight = Vector3.new(0.217, 0, -0.976)
- Tool.GripUp = Vector3.new(0, 1, 0)
- if explode == true then
- Tool.Name = "Bloxy Cola?"
- else
- Tool.Name = "Bloxy Cola"
- end
- Tool.RequiresHandle = true
- local handle = Instance.new("Part",Tool)
- handle.Orientation = Vector3.new(0, -180, 0)
- handle.Size = Vector3.new(1, 1.2, 1)
- handle.Name = "Handle"
- local open = Instance.new("Sound", handle)
- open.SoundId = "http://www.roblox.com/asset/?id=10721950"
- open.Volume = 3
- local drink = Instance.new("Sound", handle)
- drink.SoundId = "http://www.roblox.com/asset/?id=10722059"
- drink.Volume = 3
- local boomed = Instance.new("Sound",workspace)
- boomed.SoundId = "rbxassetid://5519568804"
- boomed.Volume = 6
- local mesh = Instance.new("FileMesh",handle)
- mesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
- mesh.Scale = Vector3.new(1.2,1.2,1.2)
- mesh.TextureId = "http://www.roblox.com/asset/?id=10470600"
- mesh.VertexColor = Vector3.new(1, 1, 1)
- local size = 5
- local rate = 10
- local boom = Instance.new("Part",game:GetService("ReplicatedStorage"))
- boom.Color = Color3.fromRGB(255,100,0)
- boom.Shape = "Ball"
- boom.Size = Vector3.new(size,size,size)
- boom.Material = "Neon"
- boom.CanCollide = false
- boom.Anchored = true
- enabled = true
- death = false
- 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)
- drink:Play()
- wait(3)
- if explode == true then
- boom.Position = player.Torso.Position
- boom.Parent = game:GetService("Workspace")
- boomed:Play()
- drink.Playing = false
- player.Humanoid.Health = 0
- for i=1,100 do
- rate /= 1.1
- size += rate
- boom.Size = Vector3.new(size,size,size)
- boom.Transparency += 0.01
- wait(0.01)
- end
- boom:Destroy()
- else
- wait(0.3)
- Tool.GripForward = Vector3.new(-0.976, 0, -0.217)
- Tool.GripPos = Vector3.new(0.03, 0, 0)
- Tool.GripRight = Vector3.new(0.217, 0, -0.976)
- Tool.GripUp = Vector3.new(0, 1, 0)
- wait(1)
- enabled = true
- end
- end
- function onEquipped()
- open:Play()
- end
- function dmg(hit)
- if hit.Parent ~= nil then
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and hum.Health > 0 then
- hum.Health = 0
- end
- end
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- boom.Touched:connect(dmg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement