I tried to tween the camera onto the player, but it does not work, what do I do?
I wanted to tween the camera so it focus on the player, however, it does not happen what do I do
script:
01 | local cam = workspace.CurrentCamera |
02 | local player = game.Players.LocalPlayer |
03 | local button = script.Parent |
04 | local TS = game:GetService( "TweenService" ) |
07 | local info = TweenInfo.new( |
09 | Enum.EasingStyle.Sine, |
10 | Enum.EasingDirection.In, |
17 | button.MouseButton 1 Click:Connect( function () |
18 | cam.CameraType = Enum.CameraType.Custom |
19 | local Goals = { cam.CameraSubject = player:FindFirstChild( "Humanoid" ) } |
20 | local humanTween = TS:Create(cam, info, Goals) |