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

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

Asked by
Bulvyte 388 Moderation Voter
8 years ago

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

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 nicros 165 — 8y
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 .. Bulvyte 388 — 8y
0
how i locate the gui which is in startergui ? i want it like waits 5 secs makes the gui text transparency visible cmon! Bulvyte 388 — 8y
0
please guys just write me a new script which waits 5 secs, makes the gui's text visible the background and thats it!! Bulvyte 388 — 8y

2 answers

Log in to vote
0
Answered by
Vezious 310 Moderation Voter
8 years ago

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)
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 ? Bulvyte 388 — 8y
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 Vezious 310 — 8y
Ad
Log in to vote
-2
Answered by 8 years ago

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

0
You just posted something weird. You wrote on click camera disappears, makes the gui visible... Bulvyte 388 — 8y

Answer this question