So I’m trying to make it so that the Player’s camera rotates down a bit, but for some reason the camera always tweens to the same orientation disregarding the input.
LocalScript:
local message = script.Parent:FindFirstChild("LoadMsg")
local playButton = script.Parent:WaitForChild("PlayButton")
local TweenService = game:GetService("TweenService")
local Camera = workspace.CurrentCamera
local Supposed = true
repeat task.wait()
Camera.CameraType = Enum.CameraType.Scriptable
print(1)
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
local Tween = TweenService:Create(workspace.CameraPart,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0),{CFrame = CFrame.new(workspace.CameraPart.Orientation) * CFrame.Angles(math.rad(5),0,0)})
-- Important ^^
workspace.CameraPart:GetPropertyChangedSignal("CFrame"):Connect(function()
if not Supposed then
return
end
Camera.CFrame = workspace.CameraPart.CFrame
end)
task.wait(2)
for i = 1, 0, -0.05 do
task.wait(0.1)
message.ImageTransparency = i
end
task.wait(2)
for i = 0, 1, 0.05 do
task.wait(0.1)
message.ImageTransparency = i
end
task.wait()
message:Destroy()
task.wait(2)
for i = 0, 1, 0.05 do
task.wait(0.1)
script.Parent.BackgroundTransparency = i
end
Tween:Play() -- Important
task.wait(2)
Supposed = false
playButton.Visible = true
for i = 1, 0, -0.05 do
task.wait(0.1)
playButton.ImageTransparency = i
end
What happens: