local frame = script.Parent
local CP = game:GetService("ContentProvider")
local infoLabel = frame:WaitForChild("InfoLabel")
local skipButton = frame:WaitForChild("SkipButton")
local skipped = false
local connection
if not game:IsLoaded() then
game.Loaded:Wait()
end
skipButton.Visible = true
connection = skipButton.MouseButton1Click:Connect(function() skipped = true end)
repeat wait()
infoLabel.Text = "assets left: "..tostring(CP.RequestQueueSize)
until CP.RequestQueueSize <= 0 or skipped
infoLabel.Text = "loaded!!"
skipButton.Visible = false
connection:Disconnect()
wait(3)
frame:TweenPosition(UDim2.new(1, 0, 1, 0), "Out", "Quad", 0.5, false)
wait(0.5)
frame.Parent.WarnFrame.Agree.AgreeScript.Disabled = false
wait()
frame.Visible = false
game.ReplicatedStorage:WaitForChild("Destroy"):FireServer(frame)
frame:Destroy()
AgreeScript:
if not game:GetService("RunService"):IsStudio() then
local button = script.Parent
local frame = button.Parent
local connection
frame.Visible = true
wait(2)
for i = 15, 0, -1 do
button.Text = "I Agree ("..i..")"
wait(1)
end
button.Text = "I Agree"
connection = button.MouseButton1Click:Connect(function()
connection:Disconnect()
game.ReplicatedStorage:WaitForChild("Destroy"):FireServer(frame.Parent)
frame.Parent:Destroy()
end)
end
Script that does things:
local replicatedFirst = game:GetService("ReplicatedFirst")
local gui = script:WaitForChild("LoadingGUI")
local plr = game.Players.LocalPlayer
replicatedFirst:RemoveDefaultLoadingScreen()
gui:Clone().Parent = plr:WaitForChild("PlayerGui")
local chatService = game:GetService("Chat")
chatService:RegisterChatCallback(Enum.ChatCallbackType.OnCreatingChatWindow, function()
return {BubbleChatEnabled = true}
end)
I don’t see anything suspicious here. Maybe the problem is in another script.
Have you used free models or free scripts? If so, you should review them and see if any of them has something wrong or malicious lines.
You should try as well to review if the problem is inside the Loading UI. You can disable it and its scripts and test the game. If you are not kicked, then we confirm that the issue is in your Loading UI