Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool")
- tool.Name = "Grenade"
- tool.Parent = owner.Backpack
- function rgb(RED,GREEN,BLUE)
- local Count = 1 / 255
- --Red Count
- local red = Count * RED
- --Green Count
- local green = Count * GREEN
- --Blue Count
- local blue = Count * BLUE
- --Give Color3
- local FColor = Color3.new(red,green,blue)
- return FColor
- end
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Parent = tool
- handle.Size = Vector3.new(0.8, 0.92, 0.8)
- handle.Color = rgb(25, 160, 10)
- local mesh = Instance.new("SpecialMesh")
- mesh.Name = "Mesh"
- mesh.Parent = handle
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(1,1,1)
- local handle2 = Instance.new("Part")
- handle2.Name = "Handle2"
- handle2.Parent = handle
- handle2.Size = Vector3.new(0.2, 0.2, 0.2)
- handle2.Color = rgb(150, 150, 150)
- local weld = Instance.new("Weld")
- weld.Name = "weld"
- weld.Parent = handle
- weld.Part0 = handle
- weld.Part1 = handle2
- weld.C1 = CFrame.new(0,-0.92 / 2,0)
- local handle3 = Instance.new("Part")
- handle3.Name = "handle3"
- handle3.Parent = handle
- handle3.Size = Vector3.new(0.3, 0.1, 0.2)
- handle3.Color = rgb(150, 150, 150)
- local weld2 = Instance.new("Weld")
- weld2.Name = "weld2"
- weld2.Parent = handle
- weld2.Part0 = handle2
- weld2.Part1 = handle3
- weld2.C1 = CFrame.new(0.3 / 2,-0.2 / 2,0)
- tool.Activated:Connect(function()
- local new = handle:Clone()
- new.Parent = workspace
- new.CanCollide = true
- wait(2.5)
- local Explosion = Instance.new("Explosion", new)
- Explosion.BlastRadius = 15
- Explosion.Position = new.Position
- wait(0.25)
- new:Remove()
- end)
Advertisement
Add Comment
Please, Sign In to add comment