Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner
- local remote = Instance.new("RemoteEvent",game.ReplicatedStorage)
- remote.Name = owner.Name
- NLS([[local is = game:GetService("UserInputService")
- local rem = game.ReplicatedStorage:FindFirstChild(owner.Name)
- is.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode.E then
- rem:FireServer("E")
- end
- if key.KeyCode == Enum.KeyCode.Q then
- rem:FireServer("Q")
- end
- end)]],owner.Character)
- local char = owner.Character
- 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 = char.HumanoidRootPart.Position + Vector3.new(3.125, 20, 0)
- 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 = char.HumanoidRootPart.Position + Vector3.new(0,20,0)
- 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(100,0,0,0,0)
- p2.Anchored = true
- w1.Part0 = p1
- w1.Part1 = p2
- w2.Part0 = p2
- w2.Part1 = p1
- a1.Position = Vector3.new(1,0,0)
- wait()
- char.Humanoid.BodyHeightScale.Value = 1.3
- char.Humanoid.BodyWidthScale.Value = 1.3
- char.Humanoid.BodyDepthScale.Value = 1.3
- char.Humanoid.HeadScale.Value = 1.3
- char.Humanoid.WalkSpeed = 22
- char.HumanoidRootPart.CustomPhysicalProperties = PhysicalProperties.new(100,0,0,0,0)
- 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
- remote.OnServerEvent:Connect(function(player, key)
- if key == "E" then
- r.Length = r.Length + 1
- end
- if key == "Q" then
- r.Length = r.Length - 1
- end
- end)
- 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