#ls

35 messages · Page 1 of 1 (latest)

true coral
#

i am make loading screen but not work here is script
local LoadingScreen = script.Parent.background
local text = LoadingScreen.percent
local TweenSerive = game:GetService("TweenService")

game.ReplicatedFirst:RemoveDefaultLoadingScreen()
LoadingScreen.Visible = true

text.Text = "10%"
wait(0.8)
text.Text = "20%"
wait(0.8)
text.Text = "40%"
wait(0.8)
text.Text = "100%"
wait(0.8)
text.Text = "Loading."
wait(0.8)
text.Text = "Loading.."
wait(0.8)
text.Text = "Loading..."
wait(0.8)
text.Text = "Loading assest 10/1000000"
wait(0.8)
text.Text = "Loading assest 500/1000000"
wait(0.8)
text.Text = "Complete"

LoadingScreen:TweenPosition(UDim2.new(0,0,1,0), "In", "Sine", 0.9)
wait(1)
LoadingScreen:Destroy()

faint wraith
#

use WaitForChild as its a localscript those type of scripts are prone loading the script prior to loading assets

#

example

part.OtherPart

#

->

#

part:WaitForChild("OtherPart")

obtuse meteor
#

any errors?

faint wraith
#

right

#

that too

true coral
#

so how do i change

faint wraith
#

can you show the outptu first?

obtuse meteor
#

if it is saying something like "tried to index .Text with nil" or whatever then do itso's suggestion

true coral
#

llike where

obtuse meteor
#

poor soul

faint wraith
#

playtest the game then

#

go to view on the top bar

#

then click on output it should be one of the buttons theres

obtuse meteor
faint wraith
#

beat me too it

#

RFAAAAAAAAAAAAAAA

obtuse meteor
#

haha

true coral
obtuse meteor
#

hm, there doesn't seem to be anything relating to your script with that

true coral
#

ik

obtuse meteor
#

by "not working" does that mean the gui isn't there? or the text wont change

true coral
#

the ls wont show

obtuse meteor
#

maybe you need to parent the loading screen to PlayerGui 🤔. can you show me your player gui?

true coral
#

where

obtuse meteor
#

inside your player object

true coral
#

like a doc?

obtuse meteor
#

no itll be a folder, but lemme find a doc relating to replacing the loading screen

#

in this script at least, it parents the gui to PlayerGui

true coral
#

oh ok

uncut smeltBOT
#

studio** You are now Level 3! **studio