#I have made a loading screen, now how do I put it into action

1 messages · Page 1 of 1 (latest)

random void
#

I have also made a script where you tp straight to a assigned plot. Anyways I have tried 3 other tutorials and it seems only ONE problem seems to stand out. The camera. It doesnt work and there is no background and just spawn right infront of your base with no background

keen pelican
#

what do u mean background?

random void
#

here is what I want it to look like

#

but this is what it is...

keen pelican
#

show code

#

you need to set camera.CameraType to scriptable then set the camera's CFrame

random void
placid haloBOT
#

studio** You are now Level 4! **studio

random void
#

@keen pelican

keen pelican
#

ok

#

i

#

first of all are u sure the script runs

#

second

#

try printing camera.CameraType when the character spawns

#

@random void

random void
#

alr

keen pelican
#

any errors?

random void
#

I added another script into the play button and starterplayerscripts which made the camera work

keen pelican
#

i dont recommend that

#

u dont want multiple scripts interfering with one

#

it'll make it harder to maintain

random void
#

at least the camera works now ig

keen pelican
#

ye

#

what does the other script u added do

random void
#

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)

keen pelican
#

u can use Button.Activated

#

btw

random void
#

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

keen pelican
#

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

random void
#

alr lemme see

random void
#

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

keen pelican
#

inside there

random void
#

@keen pelican

#

I found out why the script isnt working