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

How to make gui stay after player respawn?

I'm trying to make a death screen GUI right now. But, I want to make the GUI tween instead of the GUI instantly dissapearing from the screen. So I tried it and it works! but there's only 1 problem, when the GUI is about to tween out, the player already respawned and the GUI didn't have a chance to tween for it last time. So, can anybody try to help me make the GUI stay even if the player has spawned yet?

game.Players.CharacterAutoLoads = false

game.Players.LocalPlayer.Character:WaitForChild('Humanoid').Died:connect(function()
		text:TweenPosition(UDim2.new(0,0,0,0), 'Out', 'Quad', 1)
		wait(4)
		game.Players.CharacterAutoLoads = true
		text:TweenPosition(UDim2.new(0,0,0,502), 'Out', 'Quad', 1)
end)

1 answer

✓ Accepted answer

Its very easy! Disable the property called "Reset on spawn". Thats it :))

3 comments

0

In the Gui

1

Woah! I didn't even know that existed. Thank you so much! :)

0

np :))

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