Greetings!
I’ve worked with camera before , more exactly i used tweens with the camera and it worked pretty well. However now it seems that i have a problem i cannot make it work the way i want.
I want that, once a player joins, the camera’s CFrame to be on a part while its focused on a different part.
--Checking For Character--
local playerservice = game:GetService("Players")
local player = playerservice.LocalPlayer
--Variables--
local CurrentCamera = game.Workspace.CurrentCamera
local MainIntro = script.Parent.Main
local Shade1 = script.Parent.Shade1
local Shade2 = script.Parent.Shade2
local TimeLoading = 25
player.CharacterAdded:Connect(function()
print("Counting. Intro will begin soon!")
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = game.Workspace.camera.CFrame
wait(TimeLoading) --time before the loading screen yeets away
MainIntro:TweenPosition(
UDim2.new(1.1,0,-0.22,0),
"InOut",
"Quart",
2,
false,
nil,
false
)
Shade1:TweenPosition(
UDim2.new(1.1,0,-0.22,0),
"InOut",
"Quart",
2.5,
false,
nil,
false
)
Shade2:TweenPosition(
UDim2.new(1.1,0,-0.22,0),
"InOut",
"Quart",
2.7,
false,
nil,
false
)
end)
I do not want it to tween, i just want it to be fixed on “camera” while looking at something else. I tried so far
CurrentCamera.Focus = game.Workspace.FocusPart.CFrame
CurrentCamera.CFrame = game.Workspace.camera.CFrame
and the versiun you see in the main script above. I placed and replaced them in and out of the function and got the same results, camera type is still custom and nothing happened to it.
Thanks for help! ![]()