#How do I tween the CurrentCamera property smoothly to the players cam or clients cam

67 messages · Page 1 of 1 (latest)

dull marsh
#

Ignore the quality had to size it down so I could upload to discordcrying

modern cairn
#

you can tween it's CFrame

quaint rover
# dull marsh Example video for better explanation:

Please read it through. I explained as good as i can what everything is and why its there. There is also some things you might wanna change.

local ts = game:GetService("TweenService")

local endGoal = CFrame.new() —put in the numbers of the CFrame here.

local tweenCam = ts:Create(workspace.CurrentCamera, --instance that should be tweened
TweenInfo.new(
0.5, --the time the tween will take to finish in seconds. Change upon your liking.
Enum.EasingStyle.Linear, --the looks of the tween.
Enum.EasingDirection.In, --the direction of the EasingStyle
false, --reverses?
0, --repeat times, if set to -1 it will repeat forever.
0 --delaytime between repetitions.
),
{CFrame = endGoal} --list of properties that should be changed during tween.
)

tweenCam:Play() --plays the tween
dull marsh
#

but ty

dull marsh
dull marsh
#

hold on let me get that for you

quaint rover
#

aight

#

ima go offline for abit now sry

#

ill take a look later on

#

okay?

dull marsh
#

alr

inner flumeBOT
#

studio** You are now Level 1! **studio

quaint rover
#

just send it nontheless

dull marsh
#

its in a local script btw

quaint rover
#

which line?

#

show the entire error

#

(ss)

dull marsh
#

line 39

#

wait

quaint rover
#

this line is the sinner

#

i belive

#

local Cam = workspace.Cams:FindFirstChild("PartCam") or workspace.Cams:WaitForChild("PartCam")

dull marsh
#

no that line is fine

#

i think

#

its

#

it says its the CurrentCam prop of workspace

#

and for some odd reason everytime i move the cam out of the baseplae or higher it gives me the error sometimes

#

but tbh rn its working so idk

dull marsh
dull marsh
#

i know i have to use CFrame

modern cairn
#

CurrentCamera.CFrame

dull marsh
#

So CurrentCamera is the players cam?

#

or cilents

#

cam

#

?

#

just making sure yk

#

😅

dull marsh
inner flumeBOT
#

studio** You are now Level 2! **studio

dull marsh
quaint rover
dull marsh
#

oh

#

so how would i tween the part to move to the players cam ?

dull marsh
#

since you said client doesn't have a cam I'm confused?

quaint rover
dull marsh
#

wait no bro

#

im just asking

#

jeez

#

i get what your saying

#

so do i just tween to the player?

#

yk what whatever ill just figure it out

#

anyway ty for the help

dull marsh
modern cairn
dull marsh
modern cairn
dull marsh
#

Yes

dull marsh