I wanted to tween the camera so it focus on the player, however, it does not happen what do I do script:
local cam = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local button = script.Parent
local TS = game:GetService("TweenService")
local info = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
0,
false,
0
)
button.MouseButton1Click:Connect(function()
cam.CameraType = Enum.CameraType.Custom
local Goals = {cam.CameraSubject = player:FindFirstChild("Humanoid")}
local humanTween = TS:Create(cam, info, Goals)
humanTween:Play()
end)

1 comment
Just a heads up, you don't need all the parameters when creating TweenInfo.