Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner
- local p1 = Instance.new("Part",workspace)
- local p2 = Instance.new("Part",workspace)
- local a1 = Instance.new("Attachment",p1)
- local a2 = Instance.new("Attachment",player.Character.HumanoidRootPart)
- print(a2.Parent)
- local w1 = Instance.new("WeldConstraint",p1)
- local w2 = Instance.new("WeldConstraint",p2)
- local r = Instance.new("RopeConstraint",a1)
- p1.Name = "Handle"
- p2.Name = "Ham"
- a1.Name = "A"
- a2.Name = "B"
- w1.Name = "WeldA"
- w2.Name = "WeldB"
- r.Name = "Rope"
- p1.Position = Vector3.new(46.875,50,50)
- p1.Size = Vector3.new(4, 1.25, 1.25)
- p1.BrickColor = BrickColor.new("Rust")
- p1.Material = "Plastic"
- p1.BottomSurface = "Smooth"
- p1.TopSurface = "Smooth"
- p1.Anchored = true
- p2.Position = Vector3.new(50,50,50)
- p2.Size = Vector3.new(2.25, 1.75, 3.75)
- p2.BrickColor = BrickColor.new("Smoky grey")
- p2.Material = "Plastic"
- p2.BottomSurface = "Smooth"
- p2.TopSurface = "Smooth"
- p2.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0.2, 0.5, 100, 1)
- p2.Anchored = true
- w1.Part0 = p1
- w1.Part1 = p2
- w2.Part0 = p2
- w2.Part1 = p1
- a1.Position = Vector3.new(-1,0,0)
- wait(3)
- player.Character.HumanoidRootPart.Anchored = true
- p1.Anchored = false
- p2.Anchored = false
- r.Attachment0 = a1
- r.Attachment1 = a2
- r.Length = 9
- r.Visible = true
- player.Character.HumanoidRootPart.Anchored = false
- local debounce = false
- p2.Touched:Connect(function(p)
- if p:IsA("Part") and not p.Parent:FindFirstChild("Humanoid") then
- p.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.2, 0.5, 1, 1)
- end
- if p.Parent:FindFirstChild("Humanoid") and p.Parent.Name ~= owner.Name then
- if not debounce then
- debounce = true
- local human = p.Parent:FindFirstChild("Humanoid")
- human:TakeDamage(43)
- end
- wait(0.4)
- debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement