Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make the "PLAY" Button GUI fade in after 5 seconds ?

As the title says heres the script

function onButton1Down() game.Workspace.CurrentCamera:remove() wait(.1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end

script.Parent.MouseButton1Down:connect(onButton1Down)

It's like you join the game but for me the play button stays but i want it to show up in 5 seconds later and make it fade in so first they cannot see.

I have an intro where u join the game, the camera rotates until the player presses the play button, kills the camera and goes into game.

helpp :3

4 comments

0

sorry this isnt an answer but just an FYI, you can click the Lua bubble in the editing option of your question and then paste your code between the lines to have to formatted, makes it easier for people to read and help you with

0

it's very simple i just need to write this in new script, but i don't know how to make guis more transparent less transparent ..

0

how i locate the gui which is in startergui ? i want it like waits 5 secs makes the gui text transparency visible cmon!

0

please guys just write me a new script which waits 5 secs, makes the gui's text visible the background and thats it!!

2 answers

Im Not Sure If You Mean 5 Seconds Then Make The Play Button Fade In Or Play Button Fade Out After

debounce = false
function FadeOut()
local Play = script.Parent
if Play.TextTransparency ~= 1 and Play.BackgroundTransparency ~= 1 and debounce == false then
debounce = true
for i=1,20 do
Play.TextTransparency = Play.TextTransparency +.05
Play.BackgroundTransparency = Play.BackgroundTransparency +.05
wait(.25)
end
end
end

script.Parent.MouseButton1Click:connect(FadeOut)

2 comments

0

Player joins game > 5 seconds later > Play button appears with fade in > player clicks the button > Button fades out is this the script like you wrote ?

0

Only Fade Out. The Function Would Also Work for Fade In, All you have to do is Change Values from 1 to 0 and +.05 to -.05

So you can't make the GUI Button Fade? I can help you :D

function onButton1Down()
 	game.Workspace.CurrentCamera:remove()
script.Parent.WHATEVERYOURGUIISCALLED.BackgroundTransparency = 0.8
script.Parent.WHATEVERYOURGUIISCALLED.TextTransparency = 0.8
 wait(1) 
script.Parent.WHATEVERYOURGUIISCALLED.BackgroundTransparency = 0.6
script.Parent.WHATEVERYOURGUIISCALLED.TextTransparency = 0.6
 wait(1) 
script.Parent.WHATEVERYOURGUIISCALLED.BackgroundTransparency = 0.4
script.Parent.WHATEVERYOURGUIISCALLED.TextTransparency = 0.4
 wait(1) 
script.Parent.WHATEVERYOURGUIISCALLED.BackgroundTransparency = 0.2
script.Parent.WHATEVERYOURGUIISCALLED.TextTransparency = 0.2
 wait(1) 
script.Parent.WHATEVERYOURGUIISCALLED.BackgroundTransparency = 0
script.Parent.WHATEVERYOURGUIISCALLED.TextTransparency = 0
 wait(1) 
game.Workspace.CurrentCamera.CameraSubject = 	game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom"
 end

script.Parent.MouseButton1Down:connect(onButton1Down)

This should fade in the play button AND do the camera thingy. If the camera doesn't work, you should have told me :)

1 comment

0

You just posted something weird. You wrote on click camera disappears, makes the gui visible...

This discussion is preserved as it was. New answers, comments, and votes are closed.