Тёмный

How to make an ACTUAL Loading Screen in Roblox Studio 

polarisprog
Подписаться 31 тыс.
Просмотров 144 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 768   
@polarisprog
@polarisprog 2 года назад
Get all of my project files on my patreon: patreon.com/polarisprog
@Shizmjr
@Shizmjr 2 года назад
How did you get the display thing
@ExstraLuck
@ExstraLuck 2 года назад
I just realized how your video quality is improving, keep going!
@zerikon4871
@zerikon4871 2 года назад
I really appreciate it if u did do my idea, Where u can do a certain challenge to unlock it Like call of duty or bad business
@tomyyoung2624
@tomyyoung2624 2 года назад
@@zerikon4871 Yes one!
@zerikon4871
@zerikon4871 2 года назад
@@tomyyoung2624 literally all I want
@IncredulousFocus
@IncredulousFocus Год назад
Probably a little inefficient, seeing how this will go through duplicate assets as well, but this would be perfect for smaller games! A simple fix to this inefficiency would be to put a folder with all the unique assets to load either in the script, or somewhere else in ReplicatedFirst, and to loop through that instead of the entire game. This way HUGE games with hundreds of thousands of instances won't take absurdly long to load.
@NobodyCentral
@NobodyCentral Год назад
Yeah, that's true, doing that will massively improve loading time.
@FrostedOven
@FrostedOven Год назад
hey can you help me make a skip button, i tryed for 2 days and i cant figure it out
@IncredulousFocus
@IncredulousFocus Год назад
@@FrostedOven just add a variable somewhere in the top level of the code named 'skip' and have it set to false. then add 'if skip then break end' to the top of the main loop, and add a connection before the loop which sets 'skip' to true on a button click. make sure this button is located in the loading menu! note that this won't show the progress bar jump to the end, but it will skip the loading.
@FrostedOven
@FrostedOven Год назад
@@IncredulousFocus Would connection look like this: skipButton.MouseButton1Click:Connect(function() skip = true end) because it doesn't work when i test it also would it be Mousbuttonclick or activated
@avinath4252
@avinath4252 Год назад
what do you mean it will go through duplicate assets? how?
@kwiby8
@kwiby8 Год назад
Thanks so much for this! (Note for others trying, be VERY careful with typing in the exact same things as in the video, one colon or different names can make everything stop working)
@flyhigh4078
@flyhigh4078 Год назад
hi i was wondering if u can be kind enough to send me the code here on youtube, ive typed everything and nothing works :( the gui wont even show or the frame its just like when ever i click play i just play, no loading screen no frame so if u can that would be very kind of you :D thanks if u do btw
@unusedaccount-b7t
@unusedaccount-b7t Год назад
@@flyhigh4078 maybe your variables wrong
@TommyVerner
@TommyVerner Год назад
@Casual Aviation it doesnt show up still i used your script
@orangedrip
@orangedrip Год назад
Every single one of these tutorials are fake wastes of times i would rather use free models then do this
@orangedrip
@orangedrip Год назад
@@TommyVernerbecause it fake
@ImperialSN
@ImperialSN Год назад
5:57 just where im currently upto so can come back to it thank you so much!! very helpful, earned a supporter
@flano5958
@flano5958 Год назад
You do tutorials like no one else, really have something going for ya
@Mah_Plays
@Mah_Plays 4 месяца назад
Can you send me the script
@CheeseY420
@CheeseY420 Год назад
Making things that ACTUALLY does something is one of the best/coolest things to do, also best for the players! :D
@tommygames7489
@tommygames7489 Год назад
I love how you do your tutorials! I am new to game creation and you have helped me out a whole lot! Thank you!
@YourAverageSoviet12
@YourAverageSoviet12 7 месяцев назад
It doesn't work for me? In the end of chapter 5 he tests to see if it works, and I tried and it just loads me into a normal game without a loading screen. I went through all the script twice making sure everything was identical to his, but it still did not work.
@ItsHisa15
@ItsHisa15 Месяц назад
Same
@wiredgeek
@wiredgeek Год назад
To fix this script remove "local assets = game:GetDescendants()" ... this is too inefficient and will take WAY too long to load a large game. Change: if i == #assets then task.wait() end to if i < #assets then task.wait() end This will make it load way faster. If you want to slow it down change the task.wait to a value. NOTE: You should ALWAYS also put a SKIP button somewhere on your loading screen.
@amraam8723
@amraam8723 Год назад
bruh if you put if i < #assets then it wont even load but skip to the end of the menu, meaning that there is no loading anymore, because at the start i is always smaller than the total of game assets to load
@wiredgeek
@wiredgeek Год назад
@@amraam8723 wrong. the var " i " is a count up to #assets and it cycles based on the task.wait. Meaning if you have 1000 assets and you set your wait to 1 second it will take 1000 seconds. Of course dont set your wait to 1 second. If you dont belive this add print(i) and print(#assets)
@FrostedOven
@FrostedOven Год назад
how would I make a skip button, I've been trying for the past 2 days and many hours. I can't figure it out. Please help. Thank you!
@Buddarfinger
@Buddarfinger 11 месяцев назад
how would i implement a skip button here?
@deathrisingx6328
@deathrisingx6328 Год назад
For some reason, the loading screen didn’t come up at all even adding the city map.
@roblox_gaming-forfun
@roblox_gaming-forfun Год назад
me too i just wasted my time
@shindolife2servernmm881
@shindolife2servernmm881 Год назад
@@roblox_gaming-forfun same and i quadruple checked my script
@Retro5675
@Retro5675 Год назад
Hi I’m a scripter and most of this is outdated for line “clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = “Loading Assets: “..i..”/“..#assets should have a “ at the end. If you go into view at the top and go to output, it will show you more hours that you have to fix.
@DrFloopyFish
@DrFloopyFish Год назад
@@Retro5675 do I have to remove the gradient?
@Retro5675
@Retro5675 Год назад
@@DrFloopyFish this script is very outdated try finding you and newer one
@BrandonShere
@BrandonShere 2 года назад
You are the king of scripting tutorials!
@polarisprog
@polarisprog 2 года назад
Thanks!
@BrandonShere
@BrandonShere 2 года назад
@@polarisprog No thank you! I’ve been working hard to develop a high quality simulator, and I wouldn’t be able to It without your videos!
@mbeezy8506
@mbeezy8506 2 года назад
@@BrandonShere music producer makes roblox games. odd but cool
@sevenpenceLOLZ
@sevenpenceLOLZ Год назад
@@mbeezy8506 he must be multi-talented then, making music now developing games? So much talent! Respect 👏👏
@thebestol0ch483
@thebestol0ch483 Год назад
if your game is too big, change this: for i = 1, #assets do for example, to: for i = 1, #assets, 170 do
@6ank
@6ank Год назад
appreciate ya
@MajinPoo
@MajinPoo Год назад
thanks a bunch 👍
@M3tamorphosis-x
@M3tamorphosis-x Год назад
thank you so much i thought i have to search for hours :)
@VoidsVoidsVoids
@VoidsVoidsVoids Год назад
ty
@GreatRamilYT
@GreatRamilYT Год назад
thank you! i didn't see even 1 person that showing how to make ACTUAL loading screen, they using only wait() =( but i'm found your video! thanks!
@neosigma4
@neosigma4 Год назад
you're so helpful for my games and your tutorials are high quality!
@polarisprog
@polarisprog Год назад
Happy to hear that!
@tomyyoung2624
@tomyyoung2624 Год назад
Yes one!
@LilZac_Plays
@LilZac_Plays 7 месяцев назад
I’ve been doing this for 4 hours now and it doesn’t work
@theberry3516
@theberry3516 Год назад
Little tip, dont have the "Bar" which is gonna tween anchored to 0.5,0.5 it messes up the tweening. change it to default 0,0
@Mrmiauplay
@Mrmiauplay Год назад
Still not working
@j_infinity2623
@j_infinity2623 Год назад
i copied it exactly like you did it and it still didn't work. I have no clue why every time I follow a tutorial it doesn't work
@Smallfry-b8u
@Smallfry-b8u 4 месяца назад
i had a hard time figuring out why the percentage wouldn't load like his did. But then figured it out. All im trying to say is thank you!
@Ottomanempire02500
@Ottomanempire02500 7 месяцев назад
it dind't work for me
@TheProBrainCellGamerYT
@TheProBrainCellGamerYT 8 месяцев назад
I can't even see it in game
@iaohciodboqpjsi
@iaohciodboqpjsi Год назад
This video did help with the layout, but i think i did tbe script correctly, but nothing is happening with the loading screen in-game, it is just on 100%and 24/1000 assets.
@Imaginebeingsobadbro
@Imaginebeingsobadbro Год назад
same
@Status.E36
@Status.E36 8 месяцев назад
same @@Imaginebeingsobadbro
@Pewterr
@Pewterr Год назад
I'm so done bro, i spent like 2 hours doing this, and it doesn't work, i tried everything to fix it. im so done
@polarisprog
@polarisprog Год назад
It still works for me, just try again very carefuly and if you get any errors look them up in google and try fixing them
@_moonimni_5602
@_moonimni_5602 Год назад
if somebody has image labels in his loading screen and it doesnt fade away, paste this code at the end and make sure that the trans is 0 for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("ImageLabel") then tweenService:Create(v, TweenInfo.new(0.5), {ImageTransparency = 1}):Play() end end
@lazyax4659
@lazyax4659 Год назад
yo do you know a way for me to fix this? when it finished loading it's just stuck on a white screen, I'll send the code local replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") replicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait() until game:IsLoaded() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets[i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.. "%" clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = "Loading... "..i.."/"..#assets tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar, TweenInfo.new(0.2,Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play() if i % 17 == 0 then task.wait() end if i == #assets then task.wait(1) end end for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("ImageLabel") then tweenService:Create(v, TweenInfo.new(0.5), {ImageTransparency = 1}):Play() elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}): Play() end end
@vilpsux4795
@vilpsux4795 8 месяцев назад
my loading screen isint showing up
@brud4289
@brud4289 Год назад
Thank you so much!!!! You do tutorials like no one else can I'm telling ya.
@polarisprog
@polarisprog Год назад
Glad you like them!
@mokiea7633
@mokiea7633 2 года назад
I can't tell you how happy I am right now. I was wasting away trying to find a tutorial like this, and boom!
@flyhigh4078
@flyhigh4078 Год назад
hi i was wondering if u can be kind enough to send me the code here on youtube, ive typed everything and nothing works :( the gui wont even show or the frame its just like when ever i click play i just play, no loading screen no frame so if u can that would be very kind of you :D thanks if u do btw
@AliDeProYT
@AliDeProYT Год назад
@@flyhigh4078 ik this is late but if you still need it here: local replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") replicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait() until game:isLoaded() replicatedFirst:RemoveDefaultLoadingScreen() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets [i] local percentage = math.round(i / #assets * 100 ) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.."%" clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = "Loading Assets: "..i.."/"..#assets tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar, TweenInfo.new(0.2,Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play() if i % 5 == 0 then task.wait() end if i == #assets then task.wait(1) end end for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("Frame") then tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play() elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() end end
@OsDijider66
@OsDijider66 Год назад
@@AliDeProYT thx
@FortniteTrading-lz1ly
@FortniteTrading-lz1ly Год назад
@@AliDeProYTLegend
@AliDeProYT
@AliDeProYT Год назад
@@FortniteTrading-lz1ly thanks
@IAmDrMystery
@IAmDrMystery Год назад
Im so glad that childrens and teens are starting to teach scripting too
@renox4693
@renox4693 Год назад
Thanks man, I really needed this :D
@polarisprog
@polarisprog Год назад
Glad I could help!
@darealrandomperson
@darealrandomperson Год назад
The loading screen works.. (in roblox studio) but when i try it in an actual server it only goes up to 1% and wont load anymore, help?
@ianlapersona5315
@ianlapersona5315 2 года назад
Thanks! I learned a lot from this vid and the loading screen worked! its so smooth n' clean.. new sub ;D
@polarisprog
@polarisprog 2 года назад
Glad I could help!
@flyhigh4078
@flyhigh4078 Год назад
hi i was wondering if u can be kind enough to send me the code here on youtube, ive typed everything and nothing works :( the gui wont even show or the frame its just like when ever i click play i just play, no loading screen no frame so if u can that would be very kind of you :D thanks if u do btw
@KalleankaJul
@KalleankaJul Год назад
@@flyhigh4078 bro u gotta follow the instructions with A and a
@KalleankaJul
@KalleankaJul Год назад
But im Kind :) elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() (example) = for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("Frame") then tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play() elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() elseif v:IsA("UIStroke") then tweenService:Create(v, TweenInfo.new(0.5), {Transparency = 1}):Play() end) end)
@jaythehopper
@jaythehopper 3 месяца назад
@@KalleankaJul Thank you so much for this! Helped me out big time, I had to retype the script twice and STILL couldn't get it. Again, thank you SO much!
@FrostedOven
@FrostedOven Год назад
how do you make a skip button
@BerkkiKing-mh6hl
@BerkkiKing-mh6hl 4 месяца назад
Was a little mad at first because it didnt work and i thought i had too throw away my 15 minutes. Then i realized i just made a spelling mistake and now it works perfectly. For anyone whos script isnt working: go over it until you spot the mistake
@llxandrewxll3591
@llxandrewxll3591 Год назад
I made the script everything good but when I play the game 100% doesn't move also loading assets 24/1000 doesn't move someone help
@haoweiliu647
@haoweiliu647 Год назад
I spent like 2 hours on this and it didn't work
@tempotasticc
@tempotasticc 2 года назад
not sure why, followed the coding part exactly how u did, the part where the numbers are supposed to go up is NOT working its not really changing the text at all, I'm not sure what i did wrong
@resgame7367
@resgame7367 Год назад
SAME
@resgame7367
@resgame7367 Год назад
It says DisplayPercentage is not a valid number of Frame
@jam5413
@jam5413 Год назад
Thank you for the tutorial. But how would i add a skip button i've been stuck on this for quite a while and would apprciate some help
@Axo9142
@Axo9142 Год назад
New subscriber, this is really going to help me with a game I plan on creating and publishing out to the world.
@oijoijsgoisjdiruoiae
@oijoijsgoisjdiruoiae Год назад
It doesn’t work for me. The gui doesn’t even show up and I have it enabled so I can’t even tell if it’s working. My backgrounds are also visible. I know he did one. The other one is for decoration and I know how to script around that.
@oijoijsgoisjdiruoiae
@oijoijsgoisjdiruoiae Год назад
@Xanyboyo2 I did follow the tutorial and I did that
@spiduke_sr2971
@spiduke_sr2971 2 года назад
I have suggestion - you can make tutorials about "Cookie Clicker" it going be fun!
@jdneve
@jdneve 2 года назад
heyy ur here too?
@zMoonlight
@zMoonlight 2 года назад
@@jdneve both yall have weird pfps
@jdneve
@jdneve 2 года назад
@@zMoonlight didnt ask
@KalleankaJul
@KalleankaJul Год назад
im giving up yall, my map has nothing to load. go here 14:47 for where i am right now (THIS IS NOT THE WHOLE SCRIPT ⚠ local ReplicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") ReplicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait() until game:IsLoaded() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets[i] local percentage = math.round(1 / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.background.DisplayPercantage.Text = percentage.. "%" if i % 5 == 0 then task.wait() end if i == #assets then task.wait(1) end end
@DefulAntiKvadrobika
@DefulAntiKvadrobika Год назад
THANK ❤❤❤❤❤❤
@KalleankaJul
@KalleankaJul Год назад
@@DefulAntiKvadrobika np😊
@XYZ789_
@XYZ789_ Год назад
Copy this text if you're having trouble with the size : 0.1,0,0.1,0
@ValRBLX.
@ValRBLX. Год назад
Can somebody please send me the script? it dosent work for me :((
@AkiraTheArtist
@AkiraTheArtist Год назад
i have no idea what i did incorrectly, but the loading screen itself wont show up. it doesnt seem i missed a line of code, or made any errors. i looked over the code three times and i didnt see any errors. Send help!
@JimGr2029
@JimGr2029 Год назад
SAME IS UR CODE LIKE THIS ? local replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("Loading Screen") replicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait()until game:IsLoaded() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets [i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.text = percentage.."%" if i % 5 == 0 then task.wait() end if i == #assets then task.wait(1) end endlocal replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("Loading Screen") replicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait()until game:IsLoaded() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets [i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.text = percentage.."%" if i % 5 == 0 then task.wait() end if i == #assets then task.wait(1) end end
@Ye9_yt
@Ye9_yt Год назад
This is the video that helped me the most and was uploaded on my birthday. thank you
@polarisprog
@polarisprog Год назад
Happy birthday!
@Ye9_yt
@Ye9_yt Год назад
@@polarisprog thanks 😊
@SSubstandard
@SSubstandard Год назад
this was the first tutorial that actually helped me,
@Zome_HD
@Zome_HD Год назад
Hello, I wanted to say that I have a Main Menu with a lot of Buttons, but when I add a Loading Screen then main menu shows with it at same time, how do i make that first the loading screen pops up and then when loaded then Main Menu Appears?
@polarisprog
@polarisprog Год назад
Change the DisplayOrder of the loading screen screen gui to a higher number than the display order of the other screen gui
@Zome_HD
@Zome_HD Год назад
@@polarisprog ok but Music is still playing during Loading Screen, how to stop it too?
@popcornsbetter7873
@popcornsbetter7873 Год назад
Hey you still on?? The loading screen ain't popping up for me
@LegitGreg
@LegitGreg Год назад
Thank you so much this tutorial helped a lot!
@polarisprog
@polarisprog Год назад
Glad it helped!
@tiansvit2335
@tiansvit2335 Год назад
Ty so much!!!!!! finnaly something that works! your the best. now i know here to look when i need something :D
@polarisprog
@polarisprog Год назад
Glad I could help!
@maple_editss
@maple_editss 4 месяца назад
I did this tutorial but for some reason, the bar wasn't moving, the loading text wasn't doing anything either. I dont know if this was from the code, or the scripts
@solarsmp_
@solarsmp_ 11 месяцев назад
for some reason the percentage just stops at 98% and doesn't continue. does anyone know how to fix it?
@Nascar_commentary_guy109
@Nascar_commentary_guy109 6 месяцев назад
am i the only one that keeps having a problem where the percent just freezes and never continues.
@JimGr2029
@JimGr2029 Год назад
its all good until u see that in mobile half of the loading screen is gone
@DroiD_Zz
@DroiD_Zz Год назад
@polarisprog how can i execute an function after the loading screen is totally loaded?
@aayanbaig4775
@aayanbaig4775 Год назад
Hey there! So the part where you added the tween transperancy isn't working for me. Could you please provide some more help? Other than that, no issues occurred and overall an amazing tutorial!
@PoopyFace69420
@PoopyFace69420 Год назад
no
@adude200
@adude200 Год назад
after the sguiggly brackets and normal brackets add “:Play()” to it hope this helps
@pokepro1233
@pokepro1233 2 года назад
Oh another video, thank you so much for making this content. Continue pet simulator x series as long as you can until you will make full game. Love yours videos bcs I can lern from them and can make with you and your comunity my dream games and projects. Again than you so much, keep going bro!
@twistyyel
@twistyyel 2 года назад
the loading screen didnt work for me did it work for you
@pokepro1233
@pokepro1233 2 года назад
@@twistyyel I am not making it rn but i think his scripts are always working bsc he is making them well so I think if it works for him it shoud work for you too
@polarisprog
@polarisprog 2 года назад
That's the plan!
@xxyzmir4262
@xxyzmir4262 Год назад
@@pokepro1233 can u send the script here pls
@avinath4252
@avinath4252 Год назад
Would it be more efficient to delete the gui after it tweens and fades away, as it is still there and probably lagging the game to some extent?
@Qxlyxl
@Qxlyxl Год назад
can someone Help Me It Only Gets Rid Of The Loading Bar When Its Done Loading
@jacko_o
@jacko_o Год назад
is there anyone that can put a copy of the whole script inside the comments, ive wrote it all out to what i thought but it doesnt seem to work for me, it all failed when i started to write the code for everything to dissapear
@neosigma4
@neosigma4 Год назад
local replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") replicatedFirst:RemoveDefaultLoadingScreen() repeat task.wait() until game:IsLoaded() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets[i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.."%" clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = "Loading Assets: "..i.."/"..#assets tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar, TweenInfo.new(0.2,Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play() if i % 50 == 0 then task.wait() end if i == #assets then task.wait(1) end end for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:isA("Frame") then tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play() elseif v:isA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() elseif v:isA("UIStroke") then tweenService:Create(v, TweenInfo.new(0.5), {Transparency = 1}):Play() end end
@guplyn605
@guplyn605 Год назад
thank you so much !!!!@@neosigma4
@jjchoc
@jjchoc Год назад
Thank you so much. This helped me alot!!
@polarisprog
@polarisprog Год назад
Glad it helped!
@foxplays__
@foxplays__ Год назад
After all the assets are loaded only the background of the loadingscreen disappears how do i fix this?
@notcrewe452
@notcrewe452 Год назад
Same
@foxplays__
@foxplays__ Год назад
@@notcrewe452 i fixed it by making sure i typed "TextLabel" correctly. Here is the script: for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("Frame") then tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play() elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() end end
@neosigma4
@neosigma4 Год назад
been 8 months since i last developed the game where i used this tutorial. new bug... when it loads somewhere near 50% it just freezes in place. everything works normally when viewing through the server and everything's moving, except for the loading bar.
@eternalplayz872
@eternalplayz872 2 года назад
Great video but I followed the coding up till the first test and nothing worked even when I went back into testing the screen wasn’t there
@Aadam_SHORTSzz
@Aadam_SHORTSzz Год назад
Okay I must admit, you did well, Polarisprog
@misaq_ipad
@misaq_ipad 3 месяца назад
local replicatedFirst = game:GetService("ReplicatedFirst") local contentProvider = game:GetService("ContentProvider") local tweenService = game:GetService("TweenService") local players = game:GetService("Players") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") replicatedFirst:RemoveDefaultLoadingScreen() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets[i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.."%" clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = "Loading Assets: "..i.."/"..#assets tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play() if i % 5 == 0 then wait() -- Ожидаем один фрейм end if i == #assets then wait(1.5) -- Ожидаем одну секунду после загрузки последнего актива clonedLoadingScreen:Destroy() -- Удаляем экран загрузки после окончания загрузки end end
@misaq_ipad
@misaq_ipad 3 месяца назад
its more simple and better
@TestPlayer83021Alt
@TestPlayer83021Alt Год назад
Hey you can fix loading assets i still have this issue is network receive error please help
@ri0tgaming69
@ri0tgaming69 Год назад
I done everything correct and have made no mistakes. is this out of date?
@nuclearblue6003
@nuclearblue6003 10 месяцев назад
doesnt work at all i literally did EVERYTHING to the last little detail the same and i double checked everything, still doesnt work
@StrayDude-fg43
@StrayDude-fg43 Год назад
bro my screen is not working idk why but its not :(
@iitzBrxken2
@iitzBrxken2 Год назад
25:07 this is my favorite part and this was me OMG I NEED TO TRY THIS ITS SO COOL and thank you It worked 😊
@nqxyy
@nqxyy Год назад
If your code isn't working then fix your problem by checking if "Enum.EasingDirection.InOut, -1, true), {Position" isn't "Enum.EasingDirection.InOut, -1, true){Position"
@reetuscleetus3529
@reetuscleetus3529 Год назад
If i wanted to add a skip asset loading button, what would be the scripting needed to put in
@santiagoalvarez21yearsago40
@santiagoalvarez21yearsago40 9 месяцев назад
Thanks man needed this
@polarisprog
@polarisprog 9 месяцев назад
Glad I could help
@santiagoalvarez21yearsago40
@santiagoalvarez21yearsago40 9 месяцев назад
@polarisprog It worked on one of my games but on another it gets stuck at 4-5 percent
@C0_O0L
@C0_O0L Год назад
I had to change Background.DisplayAssetsLoaded.Text to Background.DisplayAssets.Text (idk if this helps just in case ur confused)
@NivexHvH
@NivexHvH Год назад
why i dont see it in game
@semrafeliz
@semrafeliz Год назад
first when it popped up the assets weren’t loading, then i did everything else and it didnt load at ALL.. i’m so confused. i did everything and it doesn’t even show up on my screen 😭 help edit: so i fixed it but my assets won’t load.. i don’t know what’s going on😢😢
@MMM1989Y
@MMM1989Y 2 года назад
-Hm...but what 'bout UIStroke Transparency's code? Like...if smbd wanna add in loading screen it. -Code for my...words? Bruh. IDK.: elseif v:IsA("UIStroke") then tweenService:Create(v, TweenInfo.new(0.5), {Transparency = 1}):Play()
@Sergeantoogway
@Sergeantoogway Год назад
Don’t work
@FyReO
@FyReO Год назад
how would you make a skip loading button
@UnpocoTotitilocco
@UnpocoTotitilocco Год назад
You are awesome man, this helped much. Thanks alot!!
@polarisprog
@polarisprog Год назад
Glad it helped!
@luvxxander
@luvxxander Год назад
@@polarisprog it didnt it didnt work and our scripts were the exact same so its either outdated or scammed
@LawDoesntWork
@LawDoesntWork Год назад
Was going well until you did the first test, I have gone through the code multiple times and checked the placement of the script and loading screen. It just never shows up and I don't get any errors whatsoever.
@robotincinerator
@robotincinerator Год назад
drag loading screen into loadingscreenscript
@LawDoesntWork
@LawDoesntWork Год назад
@@robotincinerator Again, I have already checked the placement of BOTH the script and loading screen, everything is checked out, covered over and over, and ready to go
@robotincinerator
@robotincinerator Год назад
@@LawDoesntWork you committed the script?
@AndromedaSubZero
@AndromedaSubZero Год назад
@@LawDoesntWork same issue here
@coopersurfs
@coopersurfs Год назад
same with me
@MimiVRz
@MimiVRz Год назад
did everything and my script doesnt work not even the background i made and all that pops up.
@JiglyMushy
@JiglyMushy Год назад
it doenst work
@Salty_Peanut
@Salty_Peanut Год назад
i have a problem the screen works fine but when it fades away the letters and numbers are still on the screen can you please help me?
@VibrationsSquare
@VibrationsSquare Год назад
bro can you reply to my message by copy and pasting your script cause mine aint working pls
@RealSnect
@RealSnect Год назад
Thank you so much for this video!
@polarisprog
@polarisprog Год назад
You are so welcome!
@fire.maniac.
@fire.maniac. Год назад
Hey! Quick question, how do I disable all of the screen gui's before the loading screen? And how to enable them back after everything loads?
@TheRandomStoryBoy
@TheRandomStoryBoy Год назад
pls someone telll me
@Tix_Blox
@Tix_Blox Год назад
before playing the game set all the ui you dont want to show in the loading screen to be off and after the loading finishes turn them back on
@AlumicaHoarder
@AlumicaHoarder 3 месяца назад
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
@thatelizagamer
@thatelizagamer 2 года назад
didnt work
@robotincinerator
@robotincinerator Год назад
I copied the script and the percentage+loading assets would not move and I have no idea how to fix it
@yovalhamevolbal
@yovalhamevolbal 2 года назад
How do i make my guis go invsible when the loading screen start and when it end they go visible?
@danielstarykov
@danielstarykov 2 года назад
Need this too
@ChikoYoutube
@ChikoYoutube 9 месяцев назад
everything else works fine no errors at all but when its done loading assets the gui is still on the screen with the asset bar
@VyunYT
@VyunYT 4 месяца назад
it says this error at line 28 Unable to cast value to Object - Client - LocalScript:28
@carboyyeay
@carboyyeay Год назад
thanks bro works like a charm
@Buddarfinger
@Buddarfinger 11 месяцев назад
is there a skip button for htis?
@ASillyDeveloper
@ASillyDeveloper Год назад
8:45 im just saying this because im saving today cuz im gonna sleep now
@fungeezy
@fungeezy Год назад
RU-vid video a little blurry but it worked EXELENT! Thank you so much.
@polarisprog
@polarisprog Год назад
You're welcome!
@FrostedOven
@FrostedOven Год назад
@@polarisprog hey can you help me make a skip button, ive been trying for 3 days and i cant figure it out, thank you
@Makmisss
@Makmisss Год назад
why brookhaven map i don't understand and i don't have the loading screen when i launch the game, can you help me pls?
@ScootGreenBs
@ScootGreenBs Год назад
hi, what should I do if my loading screen is endless and nothing works there
@murphy6707
@murphy6707 Год назад
FIX TO THE SCRIPT: local players = game:GetService("Players") local contentProvider = game:GetService("ContentProvider") local replicatedFirst = game:GetService("ReplicatedFirst") local tweenService = game:GetService("TweenService") local player = players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local loadingScreen = script:WaitForChild("LoadingScreen") replicatedFirst:RemoveDefaultLoadingScreen() local assets = game:GetDescendants() local clonedLoadingScreen = loadingScreen:Clone() clonedLoadingScreen.Parent = playerGui for i = 1, #assets do local asset = assets[i] local percentage = math.round(i / #assets * 100) contentProvider:PreloadAsync({asset}) clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.."%" clonedLoadingScreen.Background.DIsplayAssetsLoaded.Text = "Loading Assets: "..i.."/"..#assets tweenService:Create(clonedLoadingScreen.Background.BarBackground.Bar.Size, TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Size = UDim2.fromScale(percentage/100, 1)}):Play() if i % 5 == 0 then task.wait() end if i == #assets then task.wait(1) end end for i, v in pairs(clonedLoadingScreen:GetDescendants()) do if v:IsA("Frame") then tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play() elseif v:IsA("TextLabel") then tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play() end end
@DefulAntiKvadrobika
@DefulAntiKvadrobika Год назад
THANKS
@Yukinaclips
@Yukinaclips 3 месяца назад
its stuck at 0
@slaker_
@slaker_ Год назад
Thank you so much ! I just have 1 problem : the Game Title,100% text and the assets text do not go away. the background does, but not the texts. Coul you help me with that ?
@ConquerorAscension
@ConquerorAscension Год назад
same for me
@sleepyboy360
@sleepyboy360 2 года назад
Can you show how to make "Headphones recommended for best experience" screen after loading complete?
Далее
Roblox Swear Update Is Here
9:19
Просмотров 439 тыс.
I Asked Roblox Billionaires How To Get Rich
41:51
Просмотров 2,7 млн
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12
These Optical Illusions Are Actually Playable
16:22
Просмотров 981 тыс.
How To Make A LOADING SCREEN In ROBLOX STUDIO
17:07
Просмотров 10 тыс.
HOW TO MAKE A MAIN MENU 🛠️ Roblox Studio Tutorial
16:26
How To Make Realistic Reflections in Roblox Studio
13:11
This Discord Server Controls my PC (with Malware)!
8:07
[2022] Roblox Tutorial: How to make SMOOTH animations
31:05
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12