#I have made a loading screen, now how do I put it into action
1 messages · Page 1 of 1 (latest)
what do u mean background?
show code
you need to set camera.CameraType to scriptable then set the camera's CFrame
** You are now Level 4! **
@keen pelican
ok
i
first of all are u sure the script runs
second
try printing camera.CameraType when the character spawns
@random void
any errors?
I added another script into the play button and starterplayerscripts which made the camera work
i dont recommend that
u dont want multiple scripts interfering with one
it'll make it harder to maintain
at least the camera works now ig
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local camerapart = game.Workspace:FindFirstChild("CameraPart")
script.Parent.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Custom
script.Parent.Parent.Enabled = false
end)
and the second one (under starterplayerscript) local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local camerapart = game.Workspace:WaitForChild("CameraPart")
if camerapart then
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = camerapart.CFrame
else
warn("CameraPart not found in Workspace")
end
ok i think i can guess the problem
in ur main script
repeat
camera.CameraType = Enum.CameraType.Scriptable
task.wait()
until camera.CameraType == Enum.CameraType.Scriptable
try this while setting
it should work without new scripts
alr lemme see
where do i put the part?
@keen pelican
here is the original line
local function setupCamera() camera.CameraType, camera.CFrame = Enum.CameraType.Scriptable, mainMenuCamPart.CFrame end
inside there