#Title screen Reappears on Death

1 messages · Page 1 of 1 (latest)

silk nexus
#

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.

strong whale
#

Then maybe destroy the GUI after the player clicks play?

silk nexus
#

how do I do that

strong whale
#

idk ResetOnDeath turned off should alr have fixed the problem

silk nexus
#

I tried restarting the whole title screen but still have the same problem

strong whale
silk nexus
#

in what script

#

btw I have very little understanding of coding lmao

strong whale
#

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

silk nexus
#

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)

strong whale
#

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)

silk nexus
#

hmmm

clever summitBOT
#

studio** You are now Level 1! **studio

silk nexus
#

it still dosent work

#

if u want I can share my screen so you can have a closer look

strong whale
#

sure

rose stratus
#

just use once instead of function

#

i mean connect

#

yea that should work i think