Loading Screen | Camera Issue

The first one is a server script, the other is a localscript. Also, this doesn’t apply the blur effect, you’d want to put that in.

Make sure to change <REMOTENAME> to whatever the name of the remote is!

This is all correct: This is a local script inside the PlayButton gui (in starter gui), and the MenuCamera is in workspace.

You have to change TextButton to the location of your button.

local MenuCamera = game.Workspace:WaitForChild("MenuCamera") 
local PlayButton = script.Parent:WaitForChild("PlayButton") -- location to your button.
local Camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
repeat wait() until player ~= nil


local LoadBlur = Instance.new("BlurEffect")
LoadBlur.Parent = game.Lighting
LoadBlur.Name = "LoadBlur"
LoadBlur.Enabled = true
LoadBlur.Size = 24

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
Camera.CameraSubject = MenuCamera
print("Set")

PlayButton.MouseButton1Click:Connect(function()
	LoadBlur:Destroy()
	PlayButton:Destroy()
	Camera.CameraType = Enum.CameraType.Custom
	Camera.CameraSubject = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
end)

Thank you all for helping! I appreciate it so much! x, ItsKoolPlayz

1 Like