I got it thanks to jensar141215!
01 | char = game.Players.LocalPlayer.Character |
02 | cam = Instance.new( "Camera" ,script.Parent) |
04 | game:GetService( "RunService" ).RenderStepped:Connect( function () |
05 | for i,v in pairs (script.Parent.ViewportFrame.Character 1 :GetDescendants()) do |
08 | for i,v in pairs (char:GetChildren()) do |
10 | if v 2 :IsA( "Script" ) or v 2 :IsA( "LocalScript" ) or v 2 :IsA( "ModuleScript" ) then |
13 | v 2. Parent = script.Parent.ViewportFrame.Character 1 |
14 | if v 2 :IsA( "Humanoid" ) then |
15 | v 2. DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None |
22 | script.Parent.ViewportFrame.CurrentCamera = cam |
23 | cam.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new( 0 , 3 ,- 5 ) * CFrame.Angles(math.rad( 30 ),math.rad( 180 ), 0 ) |