-
What do you want to achieve? Keep it simple and clear!
I have a loading screen here and I want it to work for low end PC in a high end game -
What is the issue? Include screenshots / videos if possible!
I used it in a High End game particuraly a massive airport that has good graphics although I have a bad pc and I was wondering why would the script now work but it works for my friend that has a good gaming pc -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I cannot find any solutions.
local TweenService = game:GetService("TweenService")
local player = game.Players.LocalPlayer
game.Workspace:FindFirstChild("Loading").Playing = true
script.Parent.Enabled = true
game:GetService("ContentProvider"):PreloadAsync(game:GetDescendants())
local function onClose(ui)
wait(1)
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local properties = {
BackgroundTransparency = 1,
}
local tween = TweenService:Create(ui, tweenInfo, properties)
tween:Play()
end
local function onClose2(ui)
wait(1)
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local properties = {
ImageTransparency = 1,
}
local tween = TweenService:Create(ui, tweenInfo, properties)
tween:Play()
end
local function onClose3(ui)
wait(1)
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local properties = {
TextTransparency = 1,
}
local tween = TweenService:Create(ui, tweenInfo, properties)
tween:Play()
end
local function go()
onClose(script.Parent.Main.Frame)
onClose(script.Parent.Main.Frame["Loading Bar"])
onClose3(script.Parent.Main.TextLabel)
onClose2(script.Parent.Main.Picture)
onClose2(script.Parent.Main.Logo)
onClose(script.Parent.Main)
end
wait(1)
print("player loaded")
script.Parent.Main.Frame["Loading Bar"]:TweenSize(UDim2.new(1.055, 0,1.146, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 10)
wait(10)
go()
game.Workspace:FindFirstChild("Loading").Playing = false