Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arm = Instance.new("Part",script)
- arm.Size = Vector3.new(0.75,2,0.75)
- local arm2 = Instance.new("Part",script)
- arm2.Size = Vector3.new(1,1,1)
- local arm4 = Instance.new("Part",script)
- arm4.Size = Vector3.new(1,1,1)
- local block = Instance.new("Part",script)
- block.Size = Vector3.new(0.75,2,0.75)
- local arm3 = Instance.new("Part",script)
- arm3.Size = Vector3.new(0.75,2,0.75)
- arm2.Shape = Enum.PartType.Ball
- arm4.Shape = Enum.PartType.Ball
- block.CFrame = owner.Character.HumanoidRootPart.CFrame
- arm3.CFrame = owner.Character.HumanoidRootPart.CFrame
- arm.CFrame = owner.Character.HumanoidRootPart.CFrame
- arm2.CFrame = owner.Character.HumanoidRootPart.CFrame
- arm4.CFrame = owner.Character.HumanoidRootPart.CFrame
- local density = 1
- local friction = 1
- local elasticity = 0
- local frictionWeight = 100000000000
- local elasticityWeight = 0
- local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
- arm.CustomPhysicalProperties = physProperties
- arm2.CustomPhysicalProperties = physProperties
- arm3.CustomPhysicalProperties = physProperties
- arm4.CustomPhysicalProperties = physProperties
- block.CustomPhysicalProperties = physProperties
- owner.Character.Parent = nil
- arm.Name = "the3"
- block:SetNetworkOwner(owner)
- arm3:SetNetworkOwner(owner)
- arm:SetNetworkOwner(owner)
- arm4:SetNetworkOwner(owner)
- arm2:SetNetworkOwner(owner)
- arm2.CanCollide = false
- arm4.CanCollide = false
- arm3.Name = "the"
- armweld = Instance.new("Weld",arm3)
- armweld.Part0 = arm2
- armweld.Part1 = arm3
- armweld.C0 = CFrame.new(0,1,0)
- armweld2 = Instance.new("Weld",block)
- armweld2.Part0 = arm4
- armweld2.Part1 = block
- armweld2.C0 = CFrame.new(0,-1,0)
- block.Name = "the2"
- remote = Instance.new("RemoteEvent",script)
- remote.Name = "The"
- local weld
- notouch = Instance.new("NoCollisionConstraint")
- notouch.Parent = script
- notouch.Part0 = block
- notouch.Part1 = block
- notouch2 = Instance.new("NoCollisionConstraint")
- notouch2.Parent = script
- notouch2.Part0 = arm
- notouch2.Part1 = arm
- local weld2
- local count2 = 0
- local count = 0
- times = 0
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = arm
- object.Name = 'ARM'
- local object2 = Instance.new("ObjectValue", owner.PlayerGui)
- object2.Value = block
- object2.Name = 'BLOCK'
- local object3 = Instance.new("ObjectValue", owner.PlayerGui)
- object3.Value = arm3
- object3.Name = 'ARM3'
- local object4 = Instance.new("ObjectValue", owner.PlayerGui)
- object4.Value = remote
- object4.Name = 'REMOTE'
- remote.OnServerEvent:Connect(function(plr,hit,hitp)
- pcall(function()
- count = count+1
- if count == 1 then
- if times == 1 then
- weld2:Destroy()
- end
- local attachment0 = Instance.new("Attachment")
- attachment0.Parent = block
- local attachment1 = Instance.new("Attachment")
- attachment1.Parent = hit
- attachment1.WorldCFrame = attachment0.Parent.CFrame * CFrame.new(0,1,0)
- attachment0.WorldCFrame = attachment0.Parent.CFrame * CFrame.new(0,1,0)
- weld = Instance.new("AlignPosition")
- weld.Parent = block
- weld.Attachment0 = attachment0
- weld.Attachment1 = attachment1
- notouch.Part0 = block
- notouch.Part1 = hit
- notouch2.Part0 = arm
- notouch2.Part1 = hit
- weld.RigidityEnabled = true
- elseif count == 2 then
- weld:Destroy()
- local attachment2 = Instance.new("Attachment")
- attachment2.Parent = arm3
- local attachment3 = Instance.new("Attachment")
- attachment3.Parent = hit
- attachment3.WorldCFrame = attachment3.Parent.CFrame * CFrame.new(0,-1,0)
- attachment2.WorldCFrame = attachment2.Parent.CFrame * CFrame.new(0,-1,0)
- weld2 = Instance.new("AlignPosition")
- weld2.Parent = arm3
- weld2.Attachment0 = attachment2
- weld2.Attachment1 = attachment3
- weld2.RigidityEnabled = true
- notouch.Part0 = arm3
- notouch.Part1 = hit
- notouch2.Part0 = arm
- notouch2.Part1 = hit
- times = 1
- count = 0
- end
- end)
- end)
- wait(0.1)
- remote:FireClient(owner,script)
- coroutine.wrap(function()
- NLS([[
- local remote = owner.PlayerGui.REMOTE.Value
- local hand = owner.PlayerGui.BLOCK.Value
- local hand2 = owner.PlayerGui.ARM3.Value
- local hand3 = owner.PlayerGui.ARM.Value
- workspace.CurrentCamera.CameraSubject = hand3
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = hand
- a2.Parent = hand3
- Socket.Parent = hand
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-1,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1,0)
- local Socket3 = Instance.new("BallSocketConstraint")
- local a5 = Instance.new("Attachment")
- local a6 = Instance.new("Attachment")
- a5.Parent = hand3
- a6.Parent = hand2
- Socket3.Parent = hand
- Socket3.Attachment0 = a5
- Socket3.Attachment1 = a6
- a5.WorldCFrame = a5.Parent.CFrame * CFrame.new(0,-1,0)
- a6.WorldCFrame = a6.Parent.CFrame * CFrame.new(0,1,0)
- mouse = owner:GetMouse()
- remote.OnClientEvent:Connect(function(plr,what)
- mouse.TargetFilter = what
- end)
- bg = Instance.new("BodyGyro",hand)
- bg.D = 100
- bg.P = 10000
- bg.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge)
- bg2 = Instance.new("BodyGyro",hand2)
- bg2.D = 100
- bg2.P = 10000
- bg2.MaxTorque = Vector3.new(math.huge * math.huge,math.huge * math.huge,math.huge * math.huge)
- local count3 = 0
- bv = Instance.new("BodyVelocity")
- bv.Velocity = Vector3.new()
- bv.MaxForce = Vector3.new(1000000000,1000000000,1000000000)
- going = false
- waiting = false
- mouse.KeyDown:Connect(function(key)
- pcall(function()
- key = key:lower()
- if key == "q" then
- waiting = true
- remote:FireServer(mouse.Target,mouse.Hit)
- count3 = count3+1
- coroutine.wrap(function()
- wait(0.25)
- waiting = false
- end)()
- if count3 == 2 then
- count3 = 0
- end
- elseif key == "w" then
- if waiting then
- going = false
- wait(0.25)
- going = true
- else
- going = true
- end
- end
- end)
- end)
- mouse.KeyUp:Connect(function(key)
- pcall(function()
- key = key:lower()
- if key == "w" then
- going = false
- bv.Parent = nil
- end
- end)
- end)
- cursor = Instance.new("Part", script)
- cursor.Size = Vector3.new(0.1,0.1,0.1)
- cursor.Anchored = true
- cursor.Transparency = 0.25
- game:GetService("RunService").RenderStepped:Connect(function()
- pcall(function()
- cursor.Position = game.Workspace.CurrentCamera.CFrame.Position + (mouse.Hit.Position - game.Workspace.CurrentCamera.CFrame.Position).Unit * 20
- if count3 == 0 then
- bg.CFrame = CFrame.new(cursor.Position,hand.Position) * CFrame.Angles(math.rad(90),0,0)
- bg2.D = 0
- bg2.P = 0
- bg.D = 100
- bg.P = 10000
- elseif count3 == 1 then
- bg2.CFrame = CFrame.new(cursor.Position,hand2.Position) * CFrame.Angles(math.rad(-90),0,0)
- bg.D = 0
- bg.P = 0
- bg2.D = 100
- bg2.P = 10000
- end
- if going then
- if count3 == 1 then
- bv.Parent = hand2
- bv.Velocity = hand2.CFrame.upVector * -20
- wait()
- elseif count3 == 0 or count3 == 2 then
- bv.Parent = hand
- bv.Velocity = hand.CFrame.upVector * 20
- wait()
- end
- elseif not going then
- bv.Parent = nil
- bv.Velocity = Vector3.new()
- end
- end)
- end)
- ]],owner.PlayerGui)
- end)()
Add Comment
Please, Sign In to add comment