I am creating a Roblox obby and have just made a title screen for the game. I want the title screen to only appear upon the player joining but currently it also appears whenever the player dies as well. I have tried to set the Screen GUI, Reset On Death to False but it still appears upon death. Does anyone have a fix.
#Title screen Reappears on Death
1 messages · Page 1 of 1 (latest)
Then maybe destroy the GUI after the player clicks play?
how do I do that
idk ResetOnDeath turned off should alr have fixed the problem
I tried restarting the whole title screen but still have the same problem
when the player clicks play, do NEW Main/Credit Screen:Destroy()
whatever one detects when they click play
if u dont know which one send all the scripts and i can pick which one that would be
Credits Close Script
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
if not script.Parent.Parent.Visible then
script.Parent.Parent.Parent.MainFrame.Visible = true
end
end)
Play Button Script
local Gui = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function(clicked)
Gui:TweenPosition(UDim2.new(0,0,1,0), "InOut", "Sine",1)
for i = 1,25 do
wait (0.05)
game.Lighting.Blur.Size = game.Lighting.Blur.Size - 3
end
end)
Credits Button Script
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.CreditsFrame.Visible = not script.Parent.Parent.Parent.CreditsFrame.Visible
if script.Parent.Parent.Parent.CreditsFrame.Visible then
script.Parent.Parent.Visible = false
else script.Parent.Parent.Visible = true
end
end)
copy this into the Play Button Script:
local Gui = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function(clicked)
Gui:TweenPosition(UDim2.new(0,0,1,0), "InOut", "Sine",1)
for i = 1,25 do
wait (0.05)
game.Lighting.Blur.Size = game.Lighting.Blur.Size - 3
end
Gui:Destroy()
end)
hmmm
** You are now Level 1! **
sure