So I am remaking this topic because my other one was solved and people do not really go by as it is solved. I had another issue while adding someone’s script into my script. It removes the blur, deletes the GUI but does not move my camera.
I have another script that makes the camera into the position but the script to reset it does not work.
Camera to the part script (this script works its just apart of making the second script work):
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Camera = workspace.CurrentCamera
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
end)
Delete blur, delete GUI, reset cam to player:
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local IsCurrentlyOnPart = false
script.Parent.Play.Visible = true
local FirstNumber = 0
local SecondNumber = 10
local final = "Loading Extra Assets: "..tostring(FirstNumber).."/"..tostring(SecondNumber)
local object = script.Parent
object.Position = UDim2.new(0,0,0,0)
wait(1.5)
script.Parent.Play.MouseButton1Down:Connect(function()
IsCurrentlyOnPart = true
game.Workspace.Camera.CameraSubject = game:GetService("Players").LocalPlayer.Character.Humanoid
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
wait(0.5)
game.Lighting.Blur:Destroy()
object.Parent:Destroy()
end)
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
if IsCurrentlyOnPart == false then
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
else
workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.Humanoid
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
end
end)
All I wanna know here is how do I reset the camera from a part back to the player?