So I want to detect if 10 seconds passed and if the game still didn’t load at all in all these 10 seconds then I want to kick the player that is having the loading issues.
What i got.
RblxRulesFrame_Container.TextBoxLabel.Font = Enum.Font.Arial
RblxRulesFrame_Container.TextBoxLabel.TextStrokeTransparency = 0
RblxRulesFrame_Container.TextBoxLabel.Text = "Loading..."
for i = 10, 1, - 1 do
task.wait(1)
end
Services.ContentProvider:PreloadAsync(Whole_Game)
RblxRulesFrame_Container.TextBoxLabel.Font = Enum.Font.GothamSemibold
RblxRulesFrame_Container.TextBoxLabel.TextStrokeTransparency = 1
RblxRulesFrame_Container.TextBoxLabel.Text = Strings.RBLX_RULES
RblxRulesFrame_Container.LoadingButton.Visible = false
RblxRulesFrame_Container.OkButton.Visible = true
Gui_Container.CursorIcon.Visible = true
warn("Loaded.")
end
All I want is a good way to detect that, and then kick the player.