#How can I make a script wait for the loading screen to finish to run?

30 messages · Page 1 of 1 (latest)

hearty crown
#

Hello. I made a camera system that shows the map at startup but the two overlap because I have a loading screen. how can I wait for the loading screen to run?

warm mauve
#

BoolValue

untold tundra
warm mauve
#

just set cameraType to Custom after loading is finished

untold tundra
#

why doesnt he just fire a function after loading screen is finished 😭

untold tundra
#

like

#
local function loadingscreen()
    --loading screen
    camera()
end

local function camera()
    --camera
end
#

like this

warm mauve
#

function to set a camera type?

#

it's 1 line

#

oh nvmm

#

i see what he means

untold tundra
#

yea

warm mauve
#

like a camera for menu

hearty crown
#

I have 3 scripts for the camera system 1 script for the loading screen

untold tundra
#

just use BindableEvents

#

to connect them

warm mauve
untold tundra
#

?

warm mauve
#

^ = agree

untold tundra
#

👍

warm mauve
#

and just fire a bindableevent after for loop or whatever

hearty crown
#

thanks I'll try that

hearty crown
#

fired the event at the end of the loading screen script

#

then call it in the camera script

#

but it didnt work

#

can you help?