TFlanigan
(teef)
#1
so i made a script that waits 30 on game shutdown and i want a gui to appear, but it doesnt. everything else works fine. here are the scripts:
game:BindToClose(function()
game.ReplicatedStorage.Remotes.CloseGui:FireAllClients()
wait(30)
end)
game.ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("CloseGui").OnClientEvent:Connect(function()
game.Players.LocalPlayer.PlayerGui.SoftShutdown.Main.Visible = true
end)
JcOnRblx
(Jc_23)
#2
Is the “SoftShutdown” screen gui already enabled?
JcOnRblx
(Jc_23)
#4
is that “BindToClose” script the second script shown? If it is, change it to a local script.
TFlanigan
(teef)
#5
BindToClose is the first script i sent
Herobrinekd1
(EmosInANutShell)
#6
So your “BindToClose” function works fine?. But your Remote event doesnt fire??
Herobrinekd1
(EmosInANutShell)
#7
(I’m unable to access studio rn. So sorry if i get something here wrong
)
I wrote this small pice of code quick. Hope this helps you 
- Insert a new script into “ServerScriptService”. And type this:
game:BindToClose(function()
[Your event]:FireAllClients()
wait(30)
end)
- Make a new LocalScript inside your Gui. And type this:
[Your Event].OnClientEvent:Connect(function()
script.Parent.Main.Visible = true
end)
Hope this helps you

1 Like