hey guys, I am trying to make a camera tween but it is not working.
code:
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.SleepyCFrame.CFrame
local tweenInfo = TweenInfo.new(2)
local tween1 = TweenService:Create(camera, tweenInfo, {CFrame = workspace.sleepydummy.Head.CFrame})
The
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.SleepyCFrame.CFrame
part works but the tween doesn’t. Am I doing something wrong?
arhium
(alwaysrrr)
June 13, 2021, 12:59am
2
Any errors in the code output?
I just checked and there is 0 errors
arhium
(alwaysrrr)
June 13, 2021, 1:02am
4
kaiyellow2008:
SleepyCFrame
Valid member of workspace? Also, what is it doing there?
did you make sure to use tween:Play() in order to make the tween run?
1 Like
what do you mean? Its the name of a part that the tween starts at. its named SleepyCFrame because the player wakes up from sleeping. Also that’s the part that works
I am ashamed of myself. I sadly did not check that. I had a long day today and im so dumb sometimes
1 Like