Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(3)
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- for i,v in pairs(Player.Character:GetDescendants()) do
- if v:IsA("BasePart") and v ~= Player.Character.HumanoidRootPart then
- v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
- v:SetNetworkOwner(game.Players:GetPlayerFromCharacter(Player.Character))
- local nc = Instance.new("NoCollisionConstraint",v)
- nc.Part0 = v
- nc.Part1 = Player.Character.HumanoidRootPart
- v.Massless = true
- if string.match(v.Name,"Leg") or string.match(v.Name,"Arm") then
- local collider = Instance.new("Part",v)
- collider.CFrame = v.CFrame
- collider.Transparency = 1
- collider.CustomPhysicalProperties = PhysicalProperties.new(0,2,0,100,0)
- collider.Size = v.Size
- local weld = Instance.new("Weld",v)
- weld.Part0 = collider
- weld.Part1 = v
- local noc1 = Instance.new("NoCollisionConstraint",v)
- noc1.Part0 = Player.Character.HumanoidRootPart
- noc1.Part1 = collider
- local noc2 = Instance.new("NoCollisionConstraint",v)
- noc2.Part0 = Player.Character.Torso
- noc2.Part1 = collider
- if string.match(v.Name,"Arm") then
- local noc3 = Instance.new("NoCollisionConstraint",v)
- noc3.Part0 = Player.Character.Head
- noc3.Part1 = collider
- end
- end
- elseif v:IsA("Motor6D") and v.Parent ~= Player.Character.HumanoidRootPart then
- if string.match(v.Part1.Name,"Arm") then
- if string.match(v.Name,"Left") then
- v.C0 = v.C0 * CFrame.new(0,0,0.5)
- v.C1 = v.C1 * CFrame.new(0,0.5,0.5)
- elseif string.match(v.Name,"Right") then
- v.C0 = v.C0 * CFrame.new(0,0,0.5)
- v.C1 = v.C1 * CFrame.new(0,0.5,0.5)
- end
- end
- if string.match(v.Part1.Name,"Leg") then
- if string.match(v.Name,"Left") then
- v.C0 = v.C0 * CFrame.new(0,0,-0.5)
- v.C1 = v.C1 * CFrame.new(0,0,-0.5)
- elseif string.match(v.Name,"Right") then
- v.C0 = v.C0 * CFrame.new(0,0,-0.5)
- v.C1 = v.C1 * CFrame.new(0,0,-0.5)
- end
- end
- local attA = Instance.new("Attachment",v.Part0)
- attA.CFrame = v.C0
- attA.Name = v.Name .. "A"
- local attB = Instance.new("Attachment",v.Part1)
- attB.CFrame = v.C1
- attB.Name = v.Name .. "B"
- local Rot = Instance.new("BallSocketConstraint",v.Parent)
- Rot.Attachment0 = attB
- Rot.Attachment1 = attA
- Rot.Name = v.Name .. "Connection"
- --[[Rot.LimitsEnabled = true
- Rot.TwistLimitsEnabled = true
- Rot.UpperAngle = 90
- Rot.TwistLowerAngle = -25
- Rot.TwistUpperAngleAngle = 25--]]
- v.Enabled = false--.Part1 = nil
- elseif v:IsA("Motor6D") and v.Parent == Player.Character.HumanoidRootPart then
- v.Enabled = false--.Part1 = nil
- end
- end
- local attA = Instance.new("Attachment",Player.Character.Head)
- attA.CFrame = CFrame.new(0,0,0)
- attA.Name = "CamA"
- local attB = Instance.new("Attachment",Player.Character.HumanoidRootPart)
- attB.CFrame = CFrame.new(0,1.5,0)
- attB.Name = "CamB"
- local Rot = Instance.new("AlignPosition",Player.Character.HumanoidRootPart.Parent)
- Rot.Attachment0 = attA
- Rot.Attachment1 = attB
- Rot.Responsiveness = 200
- Rot.Name = "CameraConnection"
- --Player.Character.Humanoid.PlatformStand = true
- local bg = Instance.new("BodyGyro",Player.Character.Head)
- bg.MaxTorque = Vector3.new(999999,999999,999999)
- local tbg = Instance.new("BodyGyro",Player.Character.Torso)
- tbg.MaxTorque = Vector3.new(999999,999999,999999)
- local la = Instance.new("BodyGyro",Player.Character["Left Arm"])
- la.MaxTorque = Vector3.new(100,100,100)
- local ra = Instance.new("BodyGyro",Player.Character["Right Arm"])
- ra.MaxTorque = Vector3.new(100,100,100)
- local l = false
- local r = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- game:GetService("RunService").Stepped:Connect(function()
- if Player.Character:FindFirstChild("Head") and Player.Character:FindFirstChild("HumanoidRootPart") then
- local calc = CFrame.Angles(Mouse.Hit:ToOrientation())
- local x,y,z = calc:ToOrientation()
- tbg.CFrame = CFrame.Angles(0,y,0)
- bg.CFrame = CFrame.Angles(0,y,0) * CFrame.Angles(Mouse.Hit.LookVector.Y*0.6,0,0)
- if l == true then
- la.CFrame = Mouse.Hit * CFrame.Angles(math.rad(90),0,0)
- else
- la.CFrame = CFrame.new(0,y,0)
- end
- if r == true then
- ra.CFrame = Mouse.Hit * CFrame.Angles(math.rad(90),0,0)
- else
- ra.CFrame = CFrame.new(0,y,0)
- end
- for _,v in pairs(Player.Character:GetChildren()) do
- if v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Torso" or v.Name == "Left Leg" or v.Name == "Right Leg" then
- if v:IsA("BasePart") or v:IsA("Decal") then
- v.LocalTransparencyModifier = 0.25
- end
- end
- end
- end
- end)
- mouse.Button1Down:Connect(function()
- la.MaxTorque = Vector3.new(999999,999999,999999)
- l = true
- end)
- mouse.Button1Up:Connect(function()
- la.MaxTorque = Vector3.new(100,100,100)
- l = false
- end)
- mouse.Button2Down:Connect(function()
- ra.MaxTorque = Vector3.new(999999,999999,999999)
- r = true
- end)
- mouse.Button2Up:Connect(function()
- ra.MaxTorque = Vector3.new(100,100,100)
- r = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement