Basically, the UI I’m working with is not only a Loading UI; the game I’m working on is just a UI, nothing else, which means I can’t make it delete the UI. However, I can also not make it delete the Loading Icon, as it will show up again later.
I was trying to make it so 5 seconds after the player joins the game (The player limit is one), the Loading Icon fades in. However, for some reason, it doesn’t fade in; this is the script I used:
ReplicatedFirst = game:GetService("ReplicatedFirst")
TweenService = game:GetService("TweenService")
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local UI = PlayerGui.applicationUI
local popups = UI:WaitForChild("popups")
local loadingIcon = popups:WaitForChild("loadingIcon")
local loadingIconStop = TweenInfo.new(
2,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local stopLoading = TweenService:Create(loadingIcon, loadingIconStop, {ImageTransparency = 1})
ReplicatedFirst:RemoveDefaultLoadingScreen()
wait(5)
stopLoading:Play()
wait(2)
loadingIcon.Spinner.Disabled = true
To confirm you have a regular script (NOT a local script) set within a starterGui element? Meaning it is replicated to PlayerGUI once the player loads? I’m not saying that’s the issue I simply want to make sure I have every part correct when I diagnose
Uh, I don’t really know what you mean, but, it is a Loading Icon for when the player joins. However, the whole game is a UI, it is an Application Center.
popups is an invisible frame. Inside it there is the Loading Icon and I will add more things to it soon; it is basically a place where I put the popups, for example, a notification.
I missed a comma. My apologies. I was asking
To confirm , (meaning please confirm the following statement I am making) the script named Spinner is a Regular ”Script”, and not a ”LocalScript”
I thought of making a Remote Event so when that event fires the server, it would tween (I would use another script for when the Remote Event fires the server). I don’t know if that would make it work, though.