Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do i make the "SKIP BUTTON" stay for the whole time?

Asked by
Bulvyte 388 Moderation Voter
9 years ago

As the title says heres how my intro looks the TextButton1 is the skip button which i want to stay in the intro for whole time for all cutscenes but not only 1 cutscene. http://prntscr.com/86eekd

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()

this is the localscript like in screenshot named "Program"

2 answers

Log in to vote
0
Answered by
xuefei123 214 Moderation Voter
9 years ago

Why are you calling

screen:Remove()

at the end?

Ad
Log in to vote
0
Answered by 8 years ago

At the end try using "destroy()".

Answer this question