I am trying to make a map loader but there is 1 problem, that the loading screen doesnt go away I tried this script but it didnt work, it also gave no errors.
localscript:
01 | local Map = game.ReplicatedStorage.Map |
02 | local P = game.Players.LocalPlayer |
03 | while true do |
04 | print (Map:IsAncestorOf( nil )) |
05 | if Map:IsAncestorOf( nil ) then |
06 | print ( "Meow2" ) |
07 | P.PlayerGui.Loading:Destroy() |
08 | game.ReplicatedStorage:WaitForChild(P.Name, 1000 ).Parent = game.Workspace |
09 | end |
10 | wait( 1 ) |
11 | end |
It's a really easy question with an easy and simple answer
1 | local fol = --Get your folder |
2 | if #fol:GetChildren = = 0 then |
3 | --Whatever |
4 | else |
5 | --Whatever |
6 | end |