local lp = game.Players.LocalPlayer local character = lp.Character or lp.CharacterAdded:wait() character:WaitForChild("Humanoid").Died:Connect(function() print("player died") local frame = lp:WaitForChild("PlayerGui").WastedGui.TweenedFrame frame:TweenPosition(UDim2.new({0, 0},{.5, -75}), 'Out', 'Quad', 1) wait(4) frame:TweenPosition(UDim2.new({0, 0},{-1, -75}), 'Out', 'Quad', 1) end)
this script only works the first time the player dies.