So I edited this intro, and I cant make it work with when you reset or die the intro doesnt show up anymore. I just want it to show up when you start the game, and thats it only once. Thanks!
First I placed this on a script inside startergui
local legui = script.Intro:Clone()
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
legui:Clone().Parent = player.PlayerGui
end)
Then I placed a gui inside the script and made a local script
local Screen = script.Parent
local Config = Screen.Config
local Filter = Screen.Filter
local Content = Screen.Content
function FilterFade(start,finish,step)
for i = start,finish,0.03/step do
Filter.BackgroundTransparency = i
wait()
end
Filter.BackgroundTransparency = finish
end
Filter.Visible = true
for _,image in pairs(Content:GetChildren()) do image.Visible = false end
wait(Config.Padding_Time.Value)
for _,image in pairs(Content:GetChildren()) do
image.Visible = true
FilterFade(0,1,Config.Fade_Time.Value)
wait(Config.Display_Time.Value)
FilterFade(1,0,-Config.Fade_Time.Value)
image.Visible = false
wait(Config.Display_Time.Value)
end
wait(Config.Padding_Time.Value)
Screen.Background.Visible = false
FilterFade(0,1,Config.Fade_Time.Value)
Screen:Remove()

22 comments
Doesn't work Xetrax D:
O_O NOOOOOOOOOOOOOOOOOOOOOOO... Wait, the code is in a local script in the gui, right?
Yeah!
What is the Screen parented under???
The Script
-_- I mean how many .Parents until the script would have a direct path to the StarterGUI (I assume thats where you have all this shtuff...)
First its a script then it has a child of screen then the screen has a child of LocalScript
Mk, so... the main starter script has the Screen as its child, and the said screen has the script within it?
Also the screen has 3 frames and one Configuration displaying the time, fade time, and padding time.
Yeah.
I just found your error, you put the script containing the GUI, that gives the GUI to the player into starterGUI, this is multo male(very bad), place the script that has the Screen into workspace, and read my teensy edit I am just now making...
Edit finished, check it out.
Ok
One last touch, you might want to change Remove() to remove() no difference in function, just helps LUA to read it better.
Nothing changing for me...
...Did you do everything that I noted on? if so... then idk what the problem is, but somehow with most of my scripts, roblox seems to mess them up... :\
Can you do me a favor in which go to my roblox profile and take the intro model, so you can fix it if thats fine, because I did everything but it keeps repeating when reseted
Alright, and if i Fix it, I'll PM you with the new code.
Fixed it :P check your PMs.
I'll check it tomorrow but I'll accept answer for now I'm going to sleep that's why.
I'll check it tomorrow but I'll accept answer for now I'm going to sleep that's why.
I'll check it tomorrow but I'll accept answer for now I'm going to sleep that's why.