The code does work, its just line 24 – 28
code
local CurrentCamera = workspace.CurrentCamera
local TweenService = game:GetService("TweenService")
local runService = game:GetService("RunService")
local Prompt = game.Workspace.signupredirectlol.ProximityPrompt
local CGUI = game.StarterGui.CGUI
local No = game.StarterGui.CGUI.No
CurrentCamera.CameraType = Enum.CameraType.Scriptable
local Animation = TweenService:Create(CurrentCamera, TweenInfo.new(1, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut, 0, false, 0), {["CFrame"] = workspace.REODPART.CFrame})
TEST = false
Prompt.Triggered:Connect(function(player)
task.wait(0.1)
Prompt.Enabled = false
Animation:Play()
Animation.Completed:Wait()
runService.RenderStepped:Connect(function()
if TEST == false then
CurrentCamera.CFrame = CFrame.new(workspace.REODPART.Position, workspace.FOCUSPART.Position)
end
if TEST == true then
workspace.FOCUSPART:Destroy()
workspace.REODPART:Destroy()
CurrentCamera.CameraSubject = CurrentCamera.CameraSubject.Humanoid
CurrentCamera.CameraType = CurrentCamera.CameraType.EnumType.Fixed
end
No.MouseButton1Click:Connect(function()
TEST = true
end)
end)
end)
I want the camera focus to go back to the players pov.