Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool")
- tool.Name = "Hammer"
- 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.2, 3, 0.2)
- handle.Color = rgb(110, 70, 45)
- local handle2 = Instance.new("Part")
- handle2.Name = "Handle2"
- handle2.Parent = handle
- handle2.Size = Vector3.new(2.5, 2.5, 5.5)
- handle2.Shape = Enum.PartType.Cylinder
- handle2.Color = rgb(110, 70, 45)
- local weld = Instance.new("Weld")
- weld.Name = "weld"
- weld.Parent = handle
- weld.Part0 = handle
- weld.Part1 = handle2
- weld.C1 = CFrame.fromOrientation(0,80,0) + Vector3.new(0,-3.5 + 1,0)
- db = false
- handle2.Touched:Connect(function(p)
- if db then
- local velo = Instance.new("BodyVelocity", p)
- velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velo.Velocity = Vector3.new(0,60,0)
- p.Anchored = false
- p.CanCollide = false
- end
- end)
- tool.Activated:Connect(function()
- if db == false then
- local old = tool.GripUp
- local od = 1 / 360
- local od2 = od * 560
- tool.GripUp = old + Vector3.new(0,0,od2 * 2)
- db = true
- wait(1)
- db = false
- tool.GripUp = old
- end
- end)
Add Comment
Please, Sign In to add comment