Camera Position wrong in-game

wait()
local CF = CFrame.new(-1487.06567, 6.44542789, -979.766418, 0.887162924, -0.161884919, -0.432128757, -0, 0.936445594, -0.350813031, 0.461456388, 0.311228305, 0.830779731)
local cam = workspace.CurrentCamera
local TS = game:GetService("TweenService")
script.Parent:GetPropertyChangedSignal("Enabled"):Connect(function()
	if script.Parent.Enabled then
		_G.camEnabled = false
		cam.CFrame = CF
		script.Parent.Blackout.Transparency = 0
		script.Parent.Main.Position = UDim2.new(-0.5, 0, 0.045, 0)
		TS:Create(script.Parent.Blackout, TweenInfo.new(0.7, Enum.EasingStyle.Linear), {Transparency = 1}):Play()
		TS:Create(script.Parent.Main, TweenInfo.new(0.6, Enum.EasingStyle.Quad), {Position = UDim2.new(0.03,0,0.045,0)}):Play()
	else
		_G.camEnabled = true
	end
end)

script.Parent.close.MouseButton1Click:Connect(function()
	script.Parent.Enabled = false
end)

I think the camera CFrame is right, because when i copy and paste it in camera, it works surprisingly.
but when I playtest in game, then the camera is nowhere.

any ideas?

also the camera is Scriptable

nvm, I was wrong. the map just didn’t load because the character is really far away.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.